/* style/contact.css */

/* Base Styles & Global Resets (scoped) */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure page background matches body if shared.css sets it */
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

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

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-contact__cta-button {
    margin-top: 20px;
}

/* Color Contrast Handling */
.page-contact__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__card-title {
    color: #333333;
}

.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__card-text {
    color: #555555;
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

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

.page-contact__method-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

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

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #555555;
}

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

.page-contact__social-icon {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333333;
    position: relative;
    z-index: 1;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

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

.page-contact__form-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 8px;
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom color for register/login font */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-contact__faq-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.1;
}

.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

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

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

.page-contact__faq-button {
    margin-top: 10px;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-contact__commitment-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 700px;
    color: #f0f0f0;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-contact__commitment-item::before {
    content: '✅';
    font-size: 1.2em;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 80px 0;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 60px 0;
    }
    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image, video, button overflow prevention */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .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;
    }
    .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;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .page-contact__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__contact-methods {
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 20px;
    }
}