/* ══════════════════════════════════════════════════════════
   BOOKING PAGE — FOLDED
   Extends index.css — never modifies shared rules
   ══════════════════════════════════════════════════════════ */

/* ── Body override ─────────────────────────────────────── */
body.booking-page {
    background-color: #fff;
}

body.booking-page .navbar {
    background-color: #FFDE59;
    border-bottom: 2px solid #000;
}

/* ── Booking navbar ────────────────────────────────────── */

.booking-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.booking-back:hover {
    color: #000;
}

/* ── Section wrapper ───────────────────────────────────── */
.booking {
    padding-block: 70px 120px;
}

.booking .container {
    max-width: 920px;
}

/* ══════════════════════════════════════════════════════════
   ERROR TOAST
   ══════════════════════════════════════════════════════════ */

.booking-error {
    max-width: 860px;
    margin: -20px auto 24px;
    padding: 13px 20px;
    background-color: #000;
    color: #FFDE59;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.booking-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   STEP PANELS
   ══════════════════════════════════════════════════════════ */

.step-panel {
    display: none;
    max-width: 860px;
    margin: 0 auto;
}

.step-panel.active {
    display: block;
    animation: stepIn 0.3s ease both;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Step header ───────────────────────────────────────── */
.step-header {
    margin-bottom: 52px;
}

.step-header h2 {
    font-size: 56px;
    line-height: 64px;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 18px;
    line-height: 28px;
    color: rgba(0,0,0,0.5);
    max-width: none;
    margin: 0;
}

/* ── Field section ─────────────────────────────────────── */
.field-section {
    margin-bottom: 44px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.42);
    margin-bottom: 14px;
}

.label-tag {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 3px 8px;
    background-color: #000;
    color: #FFDE59;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   DATE CARDS
   ══════════════════════════════════════════════════════════ */

.dates-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.dates-scroll::-webkit-scrollbar { display: none; }

.dates-row {
    display: flex;
    gap: 10px;
    width: max-content;
}

.date-card {
    width: 78px;
    height: 98px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 2px solid #000;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.date-card:hover { background-color: rgba(255,222,89,0.35); }
.date-card.selected { background-color: #FFDE59; }

.date-day {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(0,0,0,0.42);
}
.date-card.selected .date-day { color: rgba(0,0,0,0.55); }

.date-num {
    font-family: 'GulfDisplay', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: #000;
}

.date-month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(0,0,0,0.42);
}
.date-card.selected .date-month { color: rgba(0,0,0,0.55); }

/* ══════════════════════════════════════════════════════════
   TIME SLOTS
   ══════════════════════════════════════════════════════════ */

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-card {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px 24px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.time-card:hover    { background-color: rgba(255,222,89,0.35); }
.time-card.selected { background-color: #FFDE59; }

.time-card-main {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}
.time-card-sub {
    font-size: 14px;
    color: rgba(0,0,0,0.48);
    margin-top: 5px;
}

/* ══════════════════════════════════════════════════════════
   SERVICE CARD (always selected appearance)
   ══════════════════════════════════════════════════════════ */

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 2px solid #000;
    border-radius: 10px;
    background-color: rgba(255,222,89,0.22);
    padding: 22px 26px;
}

.service-name {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}
.service-desc {
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    margin-top: 5px;
    line-height: 22px;
}
.service-badge {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background-color: #000;
    color: #FFDE59;
    padding: 7px 14px;
    border-radius: 6px;
}

/* ══════════════════════════════════════════════════════════
   EXTRA ADD-ON CARDS
   ══════════════════════════════════════════════════════════ */

.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.extra-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 16px 18px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.extra-card:hover    { background-color: rgba(255,222,89,0.35); }
.extra-card.selected { background-color: #FFDE59; }

/* Checkbox icon */
.extra-check-box {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    border-radius: 6px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.extra-check-box svg { opacity: 0; transition: opacity 0.1s ease; }

.extra-card.selected .extra-check-box { background-color: #000; color: #fff; }
.extra-card.selected .extra-check-box svg { opacity: 1; }

.extra-body { flex: 1; min-width: 0; }

.extra-name {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}
.extra-desc {
    font-size: 13px;
    color: rgba(0,0,0,0.48);
    margin-top: 3px;
    line-height: 20px;
}

.extra-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* ══════════════════════════════════════════════════════════
   BAG SELECTOR
   ══════════════════════════════════════════════════════════ */

.bags-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bag-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 28px 16px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease;
    user-select: none;
}

.bag-card:hover    { background-color: rgba(255,222,89,0.35); }
.bag-card.selected { background-color: #FFDE59; }

.bag-number {
    font-family: 'GulfDisplay', sans-serif;
    font-size: 42px;
    line-height: 1;
    color: #000;
}
.bag-word {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-top: 2px;
}
.bag-price {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════
   STEP 3 LAYOUT
   ══════════════════════════════════════════════════════════ */

.step3-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 30px;
    align-items: start;
}

.step3-fields {
    display: flex;
    flex-direction: column;
}

/* ── Text inputs ───────────────────────────────────────── */
.field-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-input {
    width: 100%;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    color: #000;
    background-color: #fff;
    outline: none;
    transition: background-color 0.15s ease;
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

.text-input::placeholder { color: rgba(0,0,0,0.32); }
.text-input:focus        { background-color: rgba(255,222,89,0.18); }

.text-area {
    resize: none;
    line-height: 24px;
    font-family: 'DM Sans', sans-serif;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Order summary card ────────────────────────────────── */
.order-summary {
    position: sticky;
    top: 24px;
}

.sum-card {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 26px;
    background-color: #fff;
}

.sum-heading {
    font-family: 'GulfDisplay', sans-serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
}

.sum-row span:first-child { color: rgba(0,0,0,0.5); }
.sum-row.addon span:first-child { color: #000; }

.sum-val {
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.sum-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 6px 0;
}

.sum-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    font-family: 'GulfDisplay', sans-serif;
    font-size: 26px;
}

/* ══════════════════════════════════════════════════════════
   STEP FOOTER NAV BUTTONS
   ══════════════════════════════════════════════════════════ */

.step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 52px;
    padding-top: 30px;
    border-top: 2px solid rgba(0,0,0,0.08);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-back:hover { background-color: rgba(0,0,0,0.05); }

.btn-next,
.btn-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-next:hover,
.btn-confirm:hover {
    background-color: #FFDE59;
    color: #000;
    transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   CONFIRMATION SCREEN
   ══════════════════════════════════════════════════════════ */

.confirm-screen {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 50px 0 80px;
}

.confirm-check {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid #000;
    background-color: #FFDE59;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.confirm-screen h2 {
    font-size: 56px;
    line-height: 64px;
    margin-bottom: 16px;
}

.confirm-screen > p {
    font-size: 18px;
    line-height: 30px;
    color: rgba(0,0,0,0.55);
    margin-bottom: 44px;
}

.confirm-summary {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 6px 24px;
    text-align: left;
    margin-bottom: 40px;
}

.conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.conf-row:last-child { border-bottom: none; }

.conf-label {
    font-size: 14px;
    color: rgba(0,0,0,0.48);
    font-weight: 500;
    flex-shrink: 0;
}
.conf-val {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.conf-row.total-row .conf-label {
    font-family: 'GulfDisplay', sans-serif;
    font-size: 22px;
    color: #000;
}
.conf-row.total-row .conf-val {
    font-family: 'GulfDisplay', sans-serif;
    font-size: 26px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-home:hover {
    background-color: #FFDE59;
    color: #000;
}

/* ══════════════════════════════════════════════════════════
   ACCOUNT STEP (step 4)
   ══════════════════════════════════════════════════════════ */

.account-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.account-card {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 28px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background-color: #fff;
    user-select: none;
}

.account-card:hover { background-color: rgba(255, 222, 89, 0.25); }
.account-card.selected { background-color: #FFDE59; }

.account-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    margin-bottom: 18px;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.account-card.selected .account-radio {
    border-color: #000;
    background-color: #000;
}

.account-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FFDE59;
    transition: transform 0.15s ease;
}

.account-card.selected .account-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.account-card h3 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 14px;
}

.account-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.account-perks li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.account-perks li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8L6 12L14 4' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.account-card-desc {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 26px;
    margin: 0;
}

.account-password-wrap {
    display: none;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1.5px solid rgba(0, 0, 0, 0.15);
}

.account-card.selected .account-password-wrap {
    display: block;
}

.account-password-wrap .field-label {
    margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media screen and (max-width: 860px) {
    .step3-layout {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
        order: -1;   /* show summary above form on tablet */
    }

}

/* Large mobile */
@media screen and (max-width: 640px) {
    .step-header h2    { font-size: 44px; line-height: 52px; }
    .time-grid         { grid-template-columns: 1fr; }
    .extras-grid       { grid-template-columns: 1fr; }
    .bags-row          { grid-template-columns: repeat(2, 1fr); }
    .booking           { padding-block: 50px 80px; }
    .account-choices   { grid-template-columns: 1fr; }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .step-header h2    { font-size: 36px; line-height: 44px; }
    .input-row         { grid-template-columns: 1fr; }
    .confirm-screen h2 { font-size: 42px; line-height: 50px; }

    .service-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
