/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-contact__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-contact__hero-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__hero-button:hover {
    background-color: #a00606;
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2; /* Slightly transparent to blend with background */
    z-index: 0;
}

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

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.2em;
    color: #ffffff; /* Light text for dark body background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter than white for descriptions */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Info Section (Contact Methods) */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background from body */
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__method-icon {
    width: 100%; /* Ensure responsiveness within parent */
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__method-text {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-contact__method-link,
.page-contact__method-button {
    display: inline-block;
    color: #FFFF00; /* Yellow for links/buttons */
    background-color: #017439; /* Brand primary color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
}

.page-contact__method-link:hover,
.page-contact__method-button:hover {
    background-color: #005a2e;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background from body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    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: #cccccc;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__form-submit-button {
    display: block;
    width: 100%;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__form-submit-button:hover {
    background-color: #a00606;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background from body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

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

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

.page-contact__faq-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
    color: #017439; /* Brand primary color on hover */
}

/* Call to Action Section */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a2e; /* Dark background from body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__cta-section .page-contact__container.page-contact__dark-bg {
    background-color: #017439; /* Brand primary color */
    padding: 50px 30px;
    border-radius: 12px;
    color: #ffffff;
}

.page-contact__cta-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.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;
    border: 2px solid transparent;
}

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

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

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border-color: #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

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

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size on mobile */
        min-height: 200px !important;
    }
    
    /* Mobile video responsiveness - no video in this page, but keeping the rule for completeness */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-contact__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .page-contact__hero-button,
    .page-contact__method-button,
    .page-contact__form-submit-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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__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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__cta-buttons {
        flex-direction: column !important;
    }

    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px);
    }

    .page-contact__hero-title {
        font-size: 2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__section-description {
        font-size: 0.95em;
    }

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

    .page-contact__contact-form {
        padding: 30px 20px;
    }

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

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

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }

    .page-contact__cta-section .page-contact__container.page-contact__dark-bg {
        padding: 40px 20px;
    }

    .page-contact__cta-title {
        font-size: 2em;
    }

    .page-contact__cta-description {
        font-size: 1em;
    }

    .page-contact__container {
        padding: 0 15px !important; /* Adjust padding for smaller screens */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Ensure specific containers have correct mobile padding */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}

/* Ensure no filter is used on images */
.page-contact img {
    filter: none !important;
}

/* Global rule for content area images to ensure minimum size */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* or contain, depending on context */
}

/* Ensure no specific CSS rule makes images smaller than 200px in content area */
.page-contact__hero-section img,
.page-contact__info-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
    width: auto; /* Reset to allow max-width/min-width to take effect */
    height: auto; /* Reset to allow max-width/min-height to take effect */
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}