/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Assuming --secondary-color is white */
}

/* Header offset for main content */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section styling */
.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #26A9E0; /* Dark background for hero */
    color: #FFFFFF;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* 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: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%;
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    margin: 10px;
}

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

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand color for secondary CTA */
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
}

.page-contact__method-icon {
    width: 150px; /* Base width */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows text to take available space */
}

/* Why Support Section */
.page-contact__why-support {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.page-contact__why-support .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__why-support .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__why-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-contact__why-support-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-contact__why-support-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-contact__why-support-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFFFFF" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-contact__why-support-list li strong {
    color: #FFFFFF; /* Ensure strong text is visible */
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Medium light background */
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.page-contact__form-illustration {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 30px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-contact__privacy-note {
    font-size: 0.95em;
    color: #777777;
    margin-top: 20px;
    text-align: left;
}

.page-contact__form {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.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 #cccccc;
    border-radius: 8px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
}

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

.page-contact__form-submit-btn {
    width: auto;
    margin: 0;
    padding: 15px 40px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
}

.page-contact__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eeeeee;
    list-style: none; /* Remove default marker for summary */
}

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

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid #26A9E0;
}

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

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

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

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

/* Call to Action Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px; /* Space between buttons */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__why-support-grid,
    .page-contact__form-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__why-support-image,
    .page-contact__form-illustration {
        order: -1; /* Image/illustration above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description,
    .page-contact__section-description,
    .page-contact__cta-description {
        font-size: 1em;
    }
    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__method-title {
        font-size: 1.5em;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }

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

    .page-contact__video,
    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}