/* ======================= Contact Page Styles ======================= */

/* This section creates the overlapping effect for the content over the hero image */
.contact-main-section {
    background-color: #fff;
    margin-top: -80px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: relative;
    z-index: 2;
    padding: 4rem 1rem;
}

/* Main grid for the contact form and details */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Wrapper for the contact form on the left */
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Styles for the form itself */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 95, 222, 0.2);
}

/* --- Styles for the Form Response Message --- */
.form-success-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: none; /* Hidden by default, shown by JS */
    font-weight: 500;
    border: 1px solid transparent;
}

.form-success-message.success {
    background-color: #e0f2f1; /* Light green */
    color: #004d40; /* Dark green */
    border-color: #b2dfdb;
}

.form-success-message.error {
    background-color: #ffcdd2; /* Light red */
    color: #c62828; /* Dark red */
    border-color: #ef9a9a;
}

.form-success-message p {
    margin: 0;
}


/* Wrapper for the contact details on the right */
.contact-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.contact-icon-wrapper {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-detail-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact-detail-item p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.contact-email-link, 
.faq-link {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-email-link:hover, 
.faq-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments for the contact page grid */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }

    .contact-main-section {
        padding: 5rem 0;
    }
}
