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

:root {
    --blue: #305c7d;
    --blue-mid: #3a6d93;
    --blue-light: #e8eef4;
    --blue-pale: #f2f5f9;
    --terra: #AD5036;
    --terra-light: #c2613f;
    --terra-dark: #8f422d;
    --terra-pale: #fdf0ec;
    --dark: #332D2B;
    --white: #FFFFFF;
    --light: #FAF9F7;
    --muted: rgba(51, 45, 43, 0.55);
    --border: rgba(51, 45, 43, 0.1);
    --border-blue: rgba(48, 92, 125, 0.15);
    --error: #d64545;
    --error-bg: #fef2f2;
    --success: #2d8a4e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--terra);
    color: var(--white);
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 56px;
    height: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-logo {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 50px;
}

.nav-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terra);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--terra);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-back {
    color: var(--blue);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 24px;
    border: 1.5px solid var(--blue);
    transition: all 0.25s;
}

.nav-back:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ── PROGRESS ── */
.progress-bar {
    margin-top: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 56px;
    display: flex;
    align-items: center;
    height: 68px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.step.active {
    color: var(--terra);
}

.step.done {
    color: var(--blue);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: all 0.35s;
    font-weight: 600;
}

.step.active .step-num {
    border-color: var(--terra);
    background: var(--terra);
    color: var(--white);
}

.step.done .step-num {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.step-divider {
    width: 48px;
    height: 1.5px;
    background: var(--border);
    margin: 0 24px;
}

.step-divider.active {
    background: var(--terra);
}

/* ── LAYOUT ── */
.booking-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 36px;
    align-items: start;
}

/* ── STEP PANELS ── */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.panel-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.7;
}

/* ── ERROR ── */
.err-banner {
    display: none;
    background: var(--error-bg);
    border: 1px solid rgba(214, 69, 69, 0.2);
    border-left: 3px solid var(--error);
    color: var(--error);
    padding: 14px 18px;
    font-size: 0.82rem;
    margin-bottom: 24px;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.err-banner.show {
    display: flex;
}

.err-banner::before {
    content: '⚠';
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── FORM FIELDS ── */
.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
}

.field-group input,
.field-group select {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--dark);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    appearance: none;
}

.field-group input:focus,
.field-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(48, 92, 125, 0.08);
}

.field-group input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.08);
}

.field-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.field-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23332D2B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.field-group textarea {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--dark);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 100px;
    width: 100%;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.field-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(48, 92, 125, 0.08);
}

.field-group textarea::placeholder,
.field-group input::placeholder {
    color: rgba(51, 45, 43, 0.35);
}

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

.form-grid.full {
    grid-template-columns: 1fr;
}

/* ── ROOM SELECTION ── */
.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-option {
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.room-option:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(48, 92, 125, 0.08);
    transform: translateY(-2px);
}

.room-option.selected {
    border-color: var(--terra);
    box-shadow: 0 4px 24px rgba(173, 80, 54, 0.1);
}

/* ── LANDSCAPE IMAGE CONTAINERS ── */
.room-option-img-wrap {
    width: 240px;
    min-height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.room-option-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-option:hover .room-option-img-wrap img {
    transform: scale(1.04);
}

.room-option-content {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.room-option-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark);
}

.room-option-price {
    text-align: right;
    flex-shrink: 0;
}

.room-option-price .amt {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--terra);
    font-weight: 500;
}

.room-option-price .per {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 400;
}

.room-option p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
    font-weight: 300;
}

.room-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    align-self: center;
    margin: 0 18px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-option.selected .room-check {
    border-color: var(--terra);
    background: var(--terra);
}

.room-option.selected .room-check::after {
    content: '✓';
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 700;
}

/* ── PAYMENT ── */
.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.pay-method {
    flex: 1;
    border: 1.5px solid var(--border);
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s;
    background: var(--white);
}

.pay-method:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
}

.pay-method.selected {
    border-color: var(--terra);
    background: var(--terra-pale);
}

.pay-method .pay-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pay-method span {
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    font-weight: 500;
}

.pay-method.selected span {
    color: var(--terra);
}

.pay-panel {
    display: none;
    animation: fadeIn 0.25s ease;
    margin-bottom: 8px;
}

.pay-panel.show {
    display: block;
}

.card-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

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

.pay-info-box {
    background: var(--blue-pale);
    border: 1px solid var(--border-blue);
    border-left: 3px solid var(--blue);
    padding: 24px 26px;
}

.pay-info-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--blue);
    font-weight: 500;
}

.pay-info-box p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.9;
    font-weight: 300;
}

.pay-info-box strong {
    color: var(--dark);
    font-weight: 600;
}

/* ── SUMMARY SIDEBAR ── */
.summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    position: sticky;
    top: 96px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.summary-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 500;
    background: var(--blue-pale);
}

.summary-body {
    padding: 24px;
}

/* ── SUMMARY LANDSCAPE IMAGE ── */
.summary-room {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.summary-room-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 14px;
}

.summary-room-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.summary-room-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--dark);
}

.summary-room-info p {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
}

.summary-dates {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.summary-date-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-date-row .lbl {
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.summary-date-row .val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-row .lbl {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.price-row .val {
    font-size: 0.85rem;
    font-weight: 500;
}

.price-row.total {
    border-top: 2px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
}

.price-row.total .lbl {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.price-row.total .val {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--terra);
    font-weight: 500;
}

/* ── BUTTONS ── */
.btn-row {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.btn-terra {
    background: var(--terra);
    color: var(--white);
    padding: 16px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1.5px solid var(--terra);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-terra:hover {
    background: var(--terra-dark);
    border-color: var(--terra-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 80, 54, 0.25);
}

.btn-terra:disabled {
    background: rgba(173, 80, 54, 0.4);
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.6);
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: 16px 28px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
    font-weight: 500;
}

.btn-ghost:hover {
    border-color: var(--dark);
    color: var(--dark);
    background: var(--white);
}

/* ── SPINNER ── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-terra.loading .spinner {
    display: block;
}

.btn-terra.loading .btn-text {
    opacity: 0.7;
}

/* ── SUCCESS ── */
.success-screen {
    text-align: center;
    padding: 72px 40px;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.success-screen h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 14px;
    color: var(--dark);
    font-weight: 500;
}

.success-screen p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto 32px;
    line-height: 1.8;
    font-weight: 300;
}

.booking-ref {
    background: var(--blue-pale);
    border: 1px solid var(--border-blue);
    border-left: 3px solid var(--blue);
    padding: 24px;
    margin-bottom: 36px;
    display: inline-block;
}

.booking-ref .ref-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.booking-ref .ref-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--blue);
    font-weight: 500;
}

/* ── FOOTER ── */
footer {
    background: url(/assets/SUPERGRAFIS/super-blue.jpeg);
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border);
    padding: 32px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    margin-top: 60px;
}

footer a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--terra-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .booking-layout {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .summary-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .progress-bar {
        margin-top: 64px;
        padding: 0 20px;
        overflow-x: auto;
        height: 60px;
    }

    .step span {
        display: none;
    }

    .step-divider {
        width: 24px;
        margin: 0 12px;
    }

    .date-row {
        grid-template-columns: 1fr 1fr;
    }

    .date-row .field-group:last-child {
        grid-column: 1 / -1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    /* Room option stacks vertically on mobile */
    .room-option {
        flex-direction: column;
    }

    .room-option-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .room-option-header {
        flex-direction: column;
        gap: 4px;
    }

    .room-option-price {
        text-align: left;
    }

    .room-check {
        margin: 0 18px 18px;
        align-self: flex-end;
    }

    .payment-methods {
        flex-direction: column;
    }

    footer {
        padding: 24px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .success-screen {
        padding: 48px 20px;
    }
}