/* css/contactStyle.css */

/* --- CSS Variable for Primary Color (fallback if not set by JS) --- */
:root {
    --primary-color: #00796b; /* Default primary color from original data.json */
    --primary-hover-color: #005f56; /* Darker shade for hover */
    --primary-color-rgb: 0, 121, 107; /* RGB version for rgba() */
    --text-headings: #2c3e50; /* Consistent heading color */
    --text-body: #333333; /* Consistent body text color */
    --text-on-primary: #FFFFFF; /* Text color for use on primary-color backgrounds */
    --accent-on-primary: #A7FFEB; /* Accent color for use on primary-color backgrounds */
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
}

.contact-page-main {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.contact-layout-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    /* MODIFIED: Changed background to a neutral or transparent one */
    background-color: #f8f9fa; /* Light grey background for the overall container */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUpSection 0.7s 0.2s ease-out forwards;
}

/* Left Column: Informational Text */
.contact-info-panel {
    flex: 1;
    padding: 3rem;
    /* MODIFIED: Background color set to primary color */
    background-color: var(--primary-color);
    color: var(--text-on-primary); /* Use text color suitable for primary background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeInUpSection 0.7s 0.4s ease-out forwards;
}

.contact-info-panel .page-accent-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-on-primary); /* Accent color for primary background */
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUpSection 0.6s 0.6s ease-out forwards;
}

.contact-info-panel .main-heading {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-on-primary); /* Text color for primary background */
    opacity: 0;
    animation: slideDownFadeInPageTitle 0.8s 0.8s ease-out forwards;
}

.contact-info-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-on-primary); /* Text color for primary background, slightly less emphasis */
    opacity: 0.9; /* Slight opacity for differentiation */
    margin-bottom: 2.5rem;
    animation: fadeInUpSection 0.6s 1.0s ease-out forwards;
}


.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    animation: fadeInUpSection 0.5s ease-out forwards;
}
.contact-details-list li:nth-child(1) { animation-delay: 1.2s; }
.contact-details-list li:nth-child(2) { animation-delay: 1.3s; }
.contact-details-list li:nth-child(3) { animation-delay: 1.4s; }


.contact-details-list li i {
    color: var(--accent-on-primary); /* Accent color for icons on primary background */
    font-size: 1.1rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details-list li a,
.contact-details-list li .address-link {
    color: var(--text-on-primary); /* Link color on primary background */
    text-decoration: none;
    transition: color var(--transition-speed, 0.3s) ease, transform var(--transition-speed-fast, 0.2s) ease;
    position: relative;
    padding-bottom: 3px;
    display: inline-block;
    vertical-align: baseline;
}

.contact-details-list li a::after,
.contact-details-list li .address-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-on-primary); /* Underline color on primary background */
    transform-origin: bottom right;
    transition: transform var(--transition-speed, 0.3s) ease-out;
}

.contact-details-list li a:hover,
.contact-details-list li .address-link:hover {
    color: var(--accent-on-primary); /* Hover color for links */
    transform: translateY(-2px);
}

.contact-details-list li a:hover::after,
.contact-details-list li .address-link:hover::after {
     transform: scaleX(1);
     transform-origin: bottom left;
}


.contact-social-icons {
    display: flex;
    gap: 1.25rem;
    opacity: 0;
    animation: fadeInUpSection 0.6s 1.5s ease-out forwards;
}

.contact-social-icons a {
    color: var(--accent-on-primary); /* Social icon color on primary background */
    opacity: 0.8; /* Slightly less emphasis */
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.contact-social-icons a:hover {
    color: var(--text-on-primary); /* Brighter on hover */
    opacity: 1;
    transform: scale(1.15);
}

/* Right Column: Form */
.contact-form-panel {
    flex: 1.2;
    background-color: #FFFFFF; /* Keep form panel white */
    color: var(--text-body);
    padding: 3rem;
    opacity: 0;
    animation: fadeInUpSection 0.7s 0.5s ease-out forwards;
}
.contact-form-panel .interest-options,
.contact-form-panel .form-group,
.contact-form-panel .form-button-group {
    opacity: 0;
    animation: fadeInUpSection 0.6s ease-out forwards;
}
.contact-form-panel .interest-options { animation-delay: 0.7s; }
.contact-form-panel .form-group:nth-of-type(1) { animation-delay: 0.8s; }
.contact-form-panel .form-group:nth-of-type(2) { animation-delay: 0.9s; }
.contact-form-panel .form-group:nth-of-type(3) { animation-delay: 1.0s; }
.contact-form-panel .form-button-group { animation-delay: 1.1s; }


.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #4A5568;
    text-transform: capitalize;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #F7FAFC;
}
.form-control::placeholder {
    color: #A0AEC0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
    background-color: #FFFFFF;
}

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

.interest-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.interest-options .option {
    background-color: #EDF2F7;
    color: #4A5568;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: default;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.interest-options .option.selected {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.form-button-group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-submit-form,
.btn-secondary-action {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-submit-form {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-submit-form:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary-action {
    background-color: #E2E8F0;
    color: var(--text-headings);
    border: 1px solid #CBD5E0;
}

.btn-secondary-action:hover {
    background-color: #CBD5E0;
    color: var(--text-headings);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}


/* Map Section Styles */
.map-section-container {
    max-width: 1100px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUpSection 0.7s 1.2s ease-out forwards;
}

.map-section-container h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: transparent;
    border: none;
    box-shadow: none;
    opacity: 0;
    animation: slideDownFadeInPageTitle 0.8s 1.4s ease-out forwards;
}

.map-section-container h2 .location-icon {
    display: none;
}

.map-section-container h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    bottom: 0;
    left: 15%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover-color));
    border-radius: 2px;
    transform: scaleX(0.3);
    opacity: 0.7;
    transform-origin: center;
    animation: subtlePulseUnderline 2.5s infinite ease-in-out;
    animation-delay: 2.2s;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.map-section-container h2:hover::after {
    transform: scaleX(1);
    opacity: 1;
    animation: none;
}

@keyframes subtlePulseUnderline { 0% { transform: scaleX(0.3); opacity: 0.6; } 50% { transform: scaleX(0.5); opacity: 0.9; } 100% { transform: scaleX(0.3); opacity: 0.6; } }

.map-responsive-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 40%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    opacity: 0;
    animation: fadeInUpSection 0.7s 1.6s ease-out forwards;
}

.map-responsive-wrapper:hover {
    transform: scale(1.015);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Keyframe Animations */
@keyframes slideDownFadeInPageTitle {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUpSection {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-layout-container { flex-direction: column; width: 90%; max-width: 600px; margin-bottom: 2rem; }
    .contact-info-panel, .contact-form-panel { flex: none; padding: 2rem; }
    .contact-info-panel .main-heading { font-size: 1.8rem; }
    .map-section-container h2 { font-size: 1.8rem; padding-bottom: 0.4rem; }
    .map-section-container h2::after { height: 2.5px; }
    .map-responsive-wrapper { padding-top: 50%; }
}

@media (max-width: 768px) {
    .contact-page-main { padding: 2rem 0.5rem; }
    .contact-layout-container { width: 95%; }
    .contact-info-panel .main-heading { font-size: 1.6rem; }
    .contact-info-panel .page-accent-title { font-size: 1.3rem; }
    .contact-details-list li { font-size: 0.9rem; }
    .form-control { padding: 0.6rem 0.8rem; font-size: 0.85rem; }
    textarea.form-control { min-height: 90px; }
    .btn-submit-form, .btn-secondary-action { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .map-section-container h2 { font-size: 1.6rem; letter-spacing: 0.25px; }
    .map-section-container h2::after { height: 2px; }
    .map-responsive-wrapper { padding-top: 60%; }
}
