/* Insure With You intake. Tokens match the youinsuranceagency.com theme (dark navy, Inter, violet-to-teal accent). */
:root {
  --yi-bg: #0b0f19; --yi-bg-alt: #111726; --yi-surface: #161d2e; --yi-surface-2: #1d2740; --yi-border: #26304a;
  --yi-text: #e8ecf5; --yi-text-muted: #97a1b8; --yi-accent: #6c5ce7; --yi-accent-2: #00d1b2;
  --yi-accent-grad: linear-gradient(135deg, #6c5ce7 0%, #00d1b2 100%);
  --yi-danger: #ff6b6b; --yi-danger-soft: rgba(255,107,107,.1); --yi-ok: #3ddc97; --yi-warn: #f5b84a;
  --yi-radius: 16px; --yi-radius-sm: 10px; --yi-shadow-sm: 0 8px 24px -12px rgba(0,0,0,.6);
  --yi-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
body.iwy { margin: 0; font-family: var(--yi-font); background: var(--yi-bg); color: var(--yi-text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.iwy a { color: var(--yi-accent-2); text-decoration: none; }
.iwy img { max-width: 100%; height: auto; display: block; }
.iwy-container { width: 100%; max-width: 820px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.iwy-header { position: sticky; top: 0; z-index: 50; background: rgba(11,15,25,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--yi-border); }
.admin-bar .iwy-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .iwy-header { top: 46px; } }
.iwy-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; max-width: 1180px; }
.iwy-brand img { max-height: 46px; width: auto; }
.iwy-call { font-weight: 600; color: var(--yi-text) !important; border: 1px solid var(--yi-border); border-radius: 999px; padding: .5rem 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.iwy-call:hover { border-color: var(--yi-accent); }
.iwy-main { padding-top: 28px; padding-bottom: 56px; }
.iwy-eyebrow { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yi-text-muted); }
.iwy-eyebrow span { background: var(--yi-accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.rail { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; margin: 0; list-style: none; scrollbar-width: thin; }
.rail li { flex: none; }
.rail button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--yi-border); background: var(--yi-surface); color: var(--yi-text-muted); border-radius: 999px; padding: 5px 12px; display: flex; gap: 6px; align-items: center; cursor: default; }
.rail button .n { font-variant-numeric: tabular-nums; }
.rail button[aria-current="step"] { background: var(--yi-accent-grad); border-color: transparent; color: #fff; }
.rail button.done { cursor: pointer; color: var(--yi-text); }
.rail button.done .n { color: var(--yi-accent-2); }

.step-head { padding: 8px 0 4px; }
.step-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -.01em; line-height: 1.2; font-weight: 700; color: #fff; margin: 0 0 .4em; text-wrap: balance; }
.step-head p { margin: 0; color: var(--yi-text-muted); max-width: 62ch; }
.group { background: var(--yi-surface); border: 1px solid var(--yi-border); border-radius: var(--yi-radius); padding: 22px; margin-top: 18px; }
.group > h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.w2{grid-column:span 2}.w3{grid-column:span 3}.w4{grid-column:span 4}.w5{grid-column:span 5}.w6{grid-column:span 6}.w7{grid-column:span 7}.w8{grid-column:span 8}.w12{grid-column:span 12}
@media (max-width: 620px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .w2{grid-column:span 2} .w3,.w4,.w5{grid-column:span 3} .w6,.w7,.w8,.w12{grid-column:span 6} .group { padding: 16px; } }
@media (max-width: 620px) { .mfull { grid-column: span 6; } }
@media (max-width: 400px) { .w3,.w4,.w5 { grid-column: span 6; } }
.iwy label, .iwy legend { font-size: 14px; font-weight: 600; color: var(--yi-text); padding: 0; }
.optional { font-weight: 400; color: var(--yi-text-muted); font-size: 12px; margin-left: 6px; }
.iwy input[type=text], .iwy input[type=email], .iwy input[type=tel], .iwy input[type=date], .iwy select, .iwy textarea {
  font: inherit; font-size: 16px; color: var(--yi-text); background: var(--yi-bg-alt); border: 1px solid var(--yi-border); border-radius: var(--yi-radius-sm);
  padding: 11px 13px; width: 100%; min-height: 46px; }
.iwy textarea { min-height: 92px; resize: vertical; }
.iwy input::placeholder, .iwy textarea::placeholder { color: var(--yi-text-muted); opacity: .7; }
.iwy input:focus, .iwy select:focus, .iwy textarea:focus { outline: none; border-color: var(--yi-accent-2); box-shadow: 0 0 0 3px rgba(0,209,178,.18); }
.iwy button:focus-visible, .choice input:focus-visible + span { outline: 2px solid var(--yi-accent-2); outline-offset: 2px; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--yi-danger); background: var(--yi-danger-soft); }
.prefix { position: relative; } .prefix input { padding-left: 26px; }
.prefix::before { content: "$"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--yi-text-muted); }
.hint { font-size: 13px; color: var(--yi-text-muted); margin: 0; }
.live { font-size: 13px; margin: 0; color: var(--yi-text-muted); }
.live.ok { color: var(--yi-ok); } .live.warn { color: var(--yi-warn); }
.err { font-size: 13px; color: var(--yi-danger); margin: 0; font-weight: 600; }
.err:empty, .live:empty, .hint:empty { display: none; }
.suggest { font: inherit; font-size: 13px; border: 0; background: none; color: var(--yi-accent-2); padding: 0; text-align: left; cursor: pointer; text-decoration: underline; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--yi-border); border-radius: 999px; background: var(--yi-bg-alt); font-size: 15px; cursor: pointer; color: var(--yi-text); }
.choice input:checked + span { border-color: transparent; background: var(--yi-accent-grad); color: #fff; font-weight: 600; }
.has-err .choice span { border-color: var(--yi-danger); }
.big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.big .choice { display: block; height: 100%; }
.big .choice span { font-weight: 400; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 46px 20px 20px; height: 100%; min-height: 156px; border-radius: var(--yi-radius); position: relative; background: var(--yi-bg-alt); }
.tile-ico { width: 46px; height: 46px; margin-bottom: 8px; flex: none; }
.big .choice span::before { content: ""; position: absolute; right: 16px; top: 16px; width: 20px; height: 20px; border: 2px solid var(--yi-border); border-radius: 6px; background: var(--yi-bg); }
.big .choice input:checked + span { background: var(--yi-surface-2); color: var(--yi-text); font-weight: 400; box-shadow: inset 0 0 0 2px var(--yi-accent-2); }
.big .choice input:checked + span::before { background: var(--yi-accent-grad); border-color: transparent; }
.big strong { font-size: 1.15rem; font-weight: 700; color: #fff; }
.big small { color: var(--yi-text-muted); font-size: 14px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--yi-accent-2); }
.card { border: 1px solid var(--yi-border); border-radius: var(--yi-radius-sm); padding: 16px; background: var(--yi-bg-alt); margin-top: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head h4 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.link { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 4px 0; color: var(--yi-accent-2); cursor: pointer; }
.link.danger { color: var(--yi-danger); }
.add { margin-top: 14px; font: inherit; font-weight: 600; font-size: 15px; border: 1px dashed var(--yi-border); background: transparent; color: var(--yi-text); border-radius: var(--yi-radius-sm); padding: 11px 14px; cursor: pointer; width: 100%; }
.add:hover { border-color: var(--yi-accent-2); }
.errsum { margin-top: 18px; background: var(--yi-danger-soft); border: 1px solid var(--yi-danger); border-radius: var(--yi-radius-sm); padding: 12px 16px; }
.errsum h3 { margin: 0 0 6px; font-size: 15px; color: var(--yi-danger); }
.errsum ul { margin: 0; padding-left: 18px; }
.errsum a { color: var(--yi-text); text-decoration: underline; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 1rem; border-radius: 999px; padding: .9rem 1.8rem; min-height: 50px; cursor: pointer; border: 1px solid var(--yi-border); background: transparent; color: var(--yi-text); transition: transform .2s ease, box-shadow .2s ease; }
.btn.primary { background: var(--yi-accent-grad); border-color: transparent; color: #fff; margin-left: auto; box-shadow: var(--yi-shadow-sm); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(108,92,231,.7); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.drop { border: 2px dashed var(--yi-border); border-radius: var(--yi-radius); padding: 26px; text-align: center; background: var(--yi-bg-alt); position: relative; }
.drop.over { border-color: var(--yi-accent-2); background: var(--yi-surface-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { display: block; font-size: 16px; color: #fff; }
.drop small { color: var(--yi-text-muted); }
.checklist { margin: 0; padding-left: 18px; color: var(--yi-text-muted); }
.files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.files li { border: 1px solid var(--yi-border); border-radius: var(--yi-radius-sm); padding: 12px; background: var(--yi-bg-alt); }
.fname { font-weight: 600; word-break: break-all; }
.fmeta { font-size: 13px; color: var(--yi-text-muted); font-variant-numeric: tabular-nums; }
.rev { margin-top: 18px; background: var(--yi-surface); border: 1px solid var(--yi-border); border-radius: var(--yi-radius); padding: 16px 20px; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rev h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.rev h4 { margin: 14px 0 6px; font-size: 13px; color: var(--yi-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.rev dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 15px; }
.rev dt { color: var(--yi-text-muted); } .rev dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .rev dl { grid-template-columns: 1fr; } .rev dd { margin-bottom: 6px; } }
.thanks { background: var(--yi-surface); border: 1px solid var(--yi-border); border-radius: var(--yi-radius); padding: 28px; margin-top: 18px; }
.thanks h2 { margin: 0 0 8px; font-size: 1.8rem; color: #fff; }
.thanks .ref { color: var(--yi-text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.iwy-footer { border-top: 1px solid var(--yi-border); padding: 24px 0 40px; color: var(--yi-text-muted); font-size: 13px; }
.iwy-footer p { margin: 0 0 6px; color: var(--yi-text-muted); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.iwy input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .75; cursor: pointer; }
/* Dropdown lists: black text on white so every option is readable on any computer. */
.iwy select option, .iwy select optgroup { background-color: #ffffff !important; color: #111111 !important; }
.iwy select option:checked { background-color: #dfe3ec !important; color: #000000 !important; }
.iwy select option[value=""] { color: #555555 !important; }
.has-err select { background-color: #2a1820; }

/* Phones: tiles stay 2 x 2 and equal; tighter type. */
@media (max-width: 560px) {
  .big .choice span { padding: 14px 34px 14px 14px; min-height: 146px; }
  .big strong { font-size: 1.02rem; }
  .big small { font-size: 13px; line-height: 1.35; }
  .tile-ico { width: 36px; height: 36px; margin-bottom: 4px; }
  .big .choice span::before { right: 10px; top: 10px; width: 18px; height: 18px; }
  .iwy-header-inner { height: 64px; }
  .iwy-brand img { max-height: 38px; }
  .iwy-call { padding: .4rem .8rem; font-size: 14px; }
  .nav .btn { flex: 1 1 auto; }
  .nav .btn.primary { margin-left: 0; }
  .iwy-main { padding-top: 18px; }
}
/* iOS and Android date boxes: full height, left-aligned, visible picker. */
.iwy input[type=date] { -webkit-appearance: none; appearance: none; display: block; line-height: 1.3; text-align: left; }
.iwy input[type=date]::-webkit-date-and-time-value { text-align: left; }
.iwy input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .75; }
/* Bigger tap targets on touch screens. */
@media (pointer: coarse) {
  .choice span { min-height: 48px; }
  .link, .suggest { padding: 8px 0; }
}
