/* Public-site conversion layer (landing + application form): price summary, "call me" form,
   camera/gallery upload buttons, plan cards, compact mobile header on the form. Loaded after styles.css. */

/* ---------- prices at a glance ---------- */
.price-summary .ps-title, .need-list .ps-title { font-weight: 800; font-size: 1.02rem; margin-bottom: 10px; }
.ps-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ps-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ps-rows li.featured { border-color: #a9dcc5; background: linear-gradient(180deg, #f2fbf6, var(--card)); }
.ps-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.ps-name small { flex-basis: 100%; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.ps-price { font-weight: 800; white-space: nowrap; color: var(--navy); font-variant-numeric: tabular-nums; }
.ps-badge { font-size: 0.7rem; font-weight: 800; color: var(--green-2); background: var(--green-soft); border-radius: 999px; padding: 2px 8px; }
.ps-notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.86rem; color: var(--ink-2); }
.ps-notes li { position: relative; padding-left: 22px; }
.ps-notes li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--green); font-weight: 800; }

/* ---------- what you need ---------- */
.need-list { padding: 4px 4px 18px; }
.need-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.need-list li { display: flex; gap: 10px; align-items: center; }
.need-list b { display: block; font-size: 0.93rem; }
.need-list small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; display: block; }
.need-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.15rem; }

/* ---------- phone step ---------- */
.phone-actions { display: grid; gap: 10px; margin: 14px 0 6px; }
.call-alt { width: 100%; padding: 13px 16px; }

/* ---------- "call me" form ---------- */
.call-me { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.call-me .cm-label { font-weight: 700; font-size: 0.86rem; margin-top: 2px; }
.call-me .error { color: var(--red); font-size: 0.85rem; min-height: 0; }
.call-me .error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2, var(--line)); background: var(--card); color: var(--ink); min-height: 44px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip.on { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.call-done { margin-top: 10px; }
.call-done p { margin: 6px 0 0; }

/* ---------- after the phone: reassurance banner ---------- */
.lead-banner { margin-bottom: 18px; padding: 13px 15px; border-radius: 14px; background: var(--green-soft); border: 1px solid #a9dcc5; font-size: 0.92rem; }
.link-btn { margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--green-2); text-decoration: underline; cursor: pointer; }

/* ---------- plan cards in the form ---------- */
.plan-cards { grid-template-columns: 1fr; }
.plan-cards label { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 13px 15px; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.plan-cards label:active { transform: scale(0.99); }
.plan-cards .pc-top { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.plan-cards .pc-price { font-weight: 800; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-cards .pc-short { grid-column: 1 / -1; font-weight: 500; font-size: 0.84rem; color: var(--muted); }
.plan-cards label:has(input:checked) .pc-top b::after { content: ' ✓'; color: var(--green); }
.plan-cards .plan-note { grid-column: 1 / -1; margin: 2px 0 0; }

/* ---------- photo / document upload ---------- */
.photo-box { align-items: flex-start; }
.photo-side { display: grid; gap: 6px; min-width: 0; flex: 1; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 11px; border: 2px solid var(--green); background: #fff; color: var(--green-2); font-weight: 800; font-size: 0.9rem; cursor: pointer; text-align: center; line-height: 1.2; }
.pick-btn:first-child { background: var(--green); color: #fff; }
.pick-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pick-btn:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.sample-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2, #cdd5df); }
.sample-row .sample { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; background: #fff; flex-shrink: 0; }
@media (max-width: 420px) {
  .photo-box { flex-direction: column; }
  .photo-box img, .photo-box .ph { width: 88px; height: 88px; }
  .photo-side { width: 100%; }
}

/* ---------- compact header on the form page (most visitors are on phones) ---------- */
@media (max-width: 640px) {
  body.page-form .form-progress { padding: 6px 0 7px; }
  body.page-form main.wrap { padding-top: 18px !important; }
  body.page-form h1 { font-size: 2rem; }
}

/* ---------- landing ---------- */
.hero-price { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #cfd9e8; font-size: 0.92rem; text-decoration: none; }
.hero-price b { color: #fff; font-size: 1.05rem; }
.hero-price:hover { background: rgba(255, 255, 255, 0.12); }
.plan-extras { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 20px; align-items: start; }
.plan-extras .card h3 { font-size: 1.05rem; }
.plan .plan-short { color: var(--muted); font-size: 0.9rem; margin: -4px 0 8px; }
@media (max-width: 760px) { .plan-extras { grid-template-columns: 1fr; } }

/* ---------- /ariza: choose quick or full ---------- */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 20px; }
.mode-opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line-2, var(--line)); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.mode-opt:hover { border-color: var(--ink-2); }
.mode-opt.on { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(15, 122, 85, 0.1); }
.mode-opt b { display: block; font-size: 0.95rem; line-height: 1.25; }
.mode-opt small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.3; margin-top: 2px; }
.mo-ic { font-size: 1.3rem; flex-shrink: 0; }
@media (max-width: 380px) { .mode-opt { padding: 10px; gap: 8px; } .mo-ic { display: none; } }

/* ---------- full form ---------- */
.price-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #ecdcb5; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.price-note b { color: var(--ink); }
.price-note .go { margin-left: auto; font-weight: 800; color: var(--green-2); white-space: nowrap; }
.ff-section { scroll-margin-top: 150px; }
.ff-section.done { border-color: #b9d9c6; }
.ff-section.done h3 .n { background: var(--green); color: #fff; }
.ff-lead { margin: -4px 0 14px; }
.field input.upper { text-transform: uppercase; letter-spacing: 0.03em; }
.field input.upper::placeholder { text-transform: none; letter-spacing: 0; }
.stack { display: grid; gap: 8px; }
.ocr-filled input, .ocr-filled select { border-color: var(--gold) !important; background: #fffaf0 !important; }
.ocr-tag { margin-left: 8px; font-size: 0.72rem; font-weight: 800; color: var(--gold-2); background: var(--gold-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.autofill { display: grid; gap: 6px; margin-top: 12px; }
.autofill-btn { border-color: var(--gold) !important; background: linear-gradient(180deg, #fffaf0, var(--gold-soft)) !important; color: var(--gold-2) !important; }
.autofill-btn .ff-ic svg { width: 18px; height: 18px; }

.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-opt, .field .gender-opt { position: relative; display: flex; margin: 0; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 14px; border: 1.5px solid var(--line-2, var(--line)); background: var(--card); font-weight: 700; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.08s; }
.gender-opt:active { transform: scale(0.98); }
.gender-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gender-opt .ff-ic svg { width: 30px; height: 30px; color: var(--muted); }
.gender-opt.on { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.gender-opt.on .ff-ic svg { color: var(--green-2); }
.gender-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(195, 154, 69, 0.55); }

.date-pick { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 8px; }
.date-pick select { padding-left: 10px; padding-right: 6px; }

.yes-no { display: flex; gap: 8px; margin-bottom: 6px; }
.yes-no .chip { min-width: 96px; }
.person-list { display: grid; gap: 10px; margin-top: 12px; }
.person-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line-2, var(--line)); background: var(--bg); }
.person-card.done { border-style: solid; border-color: #b9d9c6; background: var(--card); }
.person-card.invalid { border-color: var(--red); background: #fff9f7; }
.pc-avatar { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.pc-avatar .ff-ic svg { width: 30px; height: 30px; color: var(--muted); }
.pc-photo { width: 100%; height: 100%; object-fit: cover; }
.pc-body { min-width: 0; }
.pc-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-body small { color: var(--muted); }
.person-card.done .pc-body small { color: var(--green-2); font-weight: 700; }
.pc-actions { display: flex; gap: 6px; align-items: center; }
.btn-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1rem; cursor: pointer; flex-shrink: 0; }
.btn-icon:hover { color: var(--red); border-color: var(--red); }
.add-card { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px; border-radius: 14px; border: 1.5px dashed var(--green); background: transparent; color: var(--green-2); font: inherit; font-weight: 800; cursor: pointer; transition: background 0.15s; }
.add-card span { font-size: 1.4rem; line-height: 1; }
.add-card:hover { background: var(--green-soft); }
@media (max-width: 420px) {
  .person-card { grid-template-columns: 44px 1fr; }
  .pc-avatar { width: 44px; height: 44px; }
  .pc-actions { grid-column: 1 / -1; }
  .pc-actions .btn { flex: 1; }
}

/* spouse / child sheet: bottom sheet on phones, centred dialog on desktop */
.sheet { border: 0; padding: 0; width: min(640px, 100%); max-height: min(92vh, 900px); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(16, 38, 31, 0.6); display: flex; flex-direction: column; overflow: hidden; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(16, 38, 31, 0.55); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.45rem; }
.sheet-body { padding: 14px 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-body .fields { grid-template-columns: 1fr; }
.sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
@media (max-width: 640px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; max-height: 94vh; animation: sheet-up 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

/* section chips under the progress bar */
.sec-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px -16px 0; padding: 2px 16px 2px; }
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav a { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.sec-nav a span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 0.72rem; }
.sec-nav a.done { border-color: #b9d9c6; color: var(--green-2); }
.sec-nav a.done span { background: var(--green); color: #fff; }
.fold summary { cursor: pointer; font-weight: 700; color: var(--green-2); min-height: 44px; display: flex; align-items: center; }
.fold[open] summary { margin-bottom: 8px; }
