/* --- contact.css --- */

/* --- Contact Page Hero Specifics --- */
.page-hero.contact-hero {
    background: linear-gradient(135deg, #EBF4FF 0%, #D0E0FF 100%);
}
.page-hero.contact-hero h1 {
    color: var(--primary-blue);
}
.page-hero.contact-hero .subhead {
    color: var(--medium-gray);
}
.page-hero.contact-hero::before {
    background-image: url('https://via.placeholder.com/200/0A74DA/FFFFFF?text=ConnectIcon'); /* Replace */
    bottom: 15%;
    right: 10%;
    transform: rotate(15deg);
}
/* Shape divider fill is handled by common.css default if white background below */


/* --- Contact Details & Form Section --- */
.contact-details-form {
    background-color: var(--very-light-gray-bg);
}
.contact-flex-container { /* This is the flex container for info and form */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch; /* Make cards same height */
}

/* Contact Info Card Styling */
.contact-info { /* This is a flex item */
    flex: 1;
    min-width: 320px;
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.contact-info h2 { /* Overrides general H2 */
    text-align: left;
    margin-bottom: 1em;
    color: var(--primary-blue);
}
.contact-info p {
    margin-bottom: 30px;
    font-size: 1.02rem;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-blue);
}
.contact-text {
    display: flex;
    flex-direction: column;
}
.contact-text strong {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-text a,
.contact-text span {
    color: var(--medium-gray);
    font-size: 1.05rem;
    line-height: 1.5;
}
.contact-text a[href^="mailto:"] { /* Specific for email links */
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.contact-text a:hover {
    color: var(--primary-blue);
}

.map-placeholder {
    margin-top: auto; /* Pushes map to bottom of flex column */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 300px; /* Fixed height for map container */
    width: 100%;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form Card Styling */
.contact-form-container { /* This is a flex item */
    flex: 1.5;
    min-width: 320px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.contact-form-container h2 { /* Overrides general H2 */
    text-align: left;
    margin-bottom: 1.2em;
    color: var(--primary-blue);
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--medium-gray);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.2);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 100%;
    font-size: 1.1rem;
    /* Padding inherits from .cta-button in common.css */
}
.contact-form .cta-button:hover { background-color: var(--primary-blue-darker); }


/* --- Responsive Adjustments for Contact Page Specific Elements --- */
@media (max-width: 991px) {
    .page-hero.contact-hero h1 { font-size: 2.6rem; }
}
@media (max-width: 767px) {
    .page-hero.contact-hero h1 { font-size: 2.2rem; }
    .page-hero.contact-hero .subhead { font-size: 1.05rem; }

    /* .contact-flex-container and its children stacking handled by common.css */

    .contact-info, .contact-form-container {
         padding: 30px; /* Adjust padding for mobile cards */
    }
    /* .contact-info h2, .contact-form-container h2 text-align:center handled by common.css */


    .contact-info-list li { font-size: 0.95rem; }
    .contact-text strong { font-size: 0.85rem; }
    .contact-text a, .contact-text span { font-size: 1rem; }

    .contact-form .cta-button { width: auto; /* Or 100% if preferred */ }
}