/* ======================= CONTACT PAGE STYLES ======================= */

/* -------------------- Contact Hero Banner (Get in Touch) -------------------- */
.contact-hero-banner {
    /* Layered a 50% opacity black gradient over the image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.877), rgba(0, 0, 0, 0.5)), 
                      url('../images/Images-2/contact.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* Added to ensure image is centered */
    padding: 40px 20px 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white; /* Ensures all text inside is white for better contrast */
}

.contact-hero-banner .contact-tag {
    /* The small white badge at the top */
    display: inline-block;
    background-color: #7a7a7a75;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 25px;
}

.contact-hero-banner h2 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.contact-hero-banner p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}


/* -------------------- Main Content Layout -------------------- */
.contact-content-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background for contrast */
}

.contact-grid-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

/* Left Column: Form */
.contact-form-column {
    flex: 2; /* Takes up 2/3 of the space */
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-column h3 {
    font-size: 1.5rem;
    color: #003366;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Form Input Groups for two-column inputs (Name, Email, etc.) */
.form-input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-input-row > div {
    flex: 1;
}

/* Label and Input Styling */
.contact-form-column label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.contact-form-column input[type="text"],
.contact-form-column input[type="email"],
.contact-form-column input[type="tel"],
.contact-form-column select,
.contact-form-column textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 5px;
}

.contact-form-column textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form-column input:focus,
.contact-form-column textarea:focus,
.contact-form-column select:focus {
    border-color: #0055aa;
    outline: none;
}

/* Submit Button */
.contact-form-column button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #ff9800; /* Orange primary button color */
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.contact-form-column button[type="submit"]:hover {
    background-color: #e68900;
}


/* Right Column: Contact Detail Cards */
.contact-details-column {
    flex: 1; /* Takes up 1/3 of the space */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent; /* Accent line placeholder */
}

.contact-detail-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #003366;
    display: flex;
    align-items: center;
}

.contact-detail-card h4 .icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.contact-detail-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 5px 0;
}

.contact-detail-card strong {
    color: #0055aa;
    font-size: 1.05rem;
    display: block;
    margin-top: 5px;
}

.contact-detail-card a {
    color: #0055aa;
    text-decoration: none;
}

/* Accent Colors for Detail Cards */
.phone-card { border-left-color: #28a745; }
.phone-card h4 { color: #28a745; }

.email-card { border-left-color: #0055aa; }
.email-card h4 { color: #0055aa; }

.office-card { border-left-color: #ffcc00; }
.office-card h4 { color: #ffcc00; }

.hours-card { border-left-color: #dc3545; }
.hours-card h4 { color: #dc3545; }

/* -------------------- Emergency Dispatch CTA (Black Box) -------------------- */
.emergency-cta-box {
    background-color: #1a1a1a;
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.emergency-cta-box h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.emergency-cta-box p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.emergency-cta-box .call-button {
    display: block;
    padding: 12px;
    background-color: #ff9800;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.emergency-cta-box .call-button:hover {
    background-color: #e68900;
}


/* -------------------- Responsive Adjustments -------------------- */
@media (max-width: 992px) {
    .contact-grid-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .contact-form-column {
        flex: auto;
    }
    .contact-details-column {
        flex: auto;
        /* Keep contact cards full width */
    }
}

@media (max-width: 576px) {
    .contact-hero-banner h2 {
        font-size: 2rem;
    }

    .contact-hero-banner p {
        font-size: 1rem;

    }
    .form-input-row {
        flex-direction: column;
        gap: 0;
    }
}