/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
}

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    z-index: 0;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Special font color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

/* General Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Important for responsive buttons */
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-contact__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-contact__methods-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-contact__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Ensure text is white on dark card background */
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #005f2e;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #017439; /* Brand primary color for form section */
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFF00;
    background-color: rgba(0, 0, 0, 0.5);
    outline: none;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #FFFF00;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__faq-heading {
    font-size: 1.25em;
    margin: 0;
    color: #FFFF00;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus if using minus sign) */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 30px;
}

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

.page-contact__faq-link {
    color: #FFFF00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
    color: #ffffff;
}

/* Location Section */
.page-contact__location-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__location-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.page-contact__address-info {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__sub-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-contact__address-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-contact__map {
    flex: 2;
    min-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

/* Why Contact Section */
.page-contact__why-contact-section {
    background-color: #017439;
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-contact__why-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-contact__why-heading {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-contact__why-item p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 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;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__card {
        padding: 20px;
    }
    .page-contact__card-title {
        font-size: 1.5em;
    }

    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 1em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }

    .page-contact__location-details {
        flex-direction: column;
        gap: 30px;
    }
    .page-contact__address-info,
    .page-contact__map {
        min-width: unset;
        width: 100%;
    }

    .page-contact__why-list {
        grid-template-columns: 1fr;
    }

    /* Mobile image and video responsive adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images/videos/buttons */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Ensure minimum image size in content areas */
.page-contact__card-image,
.page-contact__map-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Color contrast enforcement for dark body background */
.page-contact {
  color: #ffffff; /* Default text color for the page content */
}

.page-contact__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-contact__light-bg {
  background: #ffffff;
  color: #333333; /* Light background with dark text */
}

.page-contact__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark body background */
  color: #ffffff;
}

.page-contact__form-section .page-contact__section-description {
    color: #f0f0f0; /* Ensure light text on brand primary background */
}

.page-contact__faq-answer {
    color: #f0f0f0; /* Ensure light text on dark background */
}
.page-contact__address-info p {
    color: #f0f0f0;
}
.page-contact__why-item p {
    color: #f0f0f0;
}