@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Spectral:wght@600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --brand: #ba1821;
    --brand-dark: #7e1017;
    --brand-soft: #fff2f0;
    --ink: #1f2329;
    --muted: #667085;
    --surface: rgba(255, 255, 255, 0.96);
    --border: rgba(186, 24, 33, 0.14);
    --shadow: 0 28px 60px rgba(77, 18, 24, 0.12);
    --warning: #9a5d05;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.booking-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    overscroll-behavior-y: none;
    background:
        radial-gradient(circle at top left, rgba(186, 24, 33, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 186, 160, 0.18), transparent 30%),
        linear-gradient(180deg, #fff7f4 0%, #fffdfb 54%, #fff3ec 100%);
}

body.booking-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 24, 33, 0.38) rgba(186, 24, 33, 0.08);
}

body.booking-page::-webkit-scrollbar {
    width: 12px;
}

body.booking-page::-webkit-scrollbar-track {
    background: rgba(186, 24, 33, 0.08);
    border-radius: 999px;
}

body.booking-page::-webkit-scrollbar-thumb {
    background: rgba(186, 24, 33, 0.38);
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
}

.booking-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.booking-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 54px);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(186, 24, 33, 0.12);
    border-radius: 30px;
    background: var(--brand-dark);
    box-shadow: var(--shadow);
    color: #fff;
    text-align: center;
    scroll-margin-top: 24px;
}

.booking-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(126, 16, 23, 0.95), rgba(186, 24, 33, 0.74));
}

.hero-logo-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px auto 0;
    gap: 18px;
    text-align: center;
    align-self: center;
}

.hero-logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    height: 100%;
    max-width: 100%;
    text-align: center;
}

.hero-text-header {
  /* display: flex;*/
   /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(100%, 520px);
    min-height: 0;
    padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 42px);
    margin: 0 auto;
    align-self: center;
    border-radius: 32px;
    border: 1px solid rgba(186, 24, 33, 0.14);
    background: #fff;
    box-shadow: 0 24px 48px rgba(77, 18, 24, 0.14);
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: clamp(180px, 24vw, 280px);
    height: auto;
    object-fit: contain;
}

.hero-kicker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.hero-copy h1 {
    margin: 0;
    width: 100%;
    font-family: "Spectral", serif;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.05;
    color: #fff;
}

.hero-copy p {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(1.08rem, 2vw, 1.22rem);
    line-height: 1.8;
    color: #fff;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 20px;
    border: 1px solid rgba(186, 24, 33, 0.14);
    background: rgba(255, 245, 243, 0.95);
    color: var(--brand-dark);
    box-shadow: 0 18px 42px rgba(77, 18, 24, 0.08);
    scroll-margin-top: 24px;
}

.status-banner i {
    font-size: 1.15rem;
}

.booking-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.booking-panel {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    scroll-margin-top: 24px;
}

.booking-panel-full {
    grid-column: auto;
}

.booking-flow-panel {
    position: static;
    align-self: start;
    max-height: none;
    overflow: visible;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(186, 24, 33, 0.12), rgba(186, 24, 33, 0.18));
    color: var(--brand);
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.section-head h2 {
    margin: 0 0 4px;
    font-family: "Spectral", serif;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    color: var(--ink);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.form-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
}

.required-mark {
    color: var(--brand);
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 56px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(102, 112, 133, 0.2);
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

textarea.form-control {
    min-height: 138px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(186, 24, 33, 0.42);
    box-shadow: 0 0 0 0.3rem rgba(186, 24, 33, 0.13);
}

.field-help {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.birthdate-mobile-picker {
    display: none;
    margin-top: 10px;
}

.birthdate-mobile-picker.is-visible {
    display: block;
}

.birthdate-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.birthdate-mobile-grid .form-select {
    min-height: 56px;
}

.birthdate-native-hidden {
    display: none;
}

.booking-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-step {
    padding: 18px;
    border: 1px solid rgba(186, 24, 33, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 250, 248, 0.95), rgba(255, 255, 255, 0.98));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    scroll-margin-top: 18px;
}

.booking-step.is-active {
    border-color: rgba(186, 24, 33, 0.28);
    box-shadow: 0 18px 32px rgba(186, 24, 33, 0.08);
    transform: translateY(-1px);
}

.booking-step.is-done {
    border-color: rgba(35, 111, 76, 0.24);
    background: linear-gradient(180deg, rgba(245, 255, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.step-badge {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.step-badge span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.step-badge strong {
    font-size: 1rem;
    color: var(--ink);
}

.dynamic-slot {
    min-height: 118px;
    scroll-margin-top: 18px;
}

.step-placeholder,
.step-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(186, 24, 33, 0.18);
    background: rgba(255, 255, 255, 0.86);
}

.step-placeholder i,
.step-message i {
    margin-top: 2px;
    font-size: 1.2rem;
    color: var(--brand);
}

.step-placeholder strong,
.step-message strong {
    display: block;
    margin-bottom: 4px;
}

.step-placeholder p,
.step-message p {
    color: var(--muted);
    line-height: 1.55;
}

.step-message.is-warning {
    border-color: rgba(154, 93, 5, 0.18);
    background: rgba(255, 249, 236, 0.98);
}

.step-message.is-warning i {
    color: var(--warning);
}

.step-message.is-error {
    border-color: rgba(186, 24, 33, 0.22);
    background: rgba(255, 242, 242, 0.98);
}

.step-message.is-loading {
    border-style: solid;
    background: rgba(255, 247, 245, 0.98);
}

.consent-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(186, 24, 33, 0.1);
    background: linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.consent-check,
.optional-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    margin-bottom: 14px;
}

.optional-check {
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.28rem;
    margin-left: 0 !important;
    flex-shrink: 0;
    width: 1.12rem;
    height: 1.12rem;
    border-color: rgba(102, 112, 133, 0.38);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-check-label {
    line-height: 1.65;
    color: var(--ink);
}

.inline-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.required-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.required-hint i {
    color: var(--brand);
}

.btn-submit {
    min-width: 220px;
    padding: 0.96rem 1.6rem;
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 20px 34px rgba(186, 24, 33, 0.18);
}

.btn-submit:disabled {
    box-shadow: none;
    opacity: 0.72;
}

.privacy-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

.privacy-modal .modal-header {
    border-bottom-color: rgba(186, 24, 33, 0.12);
}

.privacy-modal .modal-body {
    color: var(--ink);
    line-height: 1.7;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .booking-shell {
        width: min(100% - 24px, 1000px);
        padding-top: 20px;
    }

    .booking-hero {
        border-radius: 24px;
    }

    .hero-logo-row {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .booking-shell {
        width: calc(100% - 16px);
        padding-top: 16px;
    }

    .booking-panel,
    .booking-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .brand-logo-link {
        width: fit-content;
        max-width: min(100%, 320px);
        padding: 18px 20px;
        border-radius: 26px;
    }

    .brand-logo {
        max-height: 170px;
    }

    .birthdate-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .birthdate-mobile-grid .birthdate-year {
        grid-column: 1 / -1;
    }

    .section-head {
        flex-direction: column;
    }

    .section-count {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .booking-step {
        padding: 16px;
    }

    .step-badge {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .submit-row {
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .booking-step {
        transition: none;
    }
}
