/* style/contact.css */

/* General Styles for the Contact Page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--primary-color); /* Inherit from shared, likely dark */
}

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

.page-contact__dark-section {
    background-color: #0A1931;
    color: #ffffff;
    padding: 80px 0;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

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

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

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

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* 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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.page-contact__btn-primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

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

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

.page-contact__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Contact Methods Section */
.page-contact__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #0A1931;
    margin-bottom: 15px;
}

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

.page-contact__email-link, .page-contact__phone-link {
    color: #0A1931;
    text-decoration: underline;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover {
    color: #FFD700;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

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

.page-contact__contact-form .page-contact__btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0A1931;
    color: #ffffff;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

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

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

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

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

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Commitment Section */
.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-contact__commitment-item {
    background-color: rgba(255, 215, 0, 0.1);
    color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD700;
    border-radius: 4px;
    font-size: 1.1em;
}

.page-contact__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

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

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section, .page-contact__methods-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__commitment-section {
        padding: 60px 0;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary, .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    .page-contact__method-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__card {
        padding: 25px;
    }
    .page-contact__card-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }
    /* Ensure containers don't overflow */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__method-grid,
    .page-contact__contact-form,
    .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;
    }
    .page-contact__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
    }
    .page-contact__btn-primary, .page-contact__btn-secondary {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    .page-contact__card-title {
        font-size: 1.5em;
    }
    .page-contact__card-text {
        font-size: 0.95em;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__form-input, .page-contact__form-textarea {
        font-size: 0.95em;
    }
    .page-contact__faq-heading {
        font-size: 1em;
    }
    .page-contact__faq-question {
        padding: 12px 15px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 12px 15px;
    }
}