/* style/contact.css */

/* --- General Styles for page-contact --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: #017439; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

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

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* --- CTA Buttons (Hero and general) --- */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

.page-contact__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Contact Info Section --- */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-contact__info-section .page-contact__section-title {
    color: #017439; /* Brand color for title on light background */
}

.page-contact__info-section .page-contact__section-description {
    color: #555555;
}

.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: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.page-contact__method-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
}

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

.page-contact__social-icon-link img {
    
    
    border-radius: 50%;
    transition: transform 0.3s ease;
    /* min-width/height are removed here as they are for the source image, not display */
}

.page-contact__social-icon-link img:hover {
    transform: scale(1.1);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background for contrast with light section */
    color: #ffffff;
}

.page-contact__form-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__form-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
    border-radius: 10px;
    box-shadow: 0 5px 20px 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: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    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: #017439;
    background-color: rgba(0, 0, 0, 0.5);
    outline: none;
}

.page-contact__submit-button {
    width: auto; /* Override max-width 100% for form submit */
    padding: 15px 40px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-contact__faq-section .page-contact__section-title {
    color: #017439;
}

.page-contact__faq-section .page-contact__section-description {
    color: #555555;
}

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

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-contact__faq-item summary:hover {
    background-color: #e6e6e6;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

.page-contact__faq-answer p {
    margin-bottom: 1em;
}

.page-contact__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-contact__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* --- CTA Banner --- */
.page-contact__cta-banner {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.page-contact__large-button {
    padding: 18px 45px;
    font-size: 1.3em;
}

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

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

    .page-contact__container {
        padding: 0 15px !important; /* Mobile padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-contact__hero-section {
        padding: 60px 0;
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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__hero-image,
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover;
    }

    .page-contact__social-icon-link img {
         /* Adjust social icon size for mobile */
        
    }

    .page-contact__method-card {
        padding: 25px;
    }

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

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }

    .page-contact__submit-button {
        width: 100%;
    }

    .page-contact__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

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

    .page-contact__large-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

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

/* Ensure content area images don't go below 200px (source image size, not display) */
.page-contact img:not(.page-contact__social-icon-link img) {
    /* This rule is for ensuring the *source* image is large enough, not for forcing display size */
    /* Display size is controlled by width/height attributes and max-width: 100%; height: auto; */
}

/* Color contrast enforcement based on body background (var(--dark-bg-1) implies dark) */
.page-contact {
    color: #ffffff; /* Light text for dark body background */
}

.page-contact__dark-bg {
    color: #ffffff;
}

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

.page-contact__card {
    background: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for white cards */
    border: 1px solid #e0e0e0;
}

.page-contact__btn-primary {
    background: #C30808;
    color: #FFFF00; /* Custom color for register/login button text */
    border: 2px solid transparent;
}

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

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

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