/* =============================================================
   AstroAI.ge — css/birth-time-estimation.css
   Birth Time estimation wizard. Loaded only by birth-time-estimation.html,
   after css/style.css (which provides the site header, footer and base).

   Part 1  Wizard structure: tokens, grid, stepper, screens, fields,
           choice pills, events, review, price box.
   Part 2  Site visual theme for the wizard (colours, typography,
           spacing) and this page's header/footer variant
           (non-sticky header, 40px footer).

   Breakpoints: the wizard keeps its own component breakpoints in
   addition to the site set (479 / 767 / 1024):
     980px  choice-pill grids (four/six options) change column count
     900px  progress row + completion, review grid, appearance
            fields and history row labels reflow
     860px  stepper dots, price box, action buttons, basic-data fields
     640px  choice-pill grids, review section heads, e-mail fields
     520px  smallest phones: page padding, hero text, stepper dots
     768-860px  basic-data date fields (day/month/year) on small tablets
   Each was checked: it controls a layout transition of the wizard
   that does not coincide with a site breakpoint, so it is kept.

   The second (max-width: 767px) block cannot be merged into the first:
   it contains rules that must win over the (max-width: 479px) block
   between them (verified with a cascade model).
   ============================================================= */

/* ── 1. TOKENS ─────────────────────────────────────────────── */

:root {
    --bt-line: #cbc9c4; /* hairline dividers and borders inside the wizard */
    --bt-gold: #e6c76a; /* accent gold (labels, subtitles) */
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #545f6f;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── 3. LAYOUT UTILITIES ────────────────────────────────────── */

.wrap {
    margin: 0 auto;
    padding: 0 32px;
}

.col-12 {
    grid-column: span 12;
}
.col-6 {
    grid-column: span 6;
}
.col-5 {
    grid-column: span 5;
}
.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

/* ── 7. HERO ────────────────────────────────────────────────── */

.bt-hero h1 {
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.18;
    color: #00598a;
    font-weight: 600;
    margin-bottom: 8px;
}

.bt-hero p {
    font-size: 14px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    color: #545f6f;
    line-height: 1.6;
}

/* ── 8. WIZARD SHELL ────────────────────────────────────────── */

.bt-wizard {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 30px 34px 34px;
    background: #f4f2ef;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    color: #545f6f;
    padding-top: 22px;
    padding-bottom: 22px;
}

/* bt-progress-top is hidden (superseded by bt-progress-row layout) */

.bt-progress-row {
    grid-template-columns: minmax(0, 1fr) auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/*
 * Stepper: 5 dots in a row.
 * The connecting line is positioned so its ends align with the
 * centres of dot 1 and dot 5: offset = (col-width/2) = 10% + half dot width.
 * Dot width at desktop = 42px, so half = 21px → calc(10% + 21px).
 */
.bt-stepper {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 900px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.bt-step-dot {
    font-size: 18px;
    font-weight: 600;
    display: grid;
    place-items: center;
    justify-self: center;
    cursor: pointer;
    transition: 0.25s;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #c9c5bf;
    border-radius: 50%;
    background: #ffffff;
    color: #647183;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.bt-step-dot.active {
    transform: scale(1.16);
    background: #eca44b;
    border-color: #eca44b;
    color: #ffffff;
}

/* ── 11. COMPLETION INDICATOR ───────────────────────────────── */

.bt-completion {
    min-width: 190px;
    font-size: 15px;
    line-height: 1.35;
    flex: 0 0 auto;
    color: #647183;
    text-align: right;
}

.bt-completion strong {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 600;
    display: block;
    margin-top: 3px;
    color: #eca44b;
}

/* ── 12. SCREEN TRANSITIONS ─────────────────────────────────── */

.bt-screen.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.bt-screen-head p {
    font-weight: 300;
    font-size: 17px;
    color: #647183;
    line-height: 1.4;
}

/* ── 14. FORM GRID & FIELDS ─────────────────────────────────── */

.bt-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 12px;
    column-gap: 16px;
}

.field label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.field input,
.field textarea {
    width: 100%;
    font-size: 16px;
    padding: 14px 16px;
    transition:
        border-color 0.25s,
        background 0.25s;
    resize: vertical;
}

/* ── 15. CHOICE GRID (radio / checkbox pill selectors) ──────── */
.choice-grid.two {
    grid-template-columns: repeat(2, 1fr);
}
.choice-grid.four {
    grid-template-columns: repeat(4, 1fr);
}
.choice-grid.six {
    grid-template-columns: repeat(6, 1fr);
}

.choice span {
    transition:
        border-color 0.25s,
        background 0.25s,
        color 0.25s,
        transform 0.25s;
}
/*
 * Screens "გარეგნობა და ტიპაჟი" and "ბავშვობა და ცხოვრების ისტორია"
 * share the same two-column label/choices layout with bullet-style
 * selectors instead of pill cards.
 */

.bt-screen[data-screen="appearance"] .field,
.bt-screen[data-screen="history"] .field {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    border-bottom: 1px solid var(--bt-line);
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.bt-screen[data-screen="appearance"] .field:first-child,
.bt-screen[data-screen="history"] .field:first-of-type {
    border-top: 1px solid var(--bt-line);
}

.bt-screen[data-screen="appearance"] .field label,
.bt-screen[data-screen="history"] .field label {
    font-size: 16px;
    line-height: 1.45;
}

.bt-screen[data-screen="appearance"] .field > input {
    max-width: 320px;
}

/* Reset pill styling → plain text with bullet prefix */
.bt-screen[data-screen="appearance"] .choice span,
.bt-screen[data-screen="history"] .choice span {
    text-align: left;
}

.bt-screen[data-screen="appearance"] .choice span::before,
.bt-screen[data-screen="history"] .choice span::before {
    color: var(--bt-line);
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
    transform: translateY(2px);
}

.bt-screen[data-screen="appearance"]
    .choice
    input:checked
    + span::before,
.bt-screen[data-screen="history"]
    .choice
    input:checked
    + span::before {
    color: var(--bt-gold);
}

/* ── 17. INLINE ROW LAYOUTS (education / career / relationship) */

.bt-inline-row {
    border-bottom: 1px solid var(--bt-line);
}

/* Fields inside inline rows reset the bullet-screen two-column layout */

.bt-row-label {
    font-size: 16px;
    line-height: 1.45;
    padding-bottom: 13px;
}

/* ── 18. EVENTS (step 4) ────────────────────────────────────── */

.bt-event-card {
    border-radius: 18px;
    margin-bottom: 16px;
    padding: 16px;
}

.bt-add-event {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* ── 19. BUTTONS ────────────────────────────────────────────── */

.btn {
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 100px;
    transition:
        transform 0.25s,
        box-shadow 0.3s,
        background 0.3s;
}
.btn-gold:hover {
    transform: translateY(-3px);
}
.btn-ghost:hover {
    transform: translateY(-3px);
}

.bt-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--bt-line);
    margin-top: 18px;
    padding-top: 16px;
}

/* ── 20. REVIEW SCREEN (step 5) ─────────────────────────────── */

.bt-review {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    gap: 12px;
}

.bt-review-section {
    border-radius: 14px;
    padding: 16px;
}

.bt-review-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bt-line);
    margin-bottom: 10px;
}

.bt-review-section-head h3 {
    font-size: 18px;
    font-weight: 600;
}

.bt-review-section-head button {
    border: 1px solid var(--bt-line);
    background: rgba(203, 201, 196, 0.08);
    color: var(--bt-gold);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
}
.bt-review-section-head button:hover {
    background: rgba(203, 201, 196, 0.14);
}

.bt-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bt-review-row {
    border: 1px solid rgba(203, 201, 196, 0.12);
    border-radius: 10px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.018);
    border-color: #e5e6e7;
}

.bt-review-row span {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.bt-review-row strong {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #0b2b4a;
    line-height: 1.35;
    word-break: break-word;
}

/* Event review list */
.bt-event-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-event-review {
    border: 1px solid rgba(203, 201, 196, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.018);
}

.bt-event-review strong {
    display: block;
    font-size: 15px;
    /* color: #fff; */
    margin-bottom: 2px;
}

.bt-event-review span {
    display: block;
    font-size: 13px;
    color: #545f6f;
    margin-bottom: 8px;
}

/* ── 21. PRICE BOX & PAYMENT ────────────────────────────────── */

.bt-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    margin-top: 14px;
    padding: 16px;
}

.bt-price-box strong {
    font-size: 20px;
}

.bt-price-box p {
    font-size: 14px;
    margin-top: 6px;
}

.bt-price {
    white-space: nowrap;
    line-height: 1;
}

/* ── 22. EMAIL FIELD (review step) ──────────────────────────── */

.bt-email-field {
    grid-template-columns: 260px 1fr;
    gap: 10px 16px;
    align-items: center;
}

.bt-email-field label {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
}

.bt-email-field input {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* ── Tablet wide (≤ 980px) ───────────────────────────────────── */
@media (max-width: 980px) {
    .choice-grid.four,
    .choice-grid.five,
    .choice-grid.six {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tablet narrow (≤ 900px) ────────────────────────────────── */
@media (max-width: 900px) {
    .bt-progress-row {
        grid-template-columns: 1fr;
    }

    .bt-completion {
        min-width: 0;
    }

    .bt-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Bullet-screen fields: drop to single column */
    .bt-screen[data-screen="appearance"] .field,
    .bt-screen[data-screen="history"] .field {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Inline rows: stack vertically */

    .bt-row-label {
        padding-bottom: 0;
    }
}

/* ── Tablet (≤ 860px) ───────────────────────────────────────── */
@media (max-width: 860px) {
    .bt-step-dot {
        font-size: 16px;
    }

    .bt-price-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .bt-actions {
        flex-direction: column;
    }

    .bt-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .bt-screen:first-of-type .field.col-6 {
        display: grid;
        grid-template-columns: 180px 1fr;
        align-items: center;
        gap: 30px;
        grid-column: span 12;
    }

    .bt-screen[data-screen="appearance"] .field:has(#bt-height) {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .bt-screen[data-screen="appearance"] .field:has(#bt-height) label {
        font-size: 15px;
        line-height: 1.35;
    }

    .bt-screen[data-screen="appearance"] .field:has(#bt-height) input {
        max-width: none;
    }

    .bt-education-row .field label {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .bt-education-row .field input {
        padding-left: 12px;
        padding-right: 12px;
        min-width: 0;
    }
}

/* ── Mobile (≤ 640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
    .choice-grid.two,
    .choice-grid.four,
    .choice-grid.five,
    .choice-grid.six {
        grid-template-columns: 1fr;
    }

    .bt-review-grid {
        grid-template-columns: 1fr;
    }

    .bt-review-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .bt-review-section-head button {
        width: 100%;
    }

    /* Bullet-screen: allow labels to wrap */

    .bt-email-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .bt-email-field label,
    .bt-email-field p,
    .bt-email-field input {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ── Small mobile (≤ 520px) ─────────────────────────────────── */
@media (max-width: 520px) {
    .wrap {
        padding: 0 20px;
    }

    .bt-hero p {
        text-align: left;
        font-size: 16px;
    }

    .bt-step-dot {
        font-size: 14px;
    }
}

.bt-screen:not(.active) {
    display: none;
}

/* ===== Mobile: Event year + month on one row ===== */

.bt-pay {
    flex-direction: column;
    gap: 4px;
    line-height: 1.25;
}

/* Final Birth Time event dropdown */
.bt-event-select {
    width: 100%;
    padding: 0 46px 0 16px;
    font: inherit;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.bt-event-select option {
    color: #f1f1f3;
    background: #171820;
}

/* ===== Final fix: inline rows inside history screen ===== */
.bt-screen[data-screen="history"] .bt-inline-row {
    display: grid;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: center;
}

.bt-screen[data-screen="history"] .bt-education-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bt-screen[data-screen="history"] .bt-career-row {
    grid-template-columns: 260px minmax(0, 1fr) 160px;
}

.bt-screen[data-screen="history"] .bt-relationship-row {
    grid-template-columns: minmax(260px, 1.5fr) 120px 120px 120px;
}

.bt-screen[data-screen="history"] .bt-inline-row .field {
    grid-column: auto;
    display: block;
    grid-template-columns: none;
    padding: 0;
    border: 0;
    max-width: none;
}

.bt-screen[data-screen="history"]
    .bt-inline-row
    .field
    input {
    max-width: none;
}

/* Education labels: 15px space before input */
.bt-screen[data-screen="history"]
    .bt-education-row
    .field
    label {
    margin-bottom: 15px;
}

/* =============================================================
   PART 2 — SITE VISUAL THEME
   ============================================================= */

html,
body {
    background: #ffffff;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================================================
   HEADER — FORCE SITE V2 APPEARANCE
   ========================================================= */

.site-header {
    position: relative;
    min-height: 84px;
    border: 0;
}

.site-header .header-container {
    height: 84px;
}

.site-header .header-logo-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header .header-logo {
    display: block;
    width: 150px;
    height: auto;
}

.site-header .main-nav {
    gap: 32px;
}

.site-header .social-links {
    gap: 12px;
    margin-left: 20px;
}

/* =========================================================
   PAGE
   ========================================================= */

.bt-page {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #ffffff;
    color: #545f6f;
    min-height: auto;
    overflow: visible;
    padding-bottom: 28px;
}

.bt-page .wrap {
    width: 100%;
    max-width: 1120px;
}

/* =========================================================
   HERO
   ========================================================= */

.bt-hero {
    padding: 44px 0 30px;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    margin-top: 15px;
}

/* =========================================================
   PROGRESS
   ========================================================= */

.bt-progress {
    border-bottom: 1px solid #dedbd6;
    padding-bottom: 16px;
}

.bt-step-dot.done {
    background: #0e2d50;
    border-color: #0e2d50;
    color: #ffffff;
}

/* =========================================================
   CONSENT
   ========================================================= */

#bt-consent-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid #dedbd6;
    border-radius: 12px;
    box-shadow: none;
}

#bt-consent-banner p {
    font-size: 16px;
    line-height: 1.7;
    color: #545f6f;
}

#bt-consent-banner .bt-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#bt-consent-banner #bt-consent-ok {
    padding: 12px 28px;
    font-size: 15px;
}

#bt-consent-banner span {
    font-size: 13px;
    color: #647183;
}

#bt-consent-banner a {
    color: #00598a;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.bt-page .btn {
    box-shadow: none;
}

.bt-page .btn-gold {
    background: #eca44b;
    color: #ffffff;
    border: 1px solid #eca44b;
}

.bt-page .btn-gold:hover {
    background: #d9943e;
    border-color: #d9943e;
}

.bt-page .btn-ghost {
    background: #ffffff;
    color: #00598a;
    border: 1px solid #ccd2d8;
}

.bt-page .btn-ghost:hover {
    background: #eef1f3;
}

/* =========================================================
   FORM TYPOGRAPHY
   ========================================================= */

.field label,
.bt-subtitle,
.bt-row-label {
    color: #394a5d;
}

/* =========================================================
   INPUTS
   ========================================================= */

.bt-page input,
.bt-page select,
.bt-page textarea {
    background: #ffffff;
    color: #394a5d;
    border: 1px solid #d5d8dc;
    border-radius: 9px;
    box-shadow: none;
    min-height: 40px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

.bt-page input::placeholder,
.bt-page textarea::placeholder {
    color: #9ba2aa;
}

.bt-page input:focus,
.bt-page select:focus,
.bt-page textarea:focus {
    outline: none;
    border-color: #00598a;
    box-shadow: 0 0 0 2px rgba(0, 89, 138, 0.08);
}

/* =========================================================
   EVENT / REVIEW / RESULT CARDS
   ========================================================= */

.bt-event-card,
.bt-review-section,
.bt-price-box,
.bt-result-box {
    background: #ffffff;
    border: 1px solid #dedbd6;
    box-shadow: none;
}

.bt-review-section h3,
.bt-result-box h2,
.bt-price-box strong {
    color: #00598a;
}

.bt-review-row,
.bt-event-review,
.bt-price-box p,
.bt-result-box p {
    color: #545f6f;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    height: 40px;
}

.site-footer .footer-container {
    height: 40px;
    padding: 0 34px;
}

.site-footer .footer-logo {
    display: block;
    width: 70px;
    height: auto;
}

.site-footer .footer-nav {
    justify-content: flex-end;
    gap: 30px;
}

.site-footer .footer-nav a {
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 11px;
}

/* EVENTS */
.bt-events {
    gap: 12px;
}

/* RESULT */
.bt-result-box {
    margin-top: 16px;
    padding: 18px;
}

/* Wizard divider lines */
.bt-progress,
.bt-actions {
    border-color: #cbc9c4;
}

/* =========================================================
   CHOICE / RADIO BUTTONS
   ========================================================= */

.bt-page .choice {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* Hide native radio / checkbox completely */
.bt-page .choice input[type="radio"],
.bt-page .choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* Choice button */
.bt-page .choice span {
    background: #ffffff;
    color: #545f6f;
    border: 1px solid #cbc9c4;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
}

/* Remove old decorative dots / markers */
.bt-page .choice span::before,
.bt-page .choice span::after {
    content: none;
    display: none;
}

/* Hover */
.bt-page .choice:hover span {
    background: #f8f7f5;
    border-color: #b48b67;
}

/* Selected */
.bt-page .choice input:checked + span {
    background: #0e2d50;
    border-color: #0e2d50;
    color: #ffffff;
}

/* Keyboard focus */
.bt-page .choice input:focus-visible + span {
    outline: 2px solid #eca44b;
    outline-offset: 2px;
}

/* Use the same typography as the main AstroAI site */
.bt-page,
.bt-page *,
.bt-page input,
.bt-page select,
.bt-page textarea,
.bt-page button {
    font-family: "Noto Sans Georgian", sans-serif;
}

/* choice rows: original horizontal layout + vertical centering */
.bt-page .bt-inline-row {
    gap: 18px;
}

.bt-page .choice-grid,
.bt-page .choices {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    display: flex;
    align-items: center;
}

/* vertically center label and choices inside each row */

.bt-page .bt-row-label {
    display: flex;
    align-items: center;
    align-self: stretch;
}

/* Remove label offset inside these horizontal rows */
.bt-screen[data-screen="appearance"] .field > label,
.bt-screen[data-screen="history"] .field > label {
    margin: 0;
    align-self: center;
}

/* Center the control area as well */
.bt-screen[data-screen="appearance"] .field > .choice-grid,
.bt-screen[data-screen="history"] .field > .choice-grid,
.bt-screen[data-screen="appearance"] .field > input,
.bt-screen[data-screen="history"] .field > input {
    align-self: center;
}

/* Row spacing — 10px above and 10px below */
.bt-screen[data-screen="appearance"] > .bt-grid,
.bt-screen[data-screen="history"] > .bt-grid {
    row-gap: 0;
}

/* Remove duplicate divider before action buttons */
.bt-screen[data-screen="appearance"] .field:last-child {
    border-bottom: 0;
}

/* Remove duplicate horizontal dividers inside this screen */
.bt-screen[data-screen="history"] .bt-subtitle {
    border-top: 0;
    border-bottom: 1px solid #cbc9c4;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Stepper connecting line — continue fully to step 5 */

.bt-stepper::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    height: 1px;
    background: #cbc9c4;
    transform: translateY(-50%);
    z-index: 0;
}

/* Remove duplicate divider above navigation on step 3 */
.bt-screen[data-screen="history"]
    .bt-relationship-row:last-of-type {
    border-bottom: 0;
}

/* screen heading: exactly 30px from dividers */
.bt-screen-head {
    padding: 30px 0;
    min-height: 0;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    text-align: center;
}

/* step heading must span the full wizard width */

.bt-screen-head h3,
.bt-screen-head p {
    display: block;
    width: 100%;
    max-width: none;
    text-align: center;
}

/* H3 section titles */
.bt-page h3.bt-subtitle {
    font-size: inherit;
    font-weight: 600;
}

/* Main wizard step titles — semantic level 2 via aria-level; h3 kept for pixel-identical rendering */
.bt-screen-head h3 {
    width: 100%;
    max-width: none;
    margin: 0 0 4px;
    text-align: center;
    font-weight: 600;
    line-height: 1.25;
    color: #00598a;
}

/* Submit button below fields */
.bt-screen[data-screen="review"] .bt-pay {
    display: flex;
    width: 100%;
    height: 50px;
    margin-top: 18px;
    clear: both;
    justify-content: center;
    border-radius: 14px;
}

/* Free price */
.bt-screen[data-screen="review"] .bt-price {
    color: #eca44b;
    font-weight: 600;
    font-size: 20px;
}

/* STEP 5 (REVIEW) — email + confirmation */
.bt-email-fields-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.bt-email-fields-row .bt-email-field label {
    margin: 0 0 6px;
}

/* STEP 5 (REVIEW) — email fields fill both columns */

.bt-email-fields-row .bt-email-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.bt-email-fields-row .bt-email-field input {
    display: block;
    max-width: none;
    min-width: 0;
}

/* STEP 5 (REVIEW) — PDF delivery note */
.bt-email-note {
    margin: 15px 0 0;
    text-align: center;
    width: 100%;
}

/* =========================================================
   BIRTH TIME ESTIMATION MOBILE SHELL FIX
   ========================================================= */

@media (max-width: 767px) {
    /* HEADER */

    .site-header {
        position: sticky;
        min-height: 72px;
        overflow: visible;
    }

    .site-header .header-container {
        height: 72px;
        overflow: visible;
    }

    .site-header .header-logo {
        width: 130px;
    }

    .site-header .main-nav,
    .site-header > .header-container > .header-test-button,
    .site-header > .header-container > .social-links {
        display: none;
    }

    /* FOOTER */

    .site-footer {
        height: auto;
    }

    .site-footer .footer-container {
        max-width: none;
        height: auto;
        padding: 24px 22px 28px;
    }

    .site-footer .footer-logo {
        width: 110px;
    }

    .site-footer .footer-nav {
        column-gap: 20px;
        row-gap: 11px;
        align-items: start;
        justify-content: initial;
    }
}

@media (max-width: 479px) {
    .site-header .header-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-header .header-logo {
        width: 120px;
    }

    .site-footer .footer-container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================================================
   BIRTH TIME MOBILE HERO FINAL
   ========================================================= */

.bt-mobile-title-break {
    display: inline;
}

@media (max-width: 767px) {
    .bt-mobile-title-break {
        display: block;
    }

    .bt-hero h1 {
        font-size: 22px;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
    }

    .bt-hero p {
        display: none;
    }

    /* =========================================================
   BIRTH TIME MOBILE HAMBURGER POSITION FIX
   ========================================================= */

    .site-header .mobile-menu-toggle {
        flex: 0 0 42px;
        flex-direction: column;
        gap: 5px;
        position: absolute;
        top: 15px;
        right: 18px;
        transform: none;
        min-width: 42px;
        display: block;
        border: 1px solid #8b622f;
    }

    /* OPEN STATE / X */
    .site-header .mobile-menu-toggle.active {
        gap: 0;
    }

    /* MOBILE MENU PANEL */
    .site-header .mobile-menu {
        width: 100%;
        height: auto;
        padding: 20px 18px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 5000;
    }

    /* NAVIGATION */
    .site-header .mobile-menu .mobile-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header .mobile-menu .mobile-nav a {
        display: block;
        width: 100%;
        padding: 13px 0;
        color: #c4cbd3;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        font-family: "Noto Sans Georgian", sans-serif;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
    }

    .site-header .mobile-menu .mobile-nav a.active {
        color: #eca44b;
    }

    /* ACTIONS */
    .site-header .mobile-menu .mobile-menu-actions {
        width: 100%;
        gap: 16px;
        margin-top: 20px;
    }

    .site-header .mobile-menu .header-test-button {
        display: inline-flex;
    }

    .site-header .mobile-menu .social-links {
        margin: 0;
        gap: 14px;
    }

    /* სრულად ვანულებთ ძველ hamburger წესებს */
    .site-header .mobile-menu-toggle span {
        position: absolute;
        left: 11px;
        display: block;
        width: 18px;
        background: #eca44b;
        border: 0;
        border-radius: 2px;
        opacity: 1;
        transform: none;
        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
        box-shadow: none;
    }

    .site-header .mobile-menu-toggle span:nth-child(1) {
        top: 13px;
    }

    .site-header .mobile-menu-toggle span:nth-child(2) {
        top: 19px;
    }

    .site-header .mobile-menu-toggle span:nth-child(3) {
        top: 25px;
    }

    /* OPEN — სუფთა X */
    .site-header .mobile-menu-toggle.active span:nth-child(1) {
        top: 19px;
        transform: rotate(45deg);
    }

    .site-header .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .site-header .mobile-menu-toggle.active span:nth-child(3) {
        top: 19px;
        transform: rotate(-45deg);
    }

    /* Social icons — იგივე ვიზუალური ზომა, როგორც სხვა გვერდებზე */

    .site-header .mobile-menu .social-icon {
        min-width: 24px;
    }

    /* =========================================================
   BIRTH TIME HAMBURGER ONLY THREE LINES
   ========================================================= */

    .site-header .mobile-menu-toggle::before,
    .site-header .mobile-menu-toggle::after,
    .site-header .mobile-menu-toggle span::before,
    .site-header .mobile-menu-toggle span::after {
        content: none;
        display: none;
    }

    /* 1–5 გავწელოთ ჰორიზონტალურად */
    .bt-progress-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .bt-stepper {
        width: 100%;
    }

    /* მონაცემების შევსება ქვედა ხაზზე */
    .bt-completion {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        line-height: 1.2;
    }

    .bt-completion strong {
        display: inline;
        margin: 0;
        line-height: 1.2;
    }

    /* ქვესათაური მოვხსნათ */
    .bt-screen[data-screen="basics"] .bt-screen-head p {
        display: none;
    }

    /* =========================================================
   BIRTH TIME MOBILE FIELDS STACKED
   ========================================================= */

    .bt-screen[data-screen="basics"] .field {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px !important;
        text-align: center;
    }

    .bt-screen[data-screen="basics"] .field label {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .bt-screen[data-screen="basics"] .field input {
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }

    /* =========================================================
   BIRTH TIME MOBILE DATE ROW
   ========================================================= */

    .bt-screen[data-screen="basics"] .bt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 14px;
    }

    /* სახელი */
    .bt-screen[data-screen="basics"] .field:has(#bt-name) {
        grid-column: 1 / -1;
    }

    /* ქალაქი */
    .bt-screen[data-screen="basics"] .field:has(#bt-city) {
        grid-column: 1 / -1;
    }

    /* თარიღი — 3 თანაბარი სვეტი */
    .bt-screen[data-screen="basics"] .field:has(#bt-day) {
        grid-column: 1;
    }

    .bt-screen[data-screen="basics"] .field:has(#bt-month) {
        grid-column: 2;
    }

    .bt-screen[data-screen="basics"] .field:has(#bt-year) {
        grid-column: 3;
    }

    /* დროის დიაპაზონი */
    .bt-screen[data-screen="basics"] .field:has(#bt-range) {
        grid-column: 1 / -1;
    }

    /* თარიღის ველები */
    .bt-screen[data-screen="basics"] .field:has(#bt-day),
    .bt-screen[data-screen="basics"] .field:has(#bt-month),
    .bt-screen[data-screen="basics"] .field:has(#bt-year) {
        min-width: 0;
    }

    .bt-screen[data-screen="basics"] .field:has(#bt-day) input,
    .bt-screen[data-screen="basics"] .field:has(#bt-month) input,
    .bt-screen[data-screen="basics"] .field:has(#bt-year) input {
        max-width: none;
        min-width: 0;
    }

    /* BIRTH TIME MOBILE SCREEN HEAD SPACING */
    .bt-screen-head {
        padding: 10px 0;
    }

    /* BIRTH TIME MOBILE HERO SPACING */
    .bt-hero {
        margin-bottom: 0;
        margin-top: 0;
    }

    /* კარიერა — სათაური ზემოთ, ველები ქვემოთ */

    .bt-career-row .bt-row-label {
        grid-column: 1 / -1;
        max-width: none;
        text-align: left;
    }

    /* ურთიერთობა / ქორწინება — სათაური ზემოთ, თარიღი ქვემოთ */

    .bt-relationship-row .bt-row-label {
        text-align: left;
    }

    /* BIRTH TIME MOBILE CAREER — CLEAN STACK */

    .bt-career-row {
        flex-direction: column;
    }

    .bt-career-row .field input {
        text-align: center;
    }

    /* MOBILE CAREER STACK */

    .bt-screen[data-screen="history"]
        .bt-inline-row.bt-career-row.col-12 {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bt-screen[data-screen="history"]
        .bt-career-row
        > .bt-row-label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    .bt-screen[data-screen="history"]
        .bt-career-row
        > .field {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 0 8px 0;
    }

    .bt-screen[data-screen="history"]
        .bt-career-row
        > .field
        > input {
        display: block;
        max-width: 100%;
        min-width: 0;
    }

    /* MOBILE RELATIONSHIP DATE ROW */

    .bt-screen[data-screen="history"]
        .bt-inline-row.bt-relationship-row.col-12 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bt-screen[data-screen="history"]
        .bt-relationship-row
        > .bt-row-label {
        grid-column: 1 / -1;
        display: block;
        width: 100%;
        margin-bottom: 2px;
    }

    .bt-screen[data-screen="history"]
        .bt-relationship-row
        > .field
        > input {
        display: block;
        min-width: 0;
        max-width: 100%;
        padding-left: 4px;
        padding-right: 4px;
        text-align: center;
    }

    /* MOBILE RELATIONSHIP DATE ROW — FIT 3 FIELDS */

    .bt-screen[data-screen="history"]
        .bt-relationship-row
        > .field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* BIRTH TIME MOBILE EVENT DATE ROW */

    .bt-event-card .bt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    /* მოვლენა — სრული ხაზი */
    .bt-event-card .field.col-5 {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }

    .bt-event-card .field.col-5 select {
        max-width: 100%;
    }

    /* წელი / თვე / რიცხვი — ერთ ხაზზე */
    .bt-event-card .field.col-2,
    .bt-event-card .field.col-3 {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bt-event-card .field.col-2 input,
    .bt-event-card .field.col-3 input {
        min-width: 0;
        max-width: 100%;
        text-align: center;
    }

    .bt-event-card .field label {
        width: 100%;
        text-align: center;
    }

    .bt-event-card .field.col-5 label {
        text-align: left;
    }

    /* BIRTH TIME MOBILE EMAIL FIELDS */

    .bt-email-fields-row {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .bt-email-fields-row .bt-email-field {
        display: block;
        max-width: 100%;
    }

    .bt-email-fields-row .bt-email-field label {
        width: 100%;
        margin-bottom: 7px;
    }

    .bt-email-fields-row .bt-email-field input {
        max-width: 100%;
    }
}

/* BIRTH TIME TABLET HEADER */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-header {
        position: sticky;
        min-height: 72px;
        overflow: visible;
    }

    .site-header .header-container {
        height: 72px;
        overflow: visible;
    }

    .site-header .header-logo {
        width: 140px;
    }

    /* Desktop header content OFF */
    .site-header .main-nav,
    .site-header > .header-container > .header-test-button,
    .site-header > .header-container > .social-links,
    .site-header .header-actions {
        display: none;
    }

    /* Hamburger */
    .site-header .mobile-menu-toggle {
        position: absolute;
        top: 15px;
        right: 28px;
        left: auto;
        bottom: auto;
        border: 1px solid #5f4b32;
        border-radius: 12px;
        transform: none;
        z-index: 5100;
    }

    .site-header .mobile-menu-toggle span {
        inset: auto;
        box-shadow: none;
    }

    .site-header .mobile-menu-toggle span::before,
    .site-header .mobile-menu-toggle span::after {
        border: 0;
    }

    /* Tablet menu panel */
    .site-header .mobile-menu {
        width: 100%;
        height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 5000;
    }

    .site-header .mobile-menu .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .site-header .mobile-menu .mobile-nav a {
        display: block;
        width: 100%;
        padding: 13px 0;
        color: #c4cbd3;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        font-family: "Noto Sans Georgian", sans-serif;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
    }

    .site-header .mobile-menu .mobile-nav a.active {
        color: #eca44b;
    }

    .site-header .mobile-menu .mobile-menu-actions {
        width: 100%;
        margin-top: 20px;
        gap: 16px;
    }

    .site-header .mobile-menu .header-test-button {
        display: inline-flex;
    }

    .site-header .mobile-menu .social-links {
        gap: 14px;
        margin: 0;
    }

    .site-header .mobile-menu .social-icon {
        width: 24px;
        height: 24px;
    }

    /* თუ ძველი HTML-ში დამატებითი span-ებია — ვმალავთ */
    .site-header .mobile-menu-toggle span:not(:first-child) {
        display: none;
    }

    .site-header .mobile-menu-toggle span:first-child::before,
    .site-header .mobile-menu-toggle span:first-child::after {
        transform: none;
    }

    /* გახსნილი მდგომარეობა — სუფთა X */

    .site-header .mobile-menu-toggle.active span:first-child::before {
        transform: rotate(45deg);
    }

    .site-header .mobile-menu-toggle.active span:first-child::after {
        transform: rotate(-45deg);
    }

    .site-footer {
        height: auto;
        flex: 0 0 auto;
        margin-top: auto;
    }

    .site-footer .footer-container {
        max-width: none;
        height: auto;

        padding: 32px 40px 20px;
    }

    .site-footer .footer-logo {
        width: 120px;
        margin: 0 auto;
    }

    .site-footer .footer-nav {
        gap: 10px 35px;
        justify-content: initial;
    }

    .site-footer .footer-nav a {
        white-space: normal;
        line-height: 1.4;
    }

    .bt-screen[data-screen="history"]
        .bt-relationship-row {
        grid-template-columns:
            280px
            repeat(3, minmax(0, 1fr));
        column-gap: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bt-screen[data-screen="history"]
        .bt-relationship-row
        > .field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bt-screen[data-screen="history"]
        .bt-relationship-row
        > .field
        input {
        min-width: 0;
        max-width: 100%;
    }

    .bt-event-card .bt-grid {
        grid-template-columns:
            minmax(0, 2.4fr)
            minmax(90px, 0.8fr)
            minmax(90px, 0.8fr)
            minmax(90px, 0.8fr);
        gap: 16px;
        width: 100%;
        align-items: end;
    }

    .bt-event-card .field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-column: auto;
    }

    .bt-event-card .field select,
    .bt-event-card .field input {
        min-width: 0;
        max-width: 100%;
    }

    .bt-event-card .field label {
        width: 100%;
        margin-bottom: 6px;
        text-align: left;
    }

    html,
    body {
        min-height: 100vh;
    }

    body {
        display: flex;
        flex-direction: column;
    }

    .bt-page {
        flex: 1 0 auto;
    }
}

/* TABLET DATE ROW ALIGN WITH TEXT INPUTS */
@media (min-width: 768px) and (max-width: 860px) {
    .bt-screen:first-of-type .field:has(#bt-day),
    .bt-screen:first-of-type .field:has(#bt-month),
    .bt-screen:first-of-type .field:has(#bt-year) {
        transform: translateX(210px);
    }
}

/* BIRTH TIME DESKTOP */
@media (min-width: 1025px) {
    .site-header .free-test-btn {
        margin-left: 30px;
        flex: 0 0 auto;
    }

    main.bt-page {
        min-height: calc(100vh - 84px - 40px);
    }
}

/* Legal consent checkboxes on the final step (visible native checkboxes). */
.bt-page .bt-legal {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}
.bt-page .bt-legal[hidden] { display: none; }
.bt-page .bt-legal input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--bt-gold, #e6c76a);
}
.bt-page .bt-legal a { color: var(--bt-gold, #e6c76a); text-decoration: underline; }
