/* Public intake form — the first thing a couple sees from us after buying. */
:root { --paper: #faf6f0; --card: #fffdf9; --ink: #2b2522; --ink2: #6f6460; --line: #e7ddd1; --accent: #b0705a; --accent-soft: #f3e3da; --bad: #9a4b4b;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --paper: #1c1917; --card: #24201d; --ink: #f3ece4; --ink2: #b3a69c; --line: #3a332e; --accent: #d79a82; --accent-soft: #3a2a23; --bad: #e0a29b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.brand { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 0 0 28px; color: var(--accent); }
.masthead { max-width: 760px; margin: 0 auto; padding: clamp(64px, 12vw, 120px) 20px clamp(32px, 6vw, 56px); text-align: center; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.masthead h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 9vw, 80px); line-height: 1; margin: 0; }
.lede { color: var(--ink2); font-size: 16px; max-width: 520px; margin: 22px auto 0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

form { max-width: 760px; margin: 0 auto; padding: 0 16px 80px; }
fieldset { border: 0; margin: 0 0 18px; padding: clamp(24px, 5vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
legend { float: left; width: 100%; font-family: var(--serif); font-size: clamp(28px, 5vw, 36px); line-height: 1.1; margin: 0 0 24px; padding: 0; }
legend span { display: block; font: 600 11px var(--sans); letter-spacing: .22em; color: var(--accent); margin-bottom: 10px; }
legend + * { clear: both; }
.hint { color: var(--ink2); margin: 0 0 20px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.grid .full { grid-column: 1 / -1; }
label { display: block; }
label > span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-bottom: 2px; }
label em { color: var(--accent); font-style: normal; margin-left: 3px; }
label small { display: block; color: var(--ink2); font-size: 12px; margin-top: 6px; }
input, select, textarea { width: 100%; font: 15px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 9px 0; transition: border-color .2s; }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
input.bad { border-bottom-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.repeat .item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 22px 0; border-top: 1px dashed var(--line); }
.repeat .item:first-child { border-top: 0; padding-top: 0; }
.repeat .item .rm { position: absolute; right: 0; top: 18px; border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 13px; }
.repeat .item:first-child .rm { top: -4px; }
.add { border: 1px dashed var(--line); background: none; color: var(--accent); font: 500 14px var(--sans); border-radius: 999px; padding: 10px 18px; cursor: pointer; margin: 6px 0 22px; }
.add:hover { border-color: var(--accent); }

.drop { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 14px; padding: 36px 16px; text-align: center; cursor: pointer; color: var(--ink2); transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--ink); } .drop input { display: none; }
.thumbs { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; font-size: 11px; color: var(--ink2); text-align: center; padding: 4px; word-break: break-all; }
.thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; line-height: 1; }
.thumbs li.done::after { content: '✓'; position: absolute; bottom: 4px; right: 6px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 14px; }
.thumbs li.fail { outline: 2px solid var(--bad); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--ink2); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.submit { text-align: center; padding-top: 18px; }
.btn { appearance: none; border: 0; background: var(--ink); color: var(--paper); font: 500 15px var(--sans); padding: 16px 34px; border-radius: 999px; cursor: pointer; transition: opacity .2s, transform .15s; }
.btn:hover { opacity: .88; } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .add:focus-visible, .drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.err { color: var(--bad); min-height: 1.4em; margin: 0 0 10px; }
.progress { color: var(--ink2); font-size: 13px; min-height: 1.4em; }
.done { max-width: 560px; margin: 0 auto; text-align: center; padding: 18vh 20px; animation: rise .8s both; }
.done h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 8vw, 60px); line-height: 1.05; margin: 0 0 16px; }
.done p:last-child { color: var(--ink2); font-size: 17px; }
@media (max-width: 600px) { .grid, .repeat .item { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
::placeholder { color: color-mix(in srgb, var(--ink2) 50%, transparent); font-style: italic; }
