/* Contact Page Styles */

/* Intro Section */
.contact-intro-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #edf3f1;
    position: relative;
    overflow: hidden;
}

.contact-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100px;
    height: 100%;
    width: 300px;
    background: radial-gradient(circle at left, #103f1d10 0%, transparent 80%);
    transform: rotate(25deg);
}

.container-line {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Changed to center for better alignment */
    flex-wrap: wrap;
    flex-direction: column;
    /* Stack text */
}

.contact-intro-section h2 {
    color: #103f1d;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-intro-section p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Cards Section */
.contact-card-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 40px 60px 40px;
    background-color: #edf3f1;
    flex-wrap: wrap;
}

.contact-card {
    background-color: #103f1d;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: #f77037;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.contact-card a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #f77037;
}

.contact-card i {
    font-size: 2rem;
    color: #f77037;
    margin-bottom: 15px;
}

/* Map and Form Section */
.contact-and-map-section {
    padding: 20px 40px 80px 40px;
    background-color: #edf3f1;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    /* Reduced from 1400px for better desktop focus */
    margin: 0 auto;
    gap: 50px;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-map {
    flex: 1;
    min-width: 350px;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Star hidden for animation */
}

.contact-form-container {
    flex: 1;
    min-width: 350px;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    /* 0.2s delay */
    opacity: 0;
    /* Start hidden for animation */
    transition: transform 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
}

.contact-form-container h2 {
    color: #103f1d;
    margin-bottom: 30px;
    font-size: 2.5rem;
    /* Matches Send a Message size */
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    color: #666;
    /* Grey text placeholder style */
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #103f1d;
}

.form-field textarea {
    height: 150px;
    resize: none;
}

.submit-button {
    background-color: #103f1d;
    color: #fff;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 5px;
    /* Slightly sharper than inputs as per image */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #0d2f15;
}

/* Tablet/Mobile Responsiveness */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-map,
    .contact-form-container {
        width: 100%;
        max-width: 600px;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .contact-intro-section h2 {
        font-size: 2.2rem;
    }

    .contact-intro-section p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .contact-card-section {
        padding: 20px 20px 40px;
        gap: 20px;
    }

    .contact-card {
        min-width: 260px;
        max-width: 360px;
        padding: 28px 22px;
    }

    .contact-and-map-section {
        padding: 20px 16px 50px;
    }

    .contact-container {
        align-items: stretch;
    }

    .contact-map,
    .contact-form-container {
        max-width: 520px;
        margin: 0 auto;
    }

    .contact-form-container {
        padding: 30px 24px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .contact-intro-section {
        padding: 40px 15px;
    }

    .contact-intro-section h2 {
        font-size: 1.8rem;
    }

    .contact-card-section {
        padding: 20px 12px 32px;
        gap: 16px;
    }

    .contact-card {
        min-width: 100%;
        max-width: 100%;
        padding: 22px 16px;
    }

    .contact-and-map-section {
        padding: 16px 12px 50px;
    }

    .contact-map,
    .contact-form-container {
        min-width: auto;
        min-height: 280px;
        width: 100%;
        max-width: 100%;
    }

    .contact-form-container {
        padding: 24px 16px;
    }

    .contact-form-container h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .form-field {
        margin-bottom: 16px;
    }

    .form-field input,
    .form-field textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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