/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 138, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(184, 138, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 138, 68, 0); }
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    font-family: 'Lato', sans-serif;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* FIX: Changed from center to allow normal scrolling */
    min-height: 100vh; 
    padding: 20px;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.booking-wrapper {
    margin: auto; /* FIX: This keeps it centered when closed, but scrollable when the keyboard opens */
    width: 100%;
}



/* --- CONTAINER STYLING --- */
.form-container {
    background-color: #161616;
    width: 100%;
    /* Default max-width for standard laptops/desktops */
    max-width: 500px; 
    padding: 40px;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    /* Entrance Animation for the box itself */
    animation: fadeIn 1s ease-out forwards;
}

/* Gold decorative border */
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b88a44, #f2d087, #b88a44);
}

/* --- TYPOGRAPHY --- */
header {
    text-align: center;
    margin-bottom: 35px;
}

header.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #f2d087;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

header p {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

/* --- FORM ELEMENTS --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

/* Animation Classes */
.slide-up {
    opacity: 0;
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered delays so they don't load all at once */
.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.8s; }

label {
    display: block;
    font-size: 0.8rem;
    color: #b88a44;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: bold;
    transition: color 0.3s ease;
}

input, textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: #fff;
    padding: 10px 0;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: #f2d087;
}

input:focus + label, textarea:focus + label {
    color: #f2d087;
}

/* Placeholder styling */
::placeholder {
    color: #444;
    transition: color 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: #666;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- SUBMIT BUTTON --- */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #b88a44;
    color: #000;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #f2d087;
    transform: translateY(-3px);
    /* Pulse Animation on Hover */
    animation: goldPulse 1.5s infinite;
}

.btn-submit:active {
    transform: translateY(0);
}

/* =========================================
   RESPONSIVENESS (ADAPTIVE SIZING)
   ========================================= */

/* Tablets and Mobile Phones */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
        max-width: 100%; /* Use full width on small screens */
    }

    header h1 {
        font-size: 1.6rem;
    }
}

/* Very Small Mobile Phones */
@media (max-width: 400px) {
    body {
        padding: 10px; /* Reduce outer padding */
    }
    
    .form-container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.4rem;
    }
}

/* Wide Monitors & 4K Screens (Optional Scaling) */
@media (min-width: 1600px) {
    .form-container {
        max-width: 700px; /* Allow it to get wider on huge screens */
        padding: 60px;    /* More breathing room */
    }

    header h1 {
        font-size: 3rem;
    }

    input, textarea, .btn-submit {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    label {
        font-size: 1rem;
    }
}

/* =========================================
   SUCCESS PAGE STYLES
   ========================================= */

.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* --- SVG DRAWING ANIMATION --- */
.success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #b88a44; /* Gold */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(184, 138, 68, 0.5));
}

/* The Circle Animation */
.circle-path {
    stroke-dasharray: 283; /* Circumference of r=45 */
    stroke-dashoffset: 283;
    animation: drawLine 1s ease-out forwards 0.2s;
}

/* The Checkmark Animation */
.check-path {
    stroke-dasharray: 60; /* Approx length of check */
    stroke-dashoffset: 60;
    animation: drawLine 0.5s ease-out forwards 1s; /* Starts after circle finishes */
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- TEXT ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-text { animation-delay: 1.3s; }
.delay-text-2 { animation-delay: 1.5s; font-size: 0.9rem; color: #666; margin-bottom: 30px;}
.delay-btn { animation-delay: 1.8s; }

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

/* --- RETURN BUTTON --- */
.btn-home {
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid #b88a44;
    color: #b88a44;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-home:hover {
    background-color: #b88a44;
    color: #0d0d0d;
    box-shadow: 0 0 15px rgba(184, 138, 68, 0.6);
}
