/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--deep-navy) */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-contact__dark-bg {
    background-color: #113B7A; /* Main brand color for dark sections */
    color: #F3F8FF;
}

.page-contact__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
}

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF;
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #113B7A;
    border-color: #113B7A;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1D5FD1;
    border-color: #1D5FD1;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-contact__image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(36px, 5vw, 60px); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold color for main title */
    line-height: 1.1;
}

.page-contact__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: #AFC4E8;
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

.page-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__info-card {
    background-color: #10233F; /* Card BG color */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84;
    color: #F3F8FF;
}

.page-contact__info-card .page-contact__card-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #F2C14E;
}

.page-contact__info-card .page-contact__card-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #AFC4E8;
}

.page-contact__info-link {
    display: block;
    color: #4FA8FF; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease;
}

.page-contact__info-link:hover {
    color: #1D5FD1;
}

.page-contact__info-address {
    font-style: normal;
    font-size: 16px;
    color: #AFC4E8;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 40px;
    background-color: #10233F; /* Card BG color */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84;
}

.page-contact__form-group {
    margin-bottom: 25px;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #F3F8FF;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #244D84;
    background-color: #08162B; /* Deep Navy for input background */
    color: #F3F8FF;
    font-size: 16px;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #AFC4E8;
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #1D5FD1;
    box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin-top: 20px;
    padding: 14px 30px;
    font-size: 18px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-contact__faq-item {
    background-color: #10233F; /* Card BG color */
    border: 1px solid #244D84;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F3F8FF;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #F2C14E; /* Gold color for question */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #1B3357; /* Divider color for open FAQ */
}

.page-contact__faq-question:hover {
    background-color: #1B3357;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    color: inherit;
}

.page-contact__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #F3F8FF;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: #AFC4E8;
    line-height: 1.7;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
}

.page-contact__faq-answer .page-contact__btn-secondary {
    margin-top: 10px;
}

/* Social Section */
.page-contact__social-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.page-contact__social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84;
}

.page-contact__social-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.page-contact__social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        padding: 10px 0 40px 0; /* Small top padding, body handles header offset */
    }

    .page-contact__hero-image {
        max-height: 300px !important; /* Adjust max-height for mobile hero */
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__main-title {
        font-size: clamp(30px, 8vw, 40px);
    }

    .page-contact__intro-text {
        font-size: 16px;
    }

    .page-contact__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-section {
        padding: 40px 0;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__info-card,
    .page-contact__contact-form {
        padding: 25px;
    }

    .page-contact__form-group {
        margin-bottom: 20px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 16px;
        box-sizing: border-box !important;
    }
    
    .page-contact__contact-form .page-contact__btn-primary {
        width: 100% !important;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }

    .page-contact__social-links {
        gap: 15px;
    }

    .page-contact__social-icon {
        width: 50px;
        height: 50px;
    }

    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images or buttons */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__image-wrapper,
    .page-contact__info-card,
    .page-contact__contact-form,
    .page-contact__faq-item,
    .page-contact__social-icon {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* WCAG AA contrast for light background sections */
.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__card-title,
.page-contact__light-bg .page-contact__card-text,
.page-contact__light-bg p,
.page-contact__light-bg li {
    color: #333333; /* Deep dark grey for light backgrounds */
}

.page-contact__light-bg .page-contact__info-link {
    color: #113B7A; /* Main color for links on light background */
}

.page-contact__light-bg .page-contact__info-link:hover {
    color: #1D5FD1;
}

.page-contact__light-bg .page-contact__faq-question {
    color: #113B7A; /* Main color for FAQ question on light background */
}

.page-contact__light-bg .page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #f5f5f5;
}

.page-contact__light-bg .page-contact__faq-answer {
    color: #555555;
}

.page-contact__light-bg .page-contact__faq-toggle {
    color: #333333;
}

.page-contact__light-bg .page-contact__btn-secondary {
    background-color: #113B7A;
    color: #F3F8FF;
    border-color: #113B7A;
}

.page-contact__light-bg .page-contact__btn-secondary:hover {
    background-color: #1D5FD1;
    border-color: #1D5FD1;
}

/* Specific contrast fixes if needed */
.page-contact__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}