/* Doc 559 — expert intake (shared by /talk-to-an-expert and /buy "Explore My Options").
   One decision per screen. Mobile first. Logical properties (RTL safe). */
.ei-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ei-step-h { display: block; float: none; width: 100%; padding: 0; margin: 0 0 18px; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #0B1220; }
/* hidden always wins inside an intake form (page / modal classes set display: flex|grid) */
form[data-intake] [hidden] { display: none !important; }

/* bar: back + progress + topic name */
.ei-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ei-bar-back { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F1F5F9; color: #0B1220; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.ei-bar-back:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
/* arrows: drawn left-to-right everywhere (no Bidi mirroring), turned by CSS in RTL */
.ei-bar-back > span, .tte-topic > span::after { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ei-bar-back > span, [dir="rtl"] .tte-topic > span::after { transform: scaleX(-1); }
.ei-prog { flex: 1; display: flex; gap: 4px; min-height: 44px; align-items: center; }
.ei-prog i { flex: 1; height: 4px; border-radius: 4px; background: #E2E8F0; }
.ei-prog i.on { background: #0B1220; }
.ei-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748B; }
.ei-eyebrow:empty { display: none; }

/* one question: big tap rows, the dot shows the pick */
.ei-opts { display: flex; flex-direction: column; gap: 10px; }
.ei-opt { position: relative; display: block; cursor: pointer; }
.ei-opt > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ei-opt > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; box-sizing: border-box;
  padding: 14px 16px; border: 1.5px solid #E2E8F0; border-radius: 16px; background: #fff; font-size: 16px; font-weight: 600; color: #0B1220; line-height: 1.3; }
.ei-opt > span::after { content: ""; flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid #CBD5E1; }
.ei-opt:hover > span { border-color: #94A3B8; }
.ei-opt > input:checked + span { border-color: #0B1220; box-shadow: inset 0 0 0 1px #0B1220; background: #F8FAFC; }
.ei-opt > input:checked + span::after { border: 6px solid #0B1220; }
.ei-opt > input:focus-visible + span { outline: 2px solid #93C5FD; outline-offset: 2px; }

/* contact: label inside the box */
.ei-field { margin: 0 0 10px; }
.ei-box { display: block; border: 1.5px solid #E2E8F0; border-radius: 14px; background: #fff; padding: 8px 14px 6px; cursor: text; }
.ei-box:focus-within { border-color: #0B1220; }
.ei-box-l { display: block; font-size: 12px; font-weight: 700; color: #64748B; }
.ei-box input { display: block; width: 100%; box-sizing: border-box; height: 32px; border: 0; padding: 0; margin: 0; background: transparent;
  font-size: 17px; font-weight: 500; color: #0B1220; outline: none; }
.ei-wa-row { display: flex; align-items: center; gap: 10px; }
.ei-wa-row select { flex: none; max-width: 120px; height: 40px; border: 0; border-inline-end: 1px solid #E2E8F0; border-radius: 0; background: transparent;
  padding: 0; padding-inline-end: 8px; font-size: 16px; font-weight: 600; color: #0B1220; outline: none; }
.ei-wa-row input { flex: 1; min-width: 0; height: 40px; }
.ei-talk { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #F1F5F9; border-radius: 14px; padding: 6px 6px 6px 14px;
  font-size: 14px; color: #334155; }
[dir="rtl"] .ei-talk { padding: 6px 14px 6px 6px; }
.ei-talk select { flex: none; max-width: 60%; height: 44px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; padding: 0 12px;
  font-size: 14px; font-weight: 700; color: #0B1220; }
.ei-talk select:focus { outline: 2px solid #93C5FD; outline-offset: 1px; }
.ei-hint { font-size: 12px; color: #64748B; margin: 5px 4px 0; }
.ei-err { color: #B91C1C; font-size: 13px; margin: 5px 4px 0; }
.ei-err-general { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 10px; }
.ei-invalid .ei-box { border-color: #DC2626; }
.ei-invalid .ei-hint { display: none; }

/* when: two big cards; "Later" opens the window under them */
.ei-when { position: relative; display: block; cursor: pointer; margin: 0 0 12px; }
.ei-when > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ei-when > span { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; box-sizing: border-box;
  padding: 16px; border: 1.5px solid #E2E8F0; border-radius: 18px; background: #fff; }
.ei-when i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: #ECFDF3; display: grid; place-items: center; font-style: normal; font-size: 20px; }
.ei-when b { font-size: 16px; color: #0B1220; }
.ei-when small { font-size: 13px; color: #64748B; line-height: 1.35; }
.ei-when > input:checked + span { border-color: #0B1220; box-shadow: inset 0 0 0 1px #0B1220; }
.ei-when > input:focus-visible + span { outline: 2px solid #93C5FD; outline-offset: 2px; }
.ei-window { margin: -2px 0 12px; padding: 14px; border-radius: 18px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.ei-window-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: #475569; }
.ei-seg { display: flex; background: #E2E8F0; border-radius: 12px; padding: 4px; margin: 0 0 10px; }
.ei-seg label { flex: 1; position: relative; cursor: pointer; }
.ei-seg input, .ei-slots input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ei-seg span { display: block; text-align: center; padding: 11px 0; border-radius: 9px; font-weight: 700; font-size: 14px; color: #64748B; }
.ei-seg input:checked + span { background: #fff; color: #0B1220; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.ei-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ei-slots label { position: relative; cursor: pointer; }
.ei-slots span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid #E2E8F0; border-radius: 12px; background: #fff;
  font-weight: 700; font-size: 14px; color: #0B1220; }
.ei-slots input:checked + span { border-color: #0B1220; box-shadow: inset 0 0 0 1px #0B1220; }
.ei-seg input:focus-visible + span, .ei-slots input:focus-visible + span { outline: 2px solid #93C5FD; outline-offset: 2px; }

/* the step's button stays at the bottom of the screen */
.ei-foot { position: sticky; bottom: 0; z-index: 2; margin-top: 14px; padding: 14px 0 calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
.ei-submit { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; height: 54px; border: 0; border-radius: 16px;
  background: #0B1220; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.ei-submit-wa { background: #16A34A; }
.ei-submit[disabled] { opacity: .6; cursor: progress; }
.ei-submit:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.ei-note { font-size: 12px; color: #64748B; text-align: center; margin: 8px 0 0; }

/* success */
.ei-ok { text-align: center; padding: 8px 0; }
.ei-ok-ic { width: 72px; height: 72px; border-radius: 50%; background: #DCFCE7; color: #15803D; display: grid; place-items: center; font-size: 34px; margin: 4px auto 14px; }
.ei-ok h3 { margin: 0 0 6px; font-size: 23px; color: #0B1220; }
.ei-ok p { margin: 0; color: #475569; }
.ei-ok .ei-wa { display: flex; justify-content: center; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 16px;
  background: #25D366; color: #fff; font-weight: 800; text-decoration: none; margin-top: 18px; }

/* /talk-to-an-expert page */
.tte { --ink: #0B1220; --muted: #475569; --line: #E2E8F0; color: var(--ink); background: #F8FAFC; display: flow-root; }
.tte-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.tte-hero { padding: 26px 0 18px; background: radial-gradient(120% 70% at 50% 0%, #E0ECFF 0%, #F8FAFC 70%); }
.tte-h1 { margin: 0; font-size: clamp(27px, 6vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.tte-sub { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.tte-h2 { font-size: 19px; margin: 0 0 12px; }
.tte-hero .tte-h2 { margin-top: 22px; }
.tte-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.tte-trust li { unicode-bidi: plaintext; }
.tte-trust li::before { content: "✓ "; color: #16A34A; font-weight: 700; }
/* topic list: one tap = first question; all 15 topics open, the page scrolls (no inner scroll box) */
.tte-topics { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tte-topic { position: relative; display: block; cursor: pointer; }
.tte-topic + .tte-topic { border-top: 1px solid var(--line); }
.tte-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tte-topic > span { display: flex; align-items: center; gap: 13px; padding: 14px; }
.tte-topic > span::after { content: "›"; flex: none; color: #94A3B8; font-size: 22px; line-height: 1; }
.tte-topic:hover > span { background: #F8FAFC; }
.tte-topic > input:focus-visible + span { outline: 2px solid #93C5FD; outline-offset: -2px; }
.tte-topic-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #F1F5F9; display: grid; place-items: center; font-size: 20px; line-height: 1; font-style: normal; }
.tte-topic-t { flex: 1; min-width: 0; }
.tte-topic b { display: block; font-size: 15.5px; }
.tte-topic small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
/* the steps: a narrow card, under the sticky site header */
.tte-form-card { max-width: 520px; margin: 18px auto 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 18px; scroll-margin-top: 84px; }
.tte-form-card .ei-foot { margin-bottom: -10px; }
/* while the steps are open the screen is the step (no footer jumping up under a short step) */
.tte:has([data-ei-flow]:not([hidden])) [data-mz-section="intake"] { min-height: calc(100vh - 140px); padding-bottom: 24px; }
.tte-form-card[data-intake-ok-wrap] { padding: 22px 18px 18px; }
.tte-help { padding: 22px 0 8px; }
.tte-help ul { margin: 8px 0 0; padding-inline-start: 20px; list-style: disc; }
.tte-help li { margin: 6px 0; }
.tte-help a { color: #2563EB; }
.tte-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
.tte-faq summary { font-weight: 700; cursor: pointer; }
.tte-faq p { margin: 8px 0 2px; color: var(--muted); }
/* help + FAQ are hidden while the steps are open (outside the form) */
.tte [data-intake-aside][hidden] { display: none; }
