/* Parallax background */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(53, 57, 60, 1) 0%, transparent 70% 100%),
        linear-gradient(180deg, rgba(255, 250, 250, 1) 0%, rgba(255, 250, 250, 1) 100%);
    z-index: -1;
    transform: translateY(calc(var(--scroll, 0) * 0.15px));
    will-change: transform;
    pointer-events: none;
}

/* Template Page Styles */
.template-page {
    position: relative;
    width: 100%;
}

.template-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 5rem auto 2rem;
    max-width: 1000px;
    padding: 2rem;
    background: rgba(255, 250, 250, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(19, 23, 32, 0.1);
}

/* Map Section */
.map-section {
    width: 100%;
    height: 750px; /* Increased from 600px */
}

.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(19, 23, 32, 0.1);
}

/* Form Section */
.form-section {
    width: 100%;
    height: 750px; /* Increased from 600px */
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    color: #131720;
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem; /* Increased from 1rem */
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Increased from 0.75rem */
    flex: 1;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem; /* Increased from 0.25rem */
}

.form-group label {
    color: #131720;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Form Inputs */
.form-group input,
.form-group textarea {
    padding: 0.75rem; /* Increased from 0.5rem */
    border: 1px solid rgba(19, 23, 32, 0.2);
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 250, 250, 0.8);
}

.form-group textarea {
    resize: none;
    height: 120px; /* Increased from 80px */
}

/* Form Validation Styles */
.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: #FF4136;
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: #FF4136;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: rgba(19, 23, 32, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #AD6F3B;
}

/* Submit Button */
.submit-button {
    background: #AD6F3B;
    color: #FFFAFA;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.submit-button:hover {
    background: #8B5830;
}

/* Message Styles */
.form-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27AE60;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.form-error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto;
        padding: 1.5rem;
        width: 95%;
        max-width: none;
    }

    .map-section {
        height: 400px; /* Increased from 350px */
    }

    .form-section {
        height: auto;
        min-height: 600px; /* Adjusted to match desktop height */
        padding: 0;
    }

    .form-group textarea {
        height: 150px; /* Increased for better mobile usability */
    }

    /* Make submit button more prominent */
    .submit-button {
        width: 100%;
        padding: 1rem;
        margin-top: 1.5rem; /* Increased spacing */
    }
}

/* Small Mobile Adjustments */
@media screen and (max-width: 480px) {
    .contact-container {
        width: 100%;
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 8px;
    }

    .map-section {
        height: 350px; /* Slightly increased from 300px */
    }
    
    .form-section {
        min-height: 650px; /* Ensure enough space on smallest screens */
    }
}