/* style/contact.css */

/* --- General Styles & Reset --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%; /* Ensure container fills width */
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* --- CTA Button --- */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

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

.page-contact__btn-primary:hover {
    background-color: #e00b0b;
    transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-contact__btn-social {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin: 5px;
}

.page-contact__btn-social:hover {
    background-color: #005a2e;
}


/* --- Section Styling --- */
.page-contact__info-section,
.page-contact__channels-section,
.page-contact__guide-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 60px 0;
}

.page-contact__dark-bg {
    background-color: #121212; /* Body background color */
    color: #ffffff; /* Light text for dark background */
}

.page-contact__light-bg {
    background-color: #f0f0f0; /* Light background for contrast sections */
    color: #333333; /* Dark text for light background */
}

.page-contact__dark-text {
    color: #333333; /* For text on light backgrounds */
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent section */
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from parent section */
}

/* --- Info Section --- */
.page-contact__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-contact__text-block {
    flex: 1;
    min-width: 300px;
    color: #ffffff; /* Text on dark background */
}

.page-contact__text-block p {
    margin-bottom: 15px;
}

.page-contact__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-contact__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Channels Section --- */
.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-contact__channel-card {
    background-color: #ffffff; /* White card for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text on white card */
}

.page-contact__channel-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for titles */
}

.page-contact__channel-text {
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-link {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-link:hover {
    text-decoration: underline;
}

.page-contact__social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* --- Guide Section --- */
.page-contact__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-contact__step-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

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

.page-contact__step-text {
    font-size: 0.95em;
}

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

.page-contact__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Dark text for FAQ items */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: #ffffff;
    color: #017439; /* Brand primary color for question */
    border-bottom: 1px solid #e0e0e0;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9; /* Slightly off-white for answer background */
    color: #333333;
}

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

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

/* --- Commitment Section --- */
.page-contact__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-contact__commitment-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-contact__commitment-text {
    font-size: 0.95em;
}

.page-contact__final-cta {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__final-cta-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__content-wrapper {
        flex-direction: column;
    }
    .page-contact__image-block {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__info-section,
    .page-contact__channels-section,
    .page-contact__guide-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__image-block,
    .page-contact__channel-icon,
    .page-contact__commitment-icon {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .page-contact__cta-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;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-contact__social-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .page-contact__social-buttons .page-contact__channel-button {
        margin: 5px 0 !important;
    }

    /* Ensure containers don't overflow */
    .page-contact__container,
    .page-contact__content-wrapper,
    .page-contact__channels-grid,
    .page-contact__guide-steps,
    .page-contact__faq-list,
    .page-contact__commitment-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* FAQ specific mobile adjustments */
    .page-contact__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px;
    }
}

/* Ensure all links on light background are visible */
.page-contact__light-bg a {
    color: #017439; /* Brand primary color */
}
.page-contact__light-bg a:hover {
    text-decoration: underline;
}

/* Ensure all links on dark background are visible */
.page-contact__dark-bg a {
    color: #ffffff;
}
.page-contact__dark-bg a:hover {
    text-decoration: underline;
}

/* Contrast Fixes (if needed, though design aims for good contrast) */
.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;
}