/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some bottom padding */
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the section */
    text-align: center;
}

.page-contact__hero-image {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto; /* Center image container */
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    color: #26A9E0; /* Primary brand color */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

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

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

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* General Container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Contact Info Section */
.page-contact__info-section {
    background-color: #ffffff; /* Light background */
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 15px;
}

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

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

.page-contact__method-card {
    background-color: #f0f8ff; /* Lighter blue tint */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__method-card img {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide */
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* Contact Form Section */
.page-contact__form-section {
    background-color: #26A9E0; /* Primary brand color background */
    color: #FFFFFF;
    padding: 60px 0;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: #FFFFFF;
}

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

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #EA7C07; /* Login color for submit */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
    background-color: #c96a06;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    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: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf6ff; /* Lighter primary color */
    list-style: none; /* Hide default marker for details summary */
}

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become an 'x' or similar */
}

.page-contact__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-contact__faq-answer p {
    margin: 0;
}


/* CTA Banner Section */
.page-contact__cta-banner {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.page-contact__cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-contact__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-contact__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
    min-width: 200px; /* Ensure buttons are not too small */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-contact__hero-section {
        margin-bottom: 30px;
    }

    .page-contact__hero-content {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for mobile */
    }

    .page-contact__description {
        font-size: 1em;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-submit-btn,
    .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;
    }

    /* Button containers */
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__cta-buttons-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
        flex-direction: column; /* Ensure vertical stacking for cta buttons */
    }

    /* Section Titles & Descriptions */
    .page-contact__section-title {
        font-size: 1.8em;
    }

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

    /* Contact Methods Grid */
    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__method-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Contact Form */
    .page-contact__contact-form {
        padding: 25px;
        margin-top: 30px;
    }

    .page-contact__form-label {
        font-size: 1em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-contact__faq-list {
        margin-top: 30px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 10px 20px 20px;
    }

    /* CTA Banner */
    .page-contact__cta-title {
        font-size: 2em;
    }

    .page-contact__cta-description {
        font-size: 1em;
    }

    /* General image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}