/* --- GLOBAL & VARIABLES --- */
:root {
    --primary-color: #B89E68; /* A softer, more elegant gold */
    --primary-color-darker: #a58a53;
    --dark-color: #1a1a1a;
    --light-color: #FFFFFF;
    --grey-color: #f7f7f7;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --error-color: #D32F2F;
    --font-family: 'Jost', sans-serif;
    --border-radius-md: 8px; /* Medium border radius */
    --border-radius-lg: 16px; /* Large border radius */
    --shadow-light: 0 3px 10px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-color);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    font-size: 15px; /* Global font size reduction */
    letter-spacing: 0.02em; /* Added letter spacing */
}

*:focus-visible {
    outline: 3px solid rgba(184, 158, 104, 0.45);
    outline-offset: 2px;
}

/* --- BACKGROUND OVERLAY --- */
#background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('DSC01641.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.6);
    transform: scale(1.05);
    z-index: -1;
}

@media (min-width: 992px) {
    #background-overlay {
        display: none;
    }
}

/* --- MAIN CONTENT WRAPPER (Desktop) --- */
.main-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center; /* Changed from flex-start to center */
    max-width: 1100px;
    width: 100%;
    gap: 60px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh; /* Ensure it takes full viewport height for centering */
}

/* --- CONTENT AREA (TEXT ON LEFT - Desktop) --- */
.content-area {
    flex: 1;
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 410px;
    padding-top: 0; /* Remove padding-top, let flex handle centering */
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center children vertically */
    align-self: stretch; /* Allow it to stretch to fill height */
}
.content-area h1 {
    font-size: 3em;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}
.content-area p {
    font-size: 1em;
    line-height: 1.7;
    opacity: 0.9;
}

/* --- FORM CONTAINER (Desktop) --- */
.booking-form-container {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(120%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: sticky;
    top: 40px;
}

@media (min-width: 992px) {
    body {
        background: #f4f2ef;
    }
    .main-content-wrapper {
        max-width: none;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }
    .content-area {
        max-width: none;
        padding: 80px 70px;
        background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
            url('DSC01641.JPG');
        background-size: cover;
        background-position: center;
        text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .content-area h1 {
        font-size: 3.2em;
    }
    .content-area p {
        font-size: 1.05em;
        max-width: 420px;
    }
    .booking-form-container {
        max-width: 520px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: var(--light-color);
        position: static;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    #booking-form {
        width: 100%;
    }
    #booking-form header {
        background: var(--light-color);
        border-bottom: 1px solid var(--border-color);
    }
    .form-navigation {
        background: var(--light-color);
    }
}

#booking-form header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#booking-form header h4 {
    color: var(--dark-color);
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}
.form-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 30px 0;
}
.form-logo img {
    width: 140px;
    height: auto;
}
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #5a5a5a;
    margin-bottom: 14px;
}
.step-indicator span:last-child {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- PROGRESS BAR --- */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-inner {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- FORM STEPS & FIELDS (Shared) --- */
.form-step {
    display: none;
    padding: 25px 35px 35px;
    animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.form-step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h4 { /* Step subtitles */
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
    font-size: 1em;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.85em;
    color: var(--text-color);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family);
    font-size: 0.95em;
    color: var(--dark-color);
    transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(184, 158, 104, 0.2);
}
input.error, select.error, textarea.error {
    border-color: var(--error-color);
    background-color: rgba(211, 47, 47, 0.05);
}
textarea { resize: vertical; min-height: 80px; }

/* --- CHECKBOX & RADIO STYLES --- */
.checkbox-group, .radio-group { display: flex; align-items: center; margin-bottom: 0; }
.checkbox-group input, .radio-group input { margin-right: 12px; flex-shrink: 0; accent-color: var(--primary-color); }
.checkbox-group input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}
.service-option, .terms, .suite-selection .checkbox-group {
    background: rgba(255, 255, 255, 0.4);
    padding: 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.service-option:hover, .terms:hover, .suite-selection .checkbox-group:hover {
    border-color: rgba(184, 158, 104, 0.5);
    background: rgba(255, 255, 255, 0.6);
}
.radio-group input:checked + label { font-weight: 600; }
.radio-group-wrapper .radio-group.service-option { border: 1px solid var(--border-color); }
.radio-group-wrapper input[type="radio"]:checked ~ label { color: var(--primary-color-darker); }
.radio-group-wrapper { display: flex; gap: 15px; }
.radio-group-wrapper.vertical { flex-direction: column; gap: 10px; }
.radio-group-wrapper.error .service-option { border: 1px solid var(--error-color); }

/* --- CONDITIONAL & INFO SECTIONS --- */
.hidden { display: none !important; }
.transport-details {
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}
.info-text {
    font-size: 0.8em;
    color: #555;
    background: rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: var(--border-radius-md);
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}
.micro-text {
    font-size: 0.78em;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}
.field-error {
    font-size: 0.85em;
    color: var(--error-color);
    margin-top: 8px;
}
.availability-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-color);
    background: rgba(184, 158, 104, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
}
.suggestion-btn {
    border: none;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85em;
    cursor: pointer;
}
.suggestion-btn:hover {
    background: var(--primary-color-darker);
}
.suite-selection.error-border { padding: 10px; border-radius: var(--border-radius-md); border: 1px solid var(--error-color) !important; }
.suite-selection hr { border: none; border-top: 1px solid var(--border-color); margin: 10px 0; }

.service-option label,
.suite-selection .checkbox-group label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 0;
}
.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.option-title {
    font-weight: 600;
    color: var(--dark-color);
}
.option-sub {
    font-size: 0.8em;
    color: #666;
}
.option-price {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--primary-color-darker);
    background: rgba(184, 158, 104, 0.15);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.option-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.gallery-trigger {
    border: 1px solid rgba(184, 158, 104, 0.4);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color-darker);
    font-size: 0.78em;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-trigger:hover {
    background: rgba(184, 158, 104, 0.15);
    border-color: rgba(184, 158, 104, 0.7);
}

/* --- GALLERY MODAL --- */
.no-scroll { overflow: hidden; }
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.gallery-panel {
    position: relative;
    width: min(900px, 92vw);
    max-height: 86vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 16px;
    overflow: hidden;
}
.gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4em;
    cursor: pointer;
}
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 44px;
}
.gallery-header h4 {
    font-size: 1em;
    color: var(--dark-color);
}
.gallery-header span {
    font-size: 0.85em;
    color: #666;
}
.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 14px;
    padding-bottom: 6px;
}
.gallery-slide {
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-md);
    padding: 12px;
}
.gallery-slide img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}
.gallery-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.gallery-nav {
    flex: 1;
    border: 1px solid var(--border-color);
    background: var(--grey-color);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
}

/* --- FLATPICKR LUXE THEMING --- */
.flatpickr-calendar {
    border-radius: 18px;
    border: 1px solid rgba(184, 158, 104, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    font-family: var(--font-family);
}
.flatpickr-months .flatpickr-month {
    color: var(--dark-color);
}
.flatpickr-current-month {
    font-weight: 600;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}
.flatpickr-day.inRange {
    background: rgba(184, 158, 104, 0.2);
    border-color: rgba(184, 158, 104, 0.2);
}
.flatpickr-day.today {
    border-color: var(--primary-color);
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #c2b9ad;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

@media (max-width: 768px) {
    .service-option label,
    .suite-selection .checkbox-group label {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .option-text {
        max-width: 100%;
    }
    .option-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .option-actions {
        width: 100%;
        align-items: flex-start;
    }
    .option-actions .option-price {
        font-size: 0.76em;
        padding: 5px 9px;
    }
    .gallery-trigger {
        padding: 5px 9px;
    }
    .option-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .suite-selection .checkbox-group,
    .service-option {
        margin-bottom: 14px;
    }
    .gallery-panel {
        width: 94vw;
        max-height: 88vh;
        padding: 16px 16px 12px;
    }
    .gallery-controls {
        flex-direction: column;
    }
    .gallery-slide img {
        max-height: 50vh;
    }
}

/* --- SUMMARY BOX --- */
.summary-box {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 20px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align text at the baseline for better visual flow */
    padding: 12px 0;
    font-size: 0.95em;
    gap: 10px; /* Ensure a minimum gap, adjust as needed, e.g., 10px */
}
/* Target the amount (second span) within summary-item */
.summary-item span:last-child {
    font-weight: 600; /* Make all amounts bolder */
    white-space: nowrap; /* Prevent amounts from wrapping onto multiple lines */
    text-align: right; /* Explicitly right-align for consistency, though flex handles much */
    flex-shrink: 0; /* Prevent shrinking on small screens */
}
.summary-box hr { border: none; border-top: 1px solid rgba(0, 0, 0, 0.1); margin: 10px 0; }
.summary-item.total { font-weight: 700; font-size: 1.1em; color: var(--dark-color); }
.summary-item.total span:last-child { /* Apply to amount span */
    font-weight: 700;
    color: var(--dark-color);
}
.summary-item.advance { font-weight: 600; font-size: 1em; color: var(--primary-color-darker); }
.summary-item.advance span:last-child { /* Apply to amount span */
    font-weight: 700; /* Make advance bolder too */
    color: var(--primary-color-darker);
}
.summary-details { padding: 5px 0 10px 20px; font-size: 0.9em; color: #555; }
.summary-details div { padding: 3px 0; }

/* --- NAVIGATION --- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 35px;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.btn-primary, .btn-secondary {
    padding: 14px 35px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background-color: var(--primary-color-darker);
    box-shadow: 0 6px 15px rgba(184, 158, 104, 0.3);
    transform: translateY(-2px);
}
.btn-secondary { background-color: transparent; color: var(--text-color); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--grey-color); border-color: #ccc; color: var(--dark-color); }

/* --- GRID FOR DATES --- */
@media (min-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/*
================================================================
MOBILE OPTIMIZATIONS (UI/UX Centered)
================================================================
*/
@media (max-width: 991px) {
    body {
        display: flex;
        flex-direction: column; /* Ensure main content wraps if taller than viewport */
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
        min-height: 100vh;
        padding: 20px; /* Global padding for mobile body */
    }
    .main-content-wrapper {
        flex-direction: column-reverse;
        gap: 30px; /* Added gap between form and content area */
        padding: 0;
        width: 100%;
        max-width: 520px; /* Constrain width to form max-width */
    }

    .booking-form-container {
        max-width: 100%;
        width: 100%;
        position: static;
        background: var(--light-color);
        backdrop-filter: none;
        border-radius: var(--border-radius-lg); /* Keep border radius */
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
        min-height: auto; /* Allow height to adjust */
    }

    #booking-form header, .form-step, .form-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }
     #booking-form header {
        padding-top: 25px;
        background: var(--light-color);
        border-bottom: 1px solid var(--border-color);
    }
     .form-navigation {
        position: sticky;
        bottom: 0;
        background: var(--light-color); /* Match form background */
        backdrop-filter: blur(5px);
        box-shadow: var(--shadow-medium);
        z-index: 10;
        border-top: 1px solid var(--border-color);
    }

    .content-area {
        display: none; /* <<<<<<<< Added this line to hide on mobile <<<<<<<< */
        position: relative;
        background-color: transparent; /* No specific background, relies on body background */
        padding: 40px 20px;
        text-align: center;
        max-width: 100%;
    }
    .content-area h1 {
        font-size: 1.8em; /* Further reduced for mobile */
    }
    .content-area p {
        font-size: 0.9em; /* Further reduced for mobile */
        max-width: 400px;
        margin: 0 auto;
    }

    /* Mobile Summary Box Specific Improvements */
    .summary-item {
        padding: 15px 0; /* Increase vertical padding for summary items */
    }
    .summary-box hr {
        margin: 12px 0; /* Slightly increase margin around HR */
    }
    .summary-details {
        padding: 8px 0 12px 20px; /* Adjust padding for summary details container */
    }
    .summary-details div {
        padding: 5px 0; /* Increase padding for individual detail lines */
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
