/* style/contact.css */
.page-contact {
    color: #ffffff; /* Body background is dark, so text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-contact__dark-section {
    background-color: #000000; /* Explicit dark background */
    padding: 60px 0;
}

.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-image-wrapper {
    margin-top: 40px;
    overflow: hidden;
    border-radius: 10px;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

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

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

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__method-icon {
    width: 100%; /* Ensure large image */
    height: auto;
    max-width: 200px; /* Adjust max width for icon-like appearance, but still > 200px */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-contact__method-text {
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-contact__method-text strong {
    color: #ffffff;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 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;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly darker translucent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly more opaque */
    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.5em;
    color: #017439;
    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; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

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

.page-contact__faq-answer a:hover {
    color: #005a2e;
}

.page-contact__commitment-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-contact__cta-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-contact__btn-register,
.page-contact__btn-login {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px;
}

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

.page-contact__btn-register:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

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

.page-contact__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

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

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__section-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

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

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

    .page-contact__method-card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-contact__faq-title {
        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__cta-wrapper {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__btn-register,
    .page-contact__btn-login {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-contact__section,
    .page-contact__container,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }

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

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

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