/* ── PAGE LAYOUT ── */
.book-page {
    padding-top: 160px;
    padding-bottom: 140px;
}

.book-page .container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── LEFT SIDEBAR ── */
.book-sidebar {
    position: sticky;
    top: 120px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.book-sidebar h1 {
    font-size: 52px;
    line-height: 62px;
    font-weight: 500;
    margin-bottom: 16px;
}

.book-sidebar .lead {
    font-size: 18px;
    line-height: 26px;
    color: rgba(30, 30, 30, 0.65);
    margin-bottom: 44px;
}

.book-sidebar .meta-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 40px;
    border-bottom: 1px dashed rgba(30, 30, 30, 0.2);
    margin-bottom: 40px;
}

.book-sidebar .meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.book-sidebar .meta-row .dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: #FFD600;
}

.book-sidebar .meta-row span {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    color: rgba(30, 30, 30, 0.7);
}

.book-sidebar .guarantee {
    background-color: #fff;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 14px;
    padding: 24px 22px;
}

.book-sidebar .guarantee .g-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, 0.4);
    margin-bottom: 8px;
}

.book-sidebar .guarantee p {
    font-size: 15px;
    line-height: 22px;
    color: rgba(30, 30, 30, 0.7);
}

/* ── BOOKING WIDGET ── */
.booking-widget {
    background-color: #fff;
    border: 1px solid rgba(30, 30, 30, 0.12);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.55s;
}

/* Steps progress bar */
.step-bar {
    display: flex;
    border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.step-bar .step {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(30, 30, 30, 0.08);
    transition: background-color ease 300ms;
}

.step-bar .step:last-child {
    border-right: none;
}

.step-bar .step .num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(30, 30, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    color: rgba(30, 30, 30, 0.4);
    transition: all ease 300ms;
    flex-shrink: 0;
}

.step-bar .step .step-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, 0.35);
    transition: color ease 300ms;
}

.step-bar .step.active {
    background-color: #FAFAFA;
}

.step-bar .step.active .num {
    background-color: #FFD600;
    border-color: #FFD600;
    color: #1E1E1E;
}

.step-bar .step.active .step-label {
    color: #1E1E1E;
}

.step-bar .step.done .num {
    background-color: #1E1E1E;
    border-color: #1E1E1E;
    color: #fff;
}

.step-bar .step.done .step-label {
    color: rgba(30, 30, 30, 0.6);
}

/* Panels */
.booking-panel {
    display: none;
    padding: 44px 48px;
}

.booking-panel.active {
    display: block;
}

.panel-title {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, 0.4);
    margin-bottom: 8px;
}

.panel-heading {
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
    margin-bottom: 36px;
}

/* ── PANEL 1: CALENDAR ── */
.calendar-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-header .month-label {
    font-size: 18px;
    font-weight: 500;
}

.cal-nav {
    display: flex;
    gap: 6px;
}

.cal-nav button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(30, 30, 30, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav button:hover {
    border-color: #1E1E1E;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-grid .day-name {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    color: rgba(30, 30, 30, 0.35);
    text-align: center;
    padding: 6px 0 10px;
}

.cal-grid .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all ease 200ms;
    border: 1px solid transparent;
    font-family: "Roboto Mono", monospace;
}

.cal-grid .day:hover:not(.empty):not(.past) {
    border-color: #1E1E1E;
}

.cal-grid .day.past {
    color: rgba(30, 30, 30, 0.2);
    cursor: default;
}

.cal-grid .day.empty {
    cursor: default;
}

.cal-grid .day.today {
    background-color: rgba(255, 214, 0, 0.25);
}

.cal-grid .day.selected {
    background-color: #1E1E1E;
    color: #fff;
    border-color: #1E1E1E;
}

/* Time slots */
.time-panel h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.time-panel .time-date-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, 0.4);
    margin-bottom: 20px;
}

.time-panel.hidden {
    display: none;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.time-slots::-webkit-scrollbar { width: 4px; }
.time-slots::-webkit-scrollbar-track { background: transparent; }
.time-slots::-webkit-scrollbar-thumb {
    background: rgba(30, 30, 30, 0.15);
    border-radius: 4px;
}

.time-slot {
    padding: 14px 18px;
    border: 1px solid rgba(30, 30, 30, 0.12);
    border-radius: 10px;
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all ease 200ms;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-slot:hover {
    border-color: #1E1E1E;
    background-color: #FAFAFA;
}

.time-slot.selected {
    background-color: #1E1E1E;
    border-color: #1E1E1E;
    color: #fff;
}

.time-slot .tz {
    font-size: 11px;
    color: rgba(30, 30, 30, 0.4);
}

.time-slot.selected .tz {
    color: rgba(255, 255, 255, 0.5);
}

.no-date-msg {
    font-size: 16px;
    line-height: 24px;
    color: rgba(30, 30, 30, 0.35);
    padding-top: 20px;
    font-style: italic;
    font-family: "DM Serif Text", serif;
}

.btn-continue {
    margin-top: 28px;
    width: 100%;
    background-color: #1E1E1E;
    color: #fff;
    border: none;
    padding: 17px 30px;
    border-radius: 30px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity ease 250ms;
}

.btn-continue.ready {
    opacity: 1;
    pointer-events: auto;
}

.btn-continue.ready::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FFD600;
    z-index: -1;
    transition: height 0.3s ease;
}

.btn-continue.ready:hover::before { height: 100%; }
.btn-continue.ready:hover { color: #000; }

.btn-continue img {
    height: 15px;
    padding-top: 1px;
}

.btn-continue.ready:hover img { filter: invert(100); }

/* ── PANEL 2: DETAILS ── */
.selected-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background-color: #FAFAFA;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 30px;
    margin-bottom: 32px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30, 30, 30, 0.7);
}

.selected-summary .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFD600;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, 0.45);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(30, 30, 30, 0.15);
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: #1E1E1E;
    background-color: #FAFAFA;
    outline: none;
    transition: border-color ease 250ms, background-color ease 250ms;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1E1E1E;
    background-color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(30, 30, 30, 0.28);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.btn-back {
    padding: 16px 24px;
    border-radius: 30px;
    border: 1px solid rgba(30, 30, 30, 0.2);
    background: transparent;
    font-size: 15px;
    color: rgba(30, 30, 30, 0.6);
    white-space: nowrap;
}

.btn-back:hover {
    border-color: #1E1E1E;
    color: #1E1E1E;
}

.btn-primary {
    flex: 1;
    background-color: #1E1E1E;
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FFD600;
    z-index: -1;
    transition: height 0.3s ease;
}

.btn-primary:hover::before { height: 100%; }
.btn-primary:hover { color: #000; }

.btn-primary img {
    height: 15px;
    padding-top: 1px;
}

.btn-primary:hover img { filter: invert(100); }

/* ── PANEL 3: SUCCESS ── */
.success-panel {
    text-align: center;
    padding: 70px 48px;
}

.success-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFD600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-panel h2 {
    font-size: 42px;
    line-height: 52px;
    font-weight: 500;
    margin-bottom: 14px;
}

.success-panel .sub {
    font-size: 18px;
    line-height: 26px;
    color: rgba(30, 30, 30, 0.6);
    max-width: 420px;
    margin: 0 auto 40px;
}

.booked-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background-color: #FAFAFA;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 14px;
    margin-bottom: 40px;
}

.booked-card .bc-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booked-card .bc-text { text-align: left; }

.booked-card .bc-date {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 2px;
}

.booked-card .bc-time {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30, 30, 30, 0.5);
}

.success-panel .back-home {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    color: rgba(30, 30, 30, 0.45);
    text-decoration: none;
    transition: color ease 250ms;
}

.success-panel .back-home:hover { color: #1E1E1E; }


/* ================================================================
   RESPONSIVE BREAKPOINTS - matching index.css system exactly
   1200px → 980px → 850px → 650px → 400px
   ================================================================ */

/* ── 1200px ── */
@media screen and (max-width: 1200px) {
    .book-page .container {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }

    .book-sidebar h1 {
        font-size: 44px;
        line-height: 54px;
    }

    .booking-panel {
        padding: 36px 36px;
    }
}

/* ── 980px ── */
@media screen and (max-width: 980px) {

    /* Stack sidebar above widget */
    .book-page .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Sidebar no longer sticky when stacked */
    .book-sidebar {
        position: static;
    }

    .book-sidebar h1 {
        font-size: 52px;
        line-height: 62px;
    }

    /* Sidebar - horizontal meta list layout on mid sizes */
    .book-sidebar .meta-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px 30px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .book-sidebar .lead {
        margin-bottom: 30px;
    }
}

/* ── 850px - hamburger breakpoint ── */
@media screen and (max-width: 850px) {

    /* Hide desktop nav, show hamburger */
    .navbar .links {
        display: none;
    }

    .mobile-menu {
        display: flex;
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
        overflow: hidden;
        border-radius: 50px;
    }

    .mobile-menu .open {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1E1E1E;
        transition: all ease 450ms;
    }

    .mobile-menu .close {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #F3C403;
        transition: all ease 450ms;
    }

    .book-page {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .book-sidebar h1 {
        font-size: 42px;
        line-height: 52px;
    }

    .booking-panel {
        padding: 30px 28px;
    }

    /* Calendar - stack calendar and time slots vertically */
    .calendar-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Expand time slot list height on mobile */
    .time-slots {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .step-bar .step {
        padding: 14px 12px;
        gap: 8px;
    }

    .step-bar .step .step-label {
        font-size: 10px;
    }

    /* Success panel */
    .success-panel {
        padding: 50px 24px;
    }

    .success-panel h2 {
        font-size: 34px;
        line-height: 44px;
    }
}

/* ── 650px ── */
@media screen and (max-width: 650px) {

    section {
        padding-inline: 20px;
    }

    .book-page {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .book-sidebar h1 {
        font-size: 36px;
        line-height: 46px;
    }

    .book-sidebar .lead {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 24px;
    }

    .book-sidebar .meta-list {
        flex-direction: column;
        gap: 14px;
    }

    .book-sidebar .meta-row span {
        font-size: 13px;
    }

    .booking-panel {
        padding: 24px 20px;
    }

    .panel-heading {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    /* Step bar - hide labels, show numbers only */
    .step-bar .step {
        padding: 12px 10px;
        justify-content: center;
    }

    .step-bar .step .step-label {
        display: none;
    }

    /* Calendar */
    .cal-header .month-label {
        font-size: 16px;
    }

    .cal-grid .day {
        font-size: 12px;
    }

    .cal-grid .day-name {
        font-size: 10px;
    }

    /* Time slots - single column on smallest */
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Panel actions - stack on small screens */
    .panel-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-back {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    /* Success */
    .booked-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .booked-card .bc-text {
        text-align: center;
    }

    /* Footer */
    .footer .main {
        gap: 40px;
    }

    .footer-links a {
        font-size: 18px;
        line-height: 24px;
    }

    .footer .col h3 {
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 28px;
    }

    .copyright {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}

/* ── 400px ── */
@media screen and (max-width: 400px) {

    .book-sidebar h1 {
        font-size: 30px;
        line-height: 40px;
    }

    .book-sidebar .guarantee p {
        font-size: 14px;
        line-height: 20px;
    }

    .panel-heading {
        font-size: 22px;
        line-height: 30px;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .time-slot {
        padding: 12px 16px;
        font-size: 13px;
    }

    .success-panel {
        padding: 40px 16px;
    }

    .success-panel h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .success-ring {
        width: 64px;
        height: 64px;
    }

    .booked-card {
        padding: 20px 16px;
    }

    .booked-card .bc-date {
        font-size: 15px;
    }
}