/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --caspian-brown: #8B4513;
    --caspian-dark: #5C3317;
    --caspian-light: #D2691E;
    --white: #FFFFFF;
    --cream: #FFF8F0;
    --gold: #D4AF37;
    --red: #C41E3A;
    --green: #0F5132;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Snowflakes Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 13s; animation-delay: 0s; }

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: fadeInDown 1s ease;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--caspian-brown);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--caspian-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Event Details */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.detail-item .icon {
    font-size: 2.5rem;
}

.detail-item h3 {
    font-size: 1.1rem;
    color: var(--caspian-brown);
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Reservation Section */
.reservation-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    justify-items: center; /* centers items horizontally in their grid column */
    align-items: center;   /* centers items vertically */
}


/* Form Card */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    animation: fadeInLeft 1s ease;
    grid-column: 1 / -1; /* span all columns */
}

.form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--caspian-brown);
    margin-bottom: 10px;
}

.form-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Form Styles */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-weight: 500;
    color: var(--caspian-dark);
    font-size: 0.95rem;
}

.required {
    color: var(--red);
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--caspian-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Match select styling to inputs */
.form-group select {
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    appearance: none;
}

.form-group select:focus {
    outline: none;
    border-color: var(--caspian-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--caspian-brown) 0%, var(--caspian-dark) 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Styles */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.message.success {
    background-color: #D1F2EB;
    color: var(--green);
    border: 2px solid var(--green);
}

.message.error {
    background-color: #F8D7DA;
    color: var(--red);
    border: 2px solid var(--red);
}

/* Info Card */
.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    animation: fadeInRight 1s ease;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--caspian-brown);
    margin-bottom: 25px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 15px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 1rem;
    color: #555;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    border-left: 4px solid var(--caspian-brown);
}

.contact-info p {
    margin: 5px 0;
    color: #555;
}

.contact-info strong {
    color: var(--caspian-brown);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .reservation-section {
        grid-template-columns: 1fr;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .form-card,
    .info-card {
        padding: 30px 20px;
    }

    .logo {
        max-width: 200px;
    }

    .snowflake {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .container {
        padding: 15px;
    }

    .header {
        padding: 20px 0;
    }
}
