/* Copyright (c) 2026 Shambhavi Astro. All rights reserved. Proprietary - see the LICENSE file. */
/* Quick booking page (book-quick.html): package + time + phone + "Pay via" list, a sticky pay bar and an exit sheet.
   Reuses the site's .field, .chip, .date-strip, .slot-grid, .skeleton, .btn and .book-card.success styles. */

.qb-wrap { max-width: 660px; margin: 0 auto; padding-bottom: 110px; }
.qb-hero { padding: 24px 0 20px; }
.qb-hero h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
.qb-hero p { font-size: 1rem; }
.qb-hero .qb-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 2px; background: none; border: 0; color: var(--on-dark-muted); font: 500 .95rem var(--font-body); cursor: pointer; }
.qb-hero .qb-back:hover { color: #fff; }
.qb-hero .qb-alt { margin: 10px 0 0; font-size: .95rem; }
.qb-hero .qb-alt a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

.qb-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 22px 14px; margin: 0 0 16px; }
.qb-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; color: var(--indigo-900); }
.qb-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 1rem var(--font-body); color: var(--indigo-950); background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }
/* email check */
.qb-code { max-width: 240px; text-align: center; letter-spacing: .5em; font-size: 1.5rem !important; font-weight: 700; }
.qb-code-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 12px; }
.qb-nomail { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sand); font-size: .95rem; }
.qb-nomail p { margin: 0; }
.qb-verified { margin: 0 0 8px; color: #12522c; font-weight: 600; word-break: break-all; }
.qb-verified i { color: #1c7c43; margin-right: 4px; }
.qb-sub { margin: 18px 0 10px; font: 700 1rem var(--font-body); color: var(--indigo-900); }

/* packages (the need) */
.qb-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .qb-pkgs { grid-template-columns: 1fr; } }
.qb-pkg { position: relative; display: block; cursor: pointer; }
.qb-pkg input, .qb-mode input, .qb-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qb-pkg > span { display: flex; gap: 12px; align-items: flex-start; height: 100%; box-sizing: border-box; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.qb-pkg .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--sand); color: var(--gold-700); font-size: 1.15rem; }
.qb-pkg strong { display: block; color: var(--indigo-900); line-height: 1.25; }
.qb-pkg small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.qb-pkg:hover > span, .qb-mode:hover > span, .qb-method:hover > span { border-color: var(--gold-500); }
.qb-pkg input:checked + span { border-color: var(--indigo-800); background: var(--cream); box-shadow: 0 0 0 3px rgba(90, 82, 181, .15); }
.qb-pkg input:checked + span .ico { background: var(--indigo-800); color: var(--gold-300); }
.qb-pkg input:focus-visible + span, .qb-mode input:focus-visible + span, .qb-method input:focus-visible + span { outline: 3px solid var(--indigo-500); outline-offset: 2px; }

/* how to consult */
.qb-modes { display: flex; flex-wrap: wrap; gap: 10px; }
.qb-mode { position: relative; cursor: pointer; }
.qb-mode > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--indigo-900); }
.qb-mode input:checked + span { background: var(--indigo-800); border-color: var(--indigo-800); color: #fff; }
.qb-mode .tag { font-size: .78rem; font-weight: 700; color: var(--gold-700); }
.qb-mode input:checked + span .tag { color: var(--gold-300); }

/* order summary */
.qb-summary { margin: 18px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.qb-summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; }
.qb-summary .row b { font-weight: 700; color: var(--indigo-900); }
.qb-summary .row s { color: var(--muted); margin-right: 8px; font-weight: 400; }
.qb-summary .row .amt { font-size: 1.25rem; font-weight: 700; color: var(--indigo-900); }
.qb-summary .save { padding: 8px 16px; background: #e1f4e8; color: #12522c; font-weight: 600; font-size: .92rem; text-align: center; }

/* when */
.qb-when { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.qb-when strong { display: block; color: var(--indigo-900); }
.qb-when small { display: block; margin-top: 2px; color: var(--muted); }
#qbPicker { margin-top: 14px; }
#qbPicker .group-title { font-family: var(--font-body); font-size: 1rem; margin: 6px 0 10px; }

/* promo */
.qb-link { background: none; border: 0; padding: 4px 0; color: var(--indigo-500); font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qb-promo-row { display: flex; gap: 10px; }
.qb-promo-row input { flex: 1; min-width: 0; }
#qbPromoBox { margin-top: 10px; }

/* pay via */
.qb-methods { display: grid; gap: 10px; margin: 0 0 12px; }
.qb-method { position: relative; display: block; cursor: pointer; }
.qb-method > span { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.qb-method input:checked + span { border-color: var(--indigo-800); background: var(--cream); box-shadow: 0 0 0 3px rgba(90, 82, 181, .15); }
.qb-method .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sand); color: var(--indigo-800); font-size: 1.2rem; }
.qb-method .ttl { font-weight: 700; color: var(--indigo-900); }
.qb-method .sub { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); }
.qb-method .px { text-align: right; line-height: 1.2; }
.qb-method .px s { display: block; font-size: .8rem; color: var(--muted); }
.qb-method .px b { font-size: 1.15rem; color: var(--indigo-900); }
.qb-method .badge { grid-column: 2 / 4; justify-self: start; display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e1f4e8; color: #12522c; font-size: .8rem; font-weight: 700; }
.qb-method .badge:empty { display: none; }
.qb-fine { margin: 6px 0 12px; font-size: .88rem; color: var(--muted); }
.qb-consent { margin: 4px 4px 14px; text-align: center; font-size: .86rem; color: var(--muted); }
.qb-consent a { color: var(--indigo-700); text-decoration: underline; }

/* sticky pay bar */
.qb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(21, 18, 49, .5); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.qb-bar .in { max-width: 660px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.qb-bar .tot { flex: none; line-height: 1.15; }
.qb-bar .tot small { display: block; color: var(--muted); font-size: .8rem; }
.qb-bar .tot b { font-size: 1.45rem; color: var(--indigo-900); }
.qb-bar .btn { flex: 1; justify-content: center; white-space: nowrap; }
.qb-bar .btn[disabled] { opacity: .65; cursor: progress; }
#qbAlert { margin: 0 0 14px; }

/* returning-client banner */
.qb-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px; border: 1px solid #8fd0a6; border-radius: var(--radius-sm); background: #e9f7ee; color: #12522c; }
.qb-banner b { display: block; }
.qb-banner .btn { flex: none; }

/* after payment */
#qbAfter .book-card.success { margin-bottom: 16px; }
.qb-details h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 4px; color: var(--indigo-900); }
.qb-details .lead { margin: 0 0 18px; color: var(--muted); }
.qb-details .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 16px; }
.qb-ok { padding: 12px 16px; border-radius: var(--radius-sm); background: #e9f7ee; border: 1px solid #8fd0a6; color: #12522c; font-weight: 600; margin: 0 0 14px; }
.qb-partner { margin: 0 0 16px; padding: 14px 16px 2px; border: 1px dashed var(--gold-600); border-radius: var(--radius-sm); background: var(--cream); }
.qb-partner h4 { margin: 0 0 10px; font-size: 1rem; }

/* exit sheet */
.qb-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(13, 11, 34, .55); }
.qb-sheet[hidden] { display: none; }
.qb-sheet .box { width: 100%; max-width: 520px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); animation: qbUp .2s ease-out; }
@keyframes qbUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .qb-sheet { align-items: center; } .qb-sheet .box { border-radius: 22px; } }
.qb-sheet h2 { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.7rem; color: var(--indigo-900); }
.qb-sheet .note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff4e0; color: #7a4a05; font-size: .95rem; }
.qb-sheet .btn { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.qb-sheet .help { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.qb-sheet .help a { color: var(--indigo-700); text-decoration: underline; }
