/* style/contact.css */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the body, assuming --accent-color is dark enough for white text */
    background-color: var(--accent-color, #26A9E0); /* Fallback to brand color */
}

.page-contact__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming shared handles body padding */
    padding-bottom: 60px;
    color: #ffffff;
    background-color: #26A9E0; /* Brand primary color */
}

.page-contact__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__hero-content {
    max-width: 800px;
    margin-bottom: 30px;
}

.page-contact__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font-size */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.1em;
    opacity: 0.9;
    color: #ffffff;
}

/* General Section Styles */
.page-contact__section {
    padding: 60px 0;
}

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

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

/* Light Background Section */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description {
    color: #333333;
}
.page-contact__light-bg a {
    color: #26A9E0;
}

/* Dark Background Section */
.page-contact__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
    color: #ffffff;
}
.page-contact__dark-section a {
    color: #ffffff;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.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 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

.page-contact__submit-button {
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__form-note {
    text-align: center;
    font-size: 0.9em;
    color: #555555;
    margin-top: 20px;
}

/* Other Methods Section */
.page-contact__contact-methods-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

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

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

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #ffffff;
    opacity: 0.9;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* FAQ Section */
.page-contact__faq-image {
    max-width: 680px;
    height: auto;
    display: block;
    margin: 30px auto 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 40px auto 20px auto;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

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

.page-contact__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-contact__faq-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    /* Handled by JS changing textContent */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #f9f9f9;
}

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

.page-contact__faq-more-info {
    text-align: center;
    font-size: 1em;
    color: #333333;
    margin-top: 30px;
}

.page-contact__text-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

/* CTA Section */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Button styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    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, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't exceed container */
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 1. Top section padding/spacing */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
    }
    .page-contact__hero-content {
        margin-bottom: 20px;
    }
    .page-contact__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-contact__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    /* 2. Single column content containers */
    .page-contact__container {
        padding: 0 15px !important; /* Ensure content doesn't touch edges */
    }
    .page-contact__section {
        padding: 40px 0;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    .page-contact__form-note {
        padding: 0 10px;
    }

    /* 3. Generic images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    /* Ensure image containers also adapt */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__method-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Buttons and button containers */
    .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: 12px 15px !important;
        font-size: 1em !important;
    }
    .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: 0 15px !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-contact__method-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__submit-button {
        width: 100% !important;
    }

    /* 5. FAQ blocks */
    .page-contact__faq-list {
        margin-top: 30px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    .page-contact__faq-more-info {
        padding: 0 15px;
    }
}