/* css/contact.css */

/* --- Contact Details & Form Section --- */
.contact-details-form h2 { /* Section sub-headings on this page */
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: calc(var(--spacing-unit) * 3);
}

.contact-info-column h3 {
    font-size: 1.3rem;
    color: var(--primary-teal);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    display: flex;
    align-items: center;
}
.contact-info-column h3 i {
    margin-right: var(--spacing-unit);
    font-size: 1.2em; 
}

.office-location {
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 0.5);
    border-left: 3px solid var(--primary-teal);
}
.office-location p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1rem;
    line-height: 1.6;
}
.office-location p i {
    width: 20px; 
    margin-right: 8px;
    color: var(--neutral-dark-gray);
}
/* .map-link styles removed as maps are not currently implemented */

.contact-info-column p strong { /* For "General Inquiries:", "Sales:" etc. */
    color: var(--primary-blue);
}

.contact-social-links a {
    display: inline-flex; 
    align-items: center;
    margin-right: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--primary-blue);
    font-weight: 600;
}
.contact-social-links a:hover {
    color: var(--primary-teal);
}
.contact-social-links i {
    font-size: 1.5rem;
    margin-right: 8px;
}


/* Contact Form Styling */
.contact-form-column p { 
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

#contact-us-form .form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}
#contact-us-form label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.35);
    font-weight: 600;
    color: var(--primary-blue);
}
#contact-us-form label .required {
    color: var(--accent-teal); 
    font-weight: normal;
}
#contact-us-form input[type="text"],
#contact-us-form input[type="email"],
#contact-us-form input[type="tel"],
#contact-us-form select,
#contact-us-form textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.75);
    border: 1px solid var(--neutral-medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
#contact-us-form input[type="text"]:focus,
#contact-us-form input[type="email"]:focus,
#contact-us-form input[type="tel"]:focus,
#contact-us-form select:focus,
#contact-us-form textarea:focus {
    border-color: var(--primary-teal);
    /* outline: none; -- Handled by global accessibility focus style */
    box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.2); 
}
#contact-us-form textarea {
    resize: vertical; 
    min-height: 120px;
}
#contact-us-form select {
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003366'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat;
    background-position: right calc(var(--spacing-unit) * 0.75) center;
    background-size: 1.2em;
    padding-right: calc(var(--spacing-unit) * 2.5); 
}

.form-group-checkbox {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    display: flex;
    align-items: flex-start; 
}
.form-group-checkbox input[type="checkbox"] {
    margin-right: calc(var(--spacing-unit) * 0.5);
    margin-top: 4px; 
    width: auto; 
    accent-color: var(--primary-teal);
}
.form-group-checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--neutral-dark-gray);
}
.form-group-checkbox label a { 
    text-decoration: underline;
    color: var(--primary-teal); 
}
.form-group-checkbox label a:hover {
    color: var(--accent-teal);
}

#contact-us-form button[type="submit"] {
    width: 100%; 
}


/* Map Section Styles - Retained if maps are added back later */
.map-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
}
.map-placeholder {
    background-color: var(--neutral-white);
    border: 1px dashed var(--neutral-medium-gray);
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    text-align: center;
    color: var(--neutral-dark-gray);
    min-height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}
.map-placeholder i {
    color: var(--primary-teal);
    margin-bottom: var(--spacing-unit);
}

/* Schedule Consultation CTA - Uses global .final-cta or .schedule-consultation-cta if defined globally */


/* --- Responsive Adjustments for Contact Page --- */
@media (min-width: 768px) { 
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; 
    }
    .map-grid { /* If maps are re-added */
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .contact-info-column h2, .contact-form-column h2 { /* Center section titles on mobile */
        text-align: center;
    }
}

/* --- Privacy Policy Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex; 
    align-items: center;
    justify-content: center;
    z-index: 2000; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay[style*="display: flex"] { 
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--neutral-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 700px; 
    max-height: 80vh; 
    overflow-y: auto; 
    position: relative; 
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay[style*="display: flex"] .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 1px solid var(--neutral-medium-gray);
}

.modal-close {
    position: absolute;
    top: calc(var(--spacing-unit) * 1);
    right: calc(var(--spacing-unit) * 1.5);
    font-size: 2rem;
    font-weight: bold;
    color: var(--neutral-dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close:hover {
    color: var(--primary-teal);
}

.modal-body {
    font-size: 0.95rem;
    line-height: 1.7;
}
.modal-body p {
    margin-bottom: var(--spacing-unit);
}
.modal-body ul {
    list-style: disc;
    margin-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}
.modal-body ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}

.modal-understand-btn {
    display: block;
    margin: calc(var(--spacing-unit) * 1.5) auto 0 auto;
}

#privacy-policy-link { /* Already styled this way above, but explicit here */
    color: var(--primary-teal);
    text-decoration: underline;
    cursor: pointer;
}
#privacy-policy-link:hover {
    color: var(--accent-teal);
}

#footer-privacy-link { 
    cursor: pointer; 
}