@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Define the new color palette using CSS variables for easy changes */
:root {
    --primary-color: #000f9c;
    --primary-light: #0022d1;
    --secondary-color: #f0f4f8;
    --accent-color: #dbe4ff;
    --text-color: #333;
    --heading-color: #2c3e50;
}

/* General Body and Layout Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* This is the fix: it vertically centers the items */
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
    overflow: hidden;
}

/* Left Section for Image */
.image-container {
    flex: 1;
    min-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px 0 0 20px;
    position: relative;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
    padding: 30px;
    box-sizing: border-box;
}

/* Right Section for Form */
.booking-container {
    flex: 1;
    min-width: 400px;
    padding: 40px;
    box-sizing: border-box;
}

/* Headings */
h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Form Groups and Labels */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1rem;
}

/* Form Inputs, Select, and Textarea */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 15, 156, 0.2);
}

.form-group textarea {
    min-height: 120px;
}

/* Button Styling */
button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 15, 156, 0.3);
}

button:hover {
    background-color: #000a6e;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for smaller screens */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        max-width: 600px;
    }

    .image-container {
        min-width: unset;
        border-radius: 20px 20px 0 0;
        padding-bottom: 10px;
        background: linear-gradient(0deg, var(--primary-color) 0%, var(--primary-light) 100%);
    }

    .booking-container {
        min-width: unset;
        border-radius: 0 0 20px 20px;
        padding-top: 20px;
    }
}

@media (max-width: 576px) {
    .booking-container {
        padding: 25px;
    }
    h2 {
        font-size: 1.8rem;
    }
}