/* style/contact.css */

/* Variables from shared.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-register-login: #FFFF00; /* This variable is explicitly defined but its usage for text color on red buttons is overridden by contrast requirements. */
    --body-bg: var(--secondary-color); /* Assuming body background is light */
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--body-bg); /* Use body background from shared */
}

/* HERO Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Example background for hero section */
    color: var(--text-color-light);
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-contact__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__intro-text {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register); /* Using register button color for main CTA */
    color: var(--text-color-light); /* Enforce white text for contrast on red button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px; /* Adjusted margin */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box; /* Ensure responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #a80707; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-contact__section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__section-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-contact__section-description {
    font-size: clamp(16px, 1.5vw, 18px);
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-color-dark);
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure full width for flex item */
}

/* Contact Methods Grid */
.page-contact__contact-methods {
    background-color: var(--secondary-color);
}

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

.page-contact__method-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
    width: 100%; /* Ensure responsive */
    height: auto;
    max-width: 200px; /* Limit icon size */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
}

.page-contact__method-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-contact__method-text {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box; /* Ensure responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__method-button:hover {
    background: #005a2e; /* Darker green on hover */
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #f9f9f9;
}

.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: #f5f5f5;
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-color-dark);
}
.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}
.page-contact__faq-answer p {
    margin: 0;
}

/* Office Info Section */
.page-contact__office-info {
    background-color: var(--secondary-color);
}

.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: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__info-icon {
    width: 100%; /* Ensure responsive */
    height: auto;
    max-width: 200px; /* Limit icon size */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
}

.page-contact__info-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-contact__info-text {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

.page-contact__map-embed {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Call to Action Bottom */
.page-contact__cta-bottom {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-contact__cta-bottom .page-contact__section-title,
.page-contact__cta-bottom .page-contact__section-description {
    color: var(--text-color-light); /* Override default section title/desc color */
}

.page-contact__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 40px;
    border-radius: 10px;
}

.page-contact__light-text {
    color: var(--text-color-light);
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure responsive */
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box; /* Ensure responsive */
    overflow: hidden; /* Ensure responsive */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box; /* Ensure responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: var(--button-register); /* Red button */
    color: var(--text-color-light); /* Enforce white text for contrast on red button */
    border-color: var(--button-register);
}

.page-contact__btn-primary:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background: var(--secondary-color); /* White button */
    color: var(--primary-color); /* Green text */
    border-color: var(--primary-color);
}

.page-contact__btn-secondary:hover {
    background: #e0e0e0;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-contact__section {
        padding: 40px 15px;
    }
    .page-contact__main-title {
        font-size: clamp(24px, 4vw, 40px);
    }
    .page-contact__intro-text {
        font-size: clamp(15px, 2vw, 18px);
    }
    .page-contact__section-title {
        font-size: clamp(22px, 3vw, 32px);
    }
    .page-contact__section-description {
        font-size: clamp(15px, 1.5vw, 16px);
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }
    .page-contact__section {
        padding: 30px 15px;
    }
    .page-contact__main-title {
        font-size: 28px;
    }
    .page-contact__intro-text {
        font-size: 16px;
    }
    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-contact__methods-grid,
    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__method-card,
    .page-contact__info-card {
        padding: 25px;
    }
    .page-contact__method-title,
    .page-contact__info-title {
        font-size: 20px;
    }
    .page-contact__method-text,
    .page-contact__info-text {
        font-size: 15px;
    }
    .page-contact__faq-qtext {
        font-size: 15px;
    }
    .page-contact__map-embed iframe {
        height: 300px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure all links have appropriate colors */
.page-contact a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-contact a:hover {
    text-decoration: underline;
}

.page-contact__dark-bg a {
    color: var(--text-color-light); /* Links in dark sections */
}
.page-contact__dark-bg a:hover {
    text-decoration: underline;
}