.color-white { color: #ffffff !important; }
.text-muted-fine { font-size: var(--fs-xs); color: var(--text-muted); text-transform: lowercase; }

/* --- 1. Custom Contact Page Hero Elements --- */
.hero.secondary-hero.contact-page-hero {
    min-height: 45vh;
    min-height: 45svh;
}

.hero-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.hero-intro-text {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: var(--space-4) 0 var(--space-5) 0;
    max-width: 640px;
}

/* --- 2. Contact Channels Matrix --- */
.contact-channels-section {
    padding: var(--space-7) var(--space-4);
    background-color: var(--background);
    width: 100%;
}

.communication-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: var(--container);
    margin: 0 auto;
}

.channel-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.channel-card:hover {
    transform: var(--hover);
    box-shadow: var(--shadow-md);
}

.channel-icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-pill);
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.channel-title {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 var(--space-1) 0;
}

.channel-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 var(--space-3) 0;
}

.channel-link {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: var(--space-4);
    transition: color var(--transition);
}

.channel-link:hover {
    color: var(--text);
    text-decoration: underline;
}

.channel-purposes-list {
    list-style: none;
    padding: var(--space-3) 0 0 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.channel-purposes-list li {
    font-size: var(--fs-sm);
    color: var(--text-light);
    font-weight: 500;
}

/* --- 3. Google Map Section --- */
.contact-location-map-section {
    padding: var(--space-7) var(--space-4);
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.map-layout-grid-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: var(--container);
    margin: var(--space-5) auto 0 auto;
}

.map-iframe-canvas {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.map-iframe-canvas iframe {
    width: 100%;
    height: 100%;
}

.map-text-regions-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.region-meta-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.region-meta-label {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

.region-meta-value {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

/* --- 4. Contact Form Section --- */
.contact-shorter-form-section {
    padding: var(--space-7) var(--space-4);
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
}

.narrow-form-box {
    max-width: 600px;
    margin: 0 auto;
}

.form-main-heading {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.01em;
}

.form-subheading-desc {
    font-size: var(--fs-base);
    color: var(--text-light);
    margin: 0 0 var(--space-6) 0;
    line-height: 1.5;
}

.contact-quick-message-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-submit-btn-override {
    width: 100%;
    padding: var(--space-4) var(--space-6);
}

/* --- 5. Closing Contact CTA Section --- */
.contact-page-cta {
    padding: var(--space-8) var(--space-4);
    background-color: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

.contact-page-cta .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-quick-message-form .form-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
}

/* Label text properties */
.contact-quick-message-form .field-label {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin: 0;
}

/* Required red star indicator */
.contact-quick-message-form .required-star {
    color: var(--error);
}

/* Base text inputs and textarea block look and feel */
.contact-quick-message-form .form-text-input,
.contact-quick-message-form .form-textarea-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--text);
    background-color: var(--surface); /* Clean white background interior */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Focus indicator states */
.contact-quick-message-form .form-text-input:focus,
.contact-quick-message-form .form-textarea-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 148, 134, 0.15); /* Soft signature sage glow */
}

/* Specific text area tuning */
.contact-quick-message-form .form-textarea-control {
    resize: none;
    line-height: 1.5;
}

/* Spacing fixes */
.margin-top-sm {
    margin-top: var(--space-4);
}
.margin-top-md {
    margin-top: var(--space-5);
}

/* ==========================================================================
   DESKTOP MEDIA RESPONSIVE SCALE UP (Desktop Breakpoint Overrides)
   ========================================================================== */

@media (min-width: 768px) {
    .contact-channels-section, .contact-location-map-section, .contact-shorter-form-section {
        padding: var(--section-pad) var(--space-5);
    }

    /* Flat Linear 4-Column Layout Grid for Cards */
    .communication-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    /* Split Sidebar Row Layout for Map Elements */
    .map-layout-grid-block {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-6);
    }

    .map-iframe-canvas {
        flex: 1.4;
        aspect-ratio: auto;
    }

    .map-text-regions-sidebar {
        flex: 1;
        justify-content: center;
        padding: var(--space-6);
    }

    /* Multi-Column Inline Inputs inside Message Form */
    .form-fields-grid-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .contact-quick-message-form {
        padding: var(--space-6);
        gap: var(--space-5);
    }

    .contact-submit-btn-override {
        width: auto;
        min-width: 220px;
    }
}

@media (min-width: 1024px) {
    /* Full 4-Column Horizon Row Alignment on Full Monitors */
    .communication-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }

    .channel-card {
        padding: var(--space-6) var(--space-4);
    }
}