/* In Your Corner: questionnaire + booking flow (/start, /welcome).
   Mobile-first. Brand tokens per CONTRACT §6. Text never below 16px; targets at least 48px. */

:root {
  --p: #6d35d8;
  --p2: #8d5bea;
  --p3: #f0e8ff;
  --p4: #32145f;
  --ink: #241039;
  --ink2: #17131f;
  --muted: #665f73;
  --muted-strong: #4a4356;
  --yellow: #ffd447;
  --cream: #faf8ff;
  --line: rgba(36, 16, 57, 0.14);
  --card-border: #ddd3ee;
  --field-border: #857c95;
  --err: #b42318;
  --urgent: #a03c06;
  --ok: #1d6b45;
  --shadow: 0 9px 22px rgba(109, 53, 216, 0.22);
  --shadow-soft: 0 24px 60px rgba(50, 20, 95, 0.08), 0 2px 6px rgba(50, 20, 95, 0.04);
  --font: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2332145f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
  scroll-padding-bottom: 120px;
}

body.iyc-intake {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink2);
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(109, 53, 216, 0.22), rgba(109, 53, 216, 0) 70%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.iyc-intake a { color: var(--p); text-underline-offset: 3px; }
.iyc-intake a:hover { color: var(--p4); }

.iyc-intake :focus-visible {
  outline: 3px solid var(--p);
  outline-offset: 3px;
}

.iyc-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.iyc-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--p4);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.iyc-skip:focus { left: 16px; }

.iyc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ header */
.iyc-hdr {
  max-width: 1120px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

.iyc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: var(--ink2) !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.iyc-brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
  background: url(../img/iyc-logo.df8fa9ec.png) center / contain no-repeat;
}
.iyc-brand-mark span {
  display: none;
}

.iyc-hdr-right { display: flex; align-items: center; gap: 12px; }

.iyc-price {
  order: 3;
  width: 100%;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--p4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.iyc-price::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.35);
}

.iyc-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 72px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--card-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--p4) !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.iyc-exit:hover { border-color: var(--p2); }

@media (min-width: 560px) {
  .iyc-price { order: 0; width: auto; margin: 0 0 0 auto; }
}

/* ------------------------------------------------------------------ layout */
.iyc-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.iyc-main { min-width: 0; outline: none; }
#iyc-app { max-width: 680px; margin: 0 auto; }

.iyc-aside { display: none; }

@media (min-width: 720px) {
  .iyc-layout { padding: 8px 24px 0; }
}

@media (min-width: 1080px) {
  .iyc-layout.has-aside {
    grid-template-columns: 280px minmax(0, 680px);
    justify-content: center;
    gap: 32px;
  }
  .iyc-layout.has-aside .iyc-aside:not([hidden]) {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* Placeholder until the first screen renders. It holds a full screen and the same top margin as
   .iyc-screen, so the card doesn't move and the safety footer doesn't jump when JS swaps it (CLS). */
.iyc-loading {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 8px 0 0;
  padding: 56px 24px;
  text-align: center;
  font-size: 18px;
  color: var(--muted-strong);
  background: #fff;
  border-radius: 28px 28px 0 0;
}
noscript > .iyc-loading { min-height: 0; }
@media (min-width: 720px) { .iyc-loading { margin-top: 12px; border-radius: 28px; } }
/* Interim panels shown before the first real screen (e.g. "Confirming your payment…") hold a full screen too. */
#iyc-app > .iyc-screen.iyc-panel--interim { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; }

/* ------------------------------------------------------------------ screen card */
.iyc-screen {
  position: relative;
  margin-top: 8px;
  padding: 24px var(--gutter) 0;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(50, 20, 95, 0.05);
}
.iyc-panel { padding-bottom: 32px; }

@media (min-width: 720px) {
  .iyc-screen {
    --gutter: 48px;
    margin-top: 12px;
    padding-top: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(36, 16, 57, 0.05);
  }
  .iyc-panel { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .iyc-screen { animation: iyc-in 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes iyc-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ progress */
.iyc-prog { margin: 0 0 22px; }
.iyc-prog-line {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted-strong);
}
.iyc-prog-sec { font-weight: 700; color: var(--p); }
.iyc-prog--post .iyc-prog-sec { width: 100%; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.iyc-prog-step { font-weight: 700; color: var(--p); }
.iyc-prog-meta { font-weight: 500; }

.iyc-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 5px;
}
.iyc-bar-seg { height: 6px; border-radius: 99px; background: #e9e2f5; }
.iyc-bar-seg--done { background: var(--p); }
.iyc-bar-seg--current { background: linear-gradient(90deg, var(--p) 0 45%, #cdb9f4 45% 100%); }

.iyc-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.iyc-dot { width: 10px; height: 10px; border-radius: 99px; background: #e2d8f3; }
.iyc-dot--done { background: var(--p2); }
.iyc-dot--current { width: 32px; background: var(--p); }

.iyc-secmenu { margin-top: 8px; }
.iyc-secmenu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: var(--p4);
  cursor: pointer;
  list-style: none;
}
.iyc-secmenu > summary::-webkit-details-marker { display: none; }
.iyc-secmenu > summary::after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--chev) center / 20px no-repeat;
  transition: transform 0.2s;
}
.iyc-secmenu[open] > summary::after { transform: rotate(180deg); }
.iyc-secmenu .iyc-secs { margin: 4px 0 8px; padding: 12px 16px; background: var(--cream); border-radius: 18px; }
@media (min-width: 1080px) {
  .has-aside .iyc-secmenu { display: none; }
}

/* ------------------------------------------------------------------ section list */
.iyc-seclist {
  background: #fff;
  border-radius: 28px;
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  margin-top: 12px;
}
.iyc-seclist-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p);
}
.iyc-secs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.iyc-sec { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.iyc-sec-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #efe9f8;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 700;
}
.iyc-sec-mark .iyc-ico svg { width: 18px; height: 18px; }
.iyc-sec--done .iyc-sec-mark { background: var(--p); color: #fff; }
.iyc-sec--current .iyc-sec-mark { background: #fff; color: var(--p); box-shadow: inset 0 0 0 2.5px var(--p); }
.iyc-sec-text { padding-top: 3px; min-width: 0; }
.iyc-sec-title { display: block; font-size: 17px; line-height: 1.35; color: var(--ink2); }
.iyc-sec--current .iyc-sec-title { font-weight: 700; }
.iyc-sec--done .iyc-sec-title { color: var(--muted-strong); }
.iyc-sec-sub { display: block; font-size: 16px; line-height: 1.4; color: var(--muted-strong); }
.iyc-sec-sub--records { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------ headings & copy */
.iyc-head { margin-bottom: 4px; }
.iyc-eyebrow {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p);
}
.iyc-head h1 {
  margin: 0 0 12px;
  font-size: clamp(29px, 7.6vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink2);
  text-wrap: balance;
}
.iyc-head h1:focus { outline: none; }
.iyc-intro { margin: 0 0 6px; font-size: 19px; line-height: 1.5; color: var(--muted-strong); text-wrap: pretty; }

.iyc-blocks { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.iyc-p { margin: 0; font-size: 19px; line-height: 1.55; }
.iyc-subhead { margin: 10px 0 -4px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink2); }
.iyc-screen--review .iyc-review + .iyc-blocks { margin-top: 26px; }
.iyc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.iyc-list > li { position: relative; padding-left: 28px; font-size: 19px; line-height: 1.5; }
.iyc-list > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p2);
}

.iyc-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--p3);
  color: var(--ink2);
  font-size: 18px;
}
.iyc-note .iyc-ico { color: var(--p); margin-top: 2px; }
.iyc-note .iyc-ico svg { width: 24px; height: 24px; }
.iyc-note-body { min-width: 0; }
.iyc-note-body > * { margin: 0; }
.iyc-note-body > * + * { margin-top: 8px; }
.iyc-note--caution { background: #fff7dc; }
.iyc-note--caution .iyc-ico { color: #946200; }
.iyc-note--success { background: #e7f6ee; }
.iyc-note--success .iyc-ico { color: var(--ok); }
.iyc-note--error { background: #fff1ef; box-shadow: inset 0 0 0 2px var(--err); }
.iyc-note--error .iyc-ico { color: var(--err); }
.iyc-screen > .iyc-note { margin: 16px 0 4px; }

/* ------------------------------------------------------------------ questions */
.iyc-qs { display: flex; flex-direction: column; gap: 36px; margin-top: 26px; }
.iyc-qs:empty { display: none; }
.iyc-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.iyc-q.iyc-invalid { padding-left: 16px; box-shadow: inset 4px 0 0 var(--err); }

.iyc-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink2);
}
fieldset.iyc-q > legend.iyc-label { float: left; width: 100%; }
fieldset.iyc-q > :not(legend) { clear: both; }
.iyc-optional { font-size: 18px; font-weight: 400; color: var(--muted-strong); letter-spacing: 0; }
.iyc-help { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: var(--muted-strong); }

.iyc-err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--err);
}
.iyc-err .iyc-ico { flex: none; margin-top: 1px; }
.iyc-err .iyc-ico svg { width: 22px; height: 22px; }

.iyc-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--p3);
  color: var(--p4);
  font-size: 17px;
  font-weight: 500;
}

/* option cards (native input inside the label) */
.iyc-opts { display: flex; flex-direction: column; gap: 10px; }

.iyc-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 60px;
  padding: 16px 18px;
  border: 2px solid var(--card-border);
  border-radius: 18px;
  background: #fff;
  color: var(--ink2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.iyc-opt:hover { border-color: #b7a1e8; }
.iyc-opt.is-checked {
  border-color: var(--p);
  background: #f9f5ff;
  box-shadow: inset 0 0 0 1px var(--p);
}
.iyc-opt:focus-within { outline: 3px solid var(--p); outline-offset: 3px; }
@supports selector(:has(*)) {
  .iyc-opt:focus-within { outline: none; }
  .iyc-opt:has(.iyc-input:focus-visible) { outline: 3px solid var(--p); outline-offset: 3px; }
}

.iyc-input[type="radio"],
.iyc-input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 2px solid var(--field-border);
  border-radius: 50%;
  background: #fff center / 20px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.iyc-input[type="checkbox"] { border-radius: 8px; }
.iyc-input[type="radio"]:checked,
.iyc-input[type="checkbox"]:checked {
  border-color: var(--p);
  background-color: var(--p);
  background-image: var(--check);
}
.iyc-input[type="radio"]:focus-visible,
.iyc-input[type="checkbox"]:focus-visible { outline: none; }

.iyc-opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.iyc-opt-label { font-size: 19px; line-height: 1.4; font-weight: 500; overflow-wrap: break-word; hyphens: manual; }
.iyc-opt.is-checked .iyc-opt-label { font-weight: 600; }
.iyc-opt--consent.is-checked .iyc-opt-label,
.iyc-opt--ack.is-checked .iyc-opt-label { font-weight: 500; }
.iyc-opt-hint { font-size: 17px; line-height: 1.45; color: var(--muted-strong); }

.iyc-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-strong);
}
.iyc-or::before, .iyc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* compact yes/no rows */
.iyc-opts--row {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: 10px;
}
.iyc-opts--row .iyc-opt {
  min-height: 56px;
  padding: 12px 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.iyc-opts--row .iyc-input[type="radio"] { width: 24px; height: 24px; background-size: 16px; }
.iyc-opts--row .iyc-opt-label { font-weight: 600; font-size: 18px; }
.iyc-qs > .iyc-layout-row + .iyc-layout-row { margin-top: -10px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 419px) {
  .iyc-opts--row[data-n="3"] .iyc-opt { flex-direction: column; gap: 6px; padding: 10px 4px; min-height: 76px; }
  .iyc-opts--row[data-n="3"] .iyc-opt-body { align-items: center; text-align: center; }
  .iyc-opts--row:not([data-n="2"]):not([data-n="3"]) { grid-template-columns: minmax(0, 1fr); }
}
.iyc-qs > .iyc-layout-row + .iyc-layout-row.iyc-invalid { border-top: 0; }

/* 1–10 grid (2 × 5) */
.iyc-opts--grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.iyc-opts--grid .iyc-opt {
  min-height: 60px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.iyc-opts--grid .iyc-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  opacity: 0;
}
.iyc-opts--grid .iyc-opt-body { padding: 0; align-items: center; }
.iyc-opts--grid .iyc-opt-label { font-size: 21px; font-weight: 700; }
.iyc-opts--grid .iyc-opt.is-checked { background: var(--p); border-color: var(--p); color: #fff; box-shadow: var(--shadow); }
.iyc-opts--grid .iyc-opt.is-checked::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: var(--check) center / 16px no-repeat;
}
.iyc-grid-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 16px; color: var(--muted-strong); }
.iyc-grid-ends span:last-child { text-align: right; }

/* consent & acknowledgement */
.iyc-opt--consent .iyc-opt-label,
.iyc-opt--ack .iyc-opt-label { font-weight: 500; }
.iyc-q--consent .iyc-help { margin: 10px 0 0; }

/* text fields */
.iyc-text,
.iyc-select,
.iyc-textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 12px 16px;
  border: 2px solid var(--field-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink2);
  font: inherit;
  font-size: 19px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.iyc-text:hover, .iyc-select:hover, .iyc-textarea:hover { border-color: var(--p4); }
.iyc-text:focus, .iyc-select:focus, .iyc-textarea:focus {
  outline: 3px solid var(--p);
  outline-offset: 2px;
  border-color: var(--p);
}
.iyc-text::placeholder, .iyc-textarea::placeholder { color: #6f6780; }
.iyc-textarea { min-height: 160px; resize: vertical; field-sizing: content; max-height: 60vh; }
.iyc-text--short { width: 8.5em; }
.iyc-select { padding-right: 52px; background: #fff var(--chev) right 16px center / 22px no-repeat; cursor: pointer; }
.iyc-invalid .iyc-text, .iyc-invalid .iyc-select, .iyc-invalid .iyc-textarea { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }

.iyc-input-row { display: flex; align-items: center; gap: 12px; }
.iyc-suffix { font-size: 18px; font-weight: 500; color: var(--muted-strong); }

.iyc-parts { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.iyc-part-label { display: block; margin: 0 0 6px; font-size: 17px; font-weight: 500; color: var(--ink2); }
.iyc-part { text-align: center; }
.iyc-part--1 { width: 3.6em; }
.iyc-part--2 { width: 4.4em; }
.iyc-part--4 { width: 6em; }

.iyc-tip { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 17px; line-height: 1.45; color: var(--muted-strong); }
.iyc-tip .iyc-ico { color: var(--p); margin-top: 1px; }
.iyc-tip .iyc-ico svg { width: 22px; height: 22px; }
.iyc-count { margin: 8px 0 0; font-size: 16px; color: var(--muted-strong); text-align: right; }

.iyc-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 18px; color: var(--ink2); }
.iyc-suggest-btn {
  min-height: 48px;
  padding: 8px 18px;
  border: 2px solid var(--p);
  border-radius: 999px;
  background: var(--p3);
  color: var(--p4);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.iyc-suggest-btn:hover { background: #e6d9ff; }

/* ------------------------------------------------------------------ messages */
.iyc-msgs { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.iyc-msgs:empty { display: none; }
.iyc-msg {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid #d9c8fb;
  background: var(--p3);
  color: var(--ink2);
}
.iyc-msg-ico { flex: none; color: var(--p); }
.iyc-msg-ico svg { width: 28px; height: 28px; }
.iyc-msg-body { min-width: 0; flex: 1; }
.iyc-msg-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.iyc-msg-text { margin: 0; font-size: 18px; line-height: 1.5; }
.iyc-msg .iyc-opt--ack { margin-top: 14px; background: #fff; }
.iyc-msg .iyc-err { margin: 12px 0 0; }
.iyc-tel { font-weight: 700; padding-block: 12px; }

.iyc-msg--caution { background: #fff8e0; border-color: #efd27a; }
.iyc-msg--caution .iyc-msg-ico { color: #946200; }
.iyc-msg--urgent { background: #fff4ea; border-color: var(--urgent); border-left-width: 8px; }
.iyc-msg--urgent .iyc-msg-ico { color: var(--urgent); }
.iyc-msg--urgent .iyc-msg-title { color: #7a2e05; }
.iyc-msg--emergency { background: #fff0ee; border: 3px solid var(--err); border-left-width: 10px; }
.iyc-msg--emergency .iyc-msg-ico { color: var(--err); }
.iyc-msg--emergency .iyc-msg-ico svg { width: 34px; height: 34px; }
.iyc-msg--emergency .iyc-msg-title { font-size: 21px; color: #8c1c13; text-transform: uppercase; letter-spacing: 0.04em; }
.iyc-msg--emergency .iyc-msg-text { font-size: 19px; font-weight: 600; }
.iyc-msg--urgent .iyc-opt--ack.is-checked,
.iyc-msg--emergency .iyc-opt--ack.is-checked { background: #fff; }

/* ------------------------------------------------------------------ error summary */
.iyc-errsum {
  margin: 20px 0 4px;
  padding: 18px 20px;
  border: 3px solid var(--err);
  border-radius: 20px;
  background: #fff;
}
.iyc-errsum:focus { outline: none; }
.iyc-errsum:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; }
.iyc-errsum-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 21px; line-height: 1.3; color: var(--err); }
.iyc-errsum-title .iyc-ico svg { width: 26px; height: 26px; }
.iyc-errsum-list { list-style: none; margin: 0; padding: 0; }
.iyc-errsum-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 6px 0;
  color: var(--err);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.iyc-errsum-q { color: var(--ink2); font-weight: 500; font-size: 16px; text-decoration: none; }

.iyc-submit-err {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff1ef;
  box-shadow: inset 0 0 0 2px var(--err);
}
.iyc-submit-err:focus { outline: none; }
.iyc-submit-err > .iyc-ico { color: var(--err); flex: none; }
.iyc-submit-err-body > * { margin: 0; }
.iyc-submit-err-body > * + * { margin-top: 8px; }
.iyc-submit-err-title { font-weight: 700; font-size: 19px; }

/* ------------------------------------------------------------------ review */
.iyc-review { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.iyc-rcard { padding: 12px 16px 12px 20px; border: 2px solid var(--card-border); border-radius: 22px; background: #fff; }
.iyc-rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.iyc-rcard-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.iyc-records { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 17px; font-weight: 600; color: var(--ok); }
.iyc-facts { margin: 18px 0 0; padding: 6px 18px; border-radius: 20px; background: var(--cream); border: 1px solid rgba(36, 16, 57, 0.06); }
.iyc-fact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 60px; padding: 8px 0; }
.iyc-fact + .iyc-fact { border-top: 1px solid var(--line); }
.iyc-fact-text { display: flex; flex-direction: column; min-width: 0; }
.iyc-fact-label { font-size: 16px; color: var(--muted-strong); }
.iyc-fact-value { font-size: 18px; font-weight: 600; color: var(--ink2); }
.iyc-fact .iyc-btn--soft { background: #fff; box-shadow: inset 0 0 0 2px #d9c8fb; }
.iyc-records .iyc-ico svg { width: 20px; height: 20px; }
.iyc-rlist { margin: 4px 0 4px; }
.iyc-rrow { padding: 10px 0; border-top: 1px solid var(--line); }
.iyc-rrow dt { font-size: 16px; line-height: 1.4; color: var(--muted-strong); }
.iyc-rrow dd { margin: 2px 0 0; font-size: 18px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.iyc-rdetails > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 600;
  color: var(--p4);
  cursor: pointer;
  list-style: none;
}
.iyc-rdetails > summary::-webkit-details-marker { display: none; }
.iyc-rdetails > summary::after { content: ""; width: 20px; height: 20px; background: var(--chev) center / 20px no-repeat; transition: transform 0.2s; }
.iyc-rdetails[open] > summary::after { transform: rotate(180deg); }
.iyc-screen--review .iyc-qs { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ buttons */
.iyc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.iyc-btn .iyc-ico { display: inline-flex; }
.iyc-btn .iyc-ico svg { width: 22px; height: 22px; }
.iyc-btn--primary { background: var(--p); color: #fff !important; box-shadow: var(--shadow); }
.iyc-btn--primary:hover { background: #5c28c4; }
.iyc-btn--ghost { background: #fff; color: var(--p4) !important; border-color: var(--card-border); }
.iyc-btn--ghost:hover { border-color: var(--p2); }
.iyc-btn--soft { min-height: 48px; padding: 0 22px; background: var(--p3); color: var(--p4) !important; }
.iyc-btn--soft:hover { background: #e4d6ff; }
.iyc-btn--danger { background: #fff; color: var(--err) !important; border-color: #eab5ae; }
.iyc-btn--yellow { background: var(--yellow); color: var(--ink2) !important; box-shadow: 0 9px 22px rgba(255, 196, 0, 0.3); }
.iyc-btn[aria-disabled="true"] { cursor: progress; opacity: 0.9; }
.iyc-ico--spinner svg { animation: iyc-spin 0.9s linear infinite; }
@keyframes iyc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .iyc-btn:active { transform: scale(0.985); }
}

.iyc-linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--p4);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.iyc-linkbtn:hover { color: var(--p); }

/* ------------------------------------------------------------------ Back / Continue bar */
.iyc-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 36px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line);
}
.iyc-actions-in { display: flex; align-items: stretch; gap: 10px; }
.iyc-next { flex: 1 1 auto; min-width: 0; padding: 0 20px; }
.iyc-back { flex: none; padding: 0 18px; }
.iyc-actions--long .iyc-next { padding: 8px 18px; }

/* keyboard open on a phone: the bar steps aside and sits inline */
html.iyc-typing .iyc-actions {
  position: static;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 419px) {
  .iyc-actions--long .iyc-back { width: 56px; padding: 0; }
  .iyc-actions--long .iyc-back .iyc-btn-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (min-width: 720px) {
  .iyc-actions {
    position: static;
    margin: 44px 0 0;
    padding: 0 0 48px;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .iyc-actions-in { justify-content: space-between; }
  .iyc-next { flex: 0 1 auto; min-width: 220px; margin-left: auto; padding: 0 30px; }
}

/* ------------------------------------------------------------------ flow panels */
.iyc-panel-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.iyc-panel-actions .iyc-btn { width: 100%; }
@media (min-width: 720px) {
  .iyc-panel-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .iyc-panel-actions .iyc-btn { width: auto; }
}

.iyc-card {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid rgba(36, 16, 57, 0.06);
}
.iyc-card > h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.iyc-card > p { margin: 0; }
.iyc-card > * + p { margin-top: 8px; }

.iyc-chips { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.iyc-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--p4);
  font-size: 17px;
  font-weight: 600;
}
.iyc-chip .iyc-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p3); color: var(--p); }
.iyc-chip .iyc-ico svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .iyc-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
}

.iyc-utility { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 14px auto 0; padding: 0 16px; }

.iyc-shortcut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 18px 0 0;
  padding: 8px 8px 8px 18px;
  border-radius: 20px;
  background: var(--p3);
  font-size: 17px;
  font-weight: 600;
  color: var(--p4);
}
.iyc-shortcut .iyc-btn--soft { background: #fff; box-shadow: inset 0 0 0 2px #d9c8fb; }
.iyc-shortcut .iyc-btn--soft:hover { box-shadow: inset 0 0 0 2px var(--p2); }

.iyc-form-row { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.iyc-form-row .iyc-btn { width: 100%; }
@media (min-width: 720px) {
  .iyc-form-row .iyc-btn { width: auto; align-self: flex-start; }
}

.iyc-steps { list-style: none; counter-reset: s; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.iyc-steps > li { counter-increment: s; position: relative; padding-left: 48px; font-size: 18px; line-height: 1.5; min-height: 34px; }
.iyc-steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--p);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.iyc-steps strong { display: block; }

.iyc-booked {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5a24c4, #8d5bea);
  color: #fff;
  box-shadow: var(--shadow);
}
.iyc-booked .iyc-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.18); }
.iyc-booked .iyc-ico svg { width: 28px; height: 28px; }
.iyc-booked p { margin: 0; }
.iyc-booked-label { font-size: 16px; opacity: 0.92; }
.iyc-booked-time { font-size: 21px; font-weight: 700; line-height: 1.3; }

/* Cal.com inline embed: grows with its content, no inner scroll */
.iyc-cal-wrap { margin: 20px calc(var(--gutter) * -1) 0; }
.iyc-cal { width: 100%; min-height: 640px; }
.iyc-cal:empty { display: grid; place-items: center; }
.iyc-cal-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--muted-strong); }
.iyc-tz { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 17px; color: var(--muted-strong); }
.iyc-tz .iyc-ico { color: var(--p); }
.iyc-tz .iyc-ico svg { width: 22px; height: 22px; }
@media (min-width: 720px) { .iyc-cal-wrap { margin: 24px 0 0; } }

/* ------------------------------------------------------------------ safety footer (in flow) */
.iyc-foot {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 20px calc(36px + env(safe-area-inset-bottom));
  color: var(--muted-strong);
}
.iyc-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.iyc-foot-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 48px; font-size: 16px; line-height: 1.4; }
.iyc-foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  color: var(--p4);
}
.iyc-foot-list .iyc-ico { color: var(--p); }
.iyc-foot-list .iyc-ico svg { width: 20px; height: 20px; }
.iyc-foot-legal { margin: 12px 0 0; font-size: 16px; }
@media (min-width: 720px) {
  .iyc-foot { padding-top: 24px; }
  .iyc-foot-list li { justify-content: center; text-align: center; }
}

/* screen bottom on phones: the card continues into the page */
@media (max-width: 719px) {
  #iyc-app > .iyc-screen { min-height: calc(100dvh - 140px); }
  .iyc-utility { background: #fff; margin: 0; padding: 8px 16px 12px; max-width: none; border-top: 1px solid var(--line); }
  .iyc-foot { background: #fff; max-width: none; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ dialogs */
.iyc-dialog {
  width: calc(100% - 32px);
  max-width: 520px;
  padding: 26px 24px 22px;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink2);
  font-family: var(--font);
  font-size: 18px;
  box-shadow: 0 30px 80px rgba(23, 19, 31, 0.35);
}
.iyc-dialog::backdrop { background: rgba(23, 19, 31, 0.55); }
.iyc-dialog-title { margin: 0 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; }
.iyc-dialog-text { margin: 0 0 22px; font-size: 18px; line-height: 1.5; color: var(--muted-strong); }
.iyc-dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.iyc-dialog-actions .iyc-btn { width: 100%; }
html.iyc-modal-open, html.iyc-modal-open body { overflow: hidden; }

.iyc-dialog--sheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.iyc-dialog--sheet[open] { display: flex; flex-direction: column; }
.iyc-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px 22px;
  border-bottom: 1px solid var(--line);
}
.iyc-sheet-head .iyc-dialog-title { margin: 0; font-size: 22px; }
.iyc-dialog-close { min-height: 48px; padding: 0 18px; }
.iyc-doc { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 20px 22px 28px; font-size: 18px; line-height: 1.6; }
.iyc-doc:focus { outline: none; }
.iyc-doc h2 { font-size: 22px; line-height: 1.3; margin: 1.2em 0 0.4em; }
.iyc-doc h3 { font-size: 20px; line-height: 1.3; margin: 1.1em 0 0.4em; }
.iyc-doc p, .iyc-doc li { font-size: 18px; }
.iyc-doc-loading { display: flex; align-items: center; gap: 10px; color: var(--muted-strong); }
.iyc-sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.iyc-sheet-foot .iyc-btn { width: 100%; }

@media (min-width: 720px) {
  .iyc-dialog--sheet {
    width: calc(100% - 48px);
    max-width: 760px;
    height: auto;
    max-height: calc(100% - 64px);
    margin: auto;
    border-radius: 28px;
  }
  .iyc-dialog-actions { flex-direction: row-reverse; }
  .iyc-dialog-actions .iyc-btn { width: auto; flex: 1; }
}

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.iyc-authlink { margin-top: 18px; }
.iyc-doclinks { justify-content: flex-start; padding: 0; margin: 0 0 4px; gap: 10px; }
.iyc-q-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.iyc-q--doc-first > .iyc-help { margin: 0 0 10px; }
.iyc-q--doc-first > .iyc-q-docs { margin: 0 0 14px; }

/* ------------------------------------------------------------------ print (authorization copy) */
@media print {
  body.iyc-intake { background: #fff; }
  body.iyc-intake > *:not(dialog) { display: none !important; }
  .iyc-dialog--sheet { position: static; width: 100%; max-width: none; height: auto; max-height: none; box-shadow: none; border-radius: 0; }
  .iyc-dialog--sheet::backdrop { display: none; }
  .iyc-sheet-head .iyc-btn, .iyc-sheet-foot { display: none !important; }
  .iyc-doc { overflow: visible; }
}
