/* style/contact.css */

/* Base Styles for the Contact Page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for smaller screens */
    box-sizing: border-box;
}

/* Header offset to prevent content from being hidden by fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Button Base Styles */
.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;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    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;
}

/* Information Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
    text-align: center;
}

.page-contact__info-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color */
}

.page-contact__info-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__method-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease;
}

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

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

.page-contact__method-card p {
    margin-bottom: 20px;
}

.page-contact__method-card a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__method-card a:hover {
    text-decoration: underline;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #e6f7ff; /* Lighter shade of brand color */
    color: #333333;
    text-align: center;
}

.page-contact__form-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-contact__form-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.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;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    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;
    min-height: 120px;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-contact__faq-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-contact__faq-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f0f8ff; /* Lighter blue for question */
    cursor: pointer;
    font-weight: bold;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question-text {
    margin: 0;
    font-size: 1.1em;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

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

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

/* Call to Action Section */
.page-contact__cta-section {
    position: relative;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.page-contact__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-contact__cta-content {
    position: relative;
    z-index: 1;
}

.page-contact__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image specific styles */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Example style */
}

/* Ensure content area images are not smaller than 200px */
.page-contact__info-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
    min-width: 200px;
    min-height: 200px;
}
/* For images used as backgrounds, object-fit: cover ensures they fill without distortion */
.page-contact__hero-image,
.page-contact__cta-image {
    min-width: unset; /* Override general img min-width for background images */
    min-height: unset;
}

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

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

    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__hero-title,
    .page-contact__info-title,
    .page-contact__form-title,
    .page-contact__faq-title,
    .page-contact__cta-title {
        font-size: 1.8em;
    }

    .page-contact__hero-description,
    .page-contact__info-description,
    .page-contact__form-description,
    .page-contact__faq-description,
    .page-contact__cta-description {
        font-size: 1em;
    }

    .page-contact__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto; /* Center buttons */
    }

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

    .page-contact__contact-form {
        padding: 25px;
    }

    .page-contact__faq-question {
        padding: 15px;
    }

    .page-contact__faq-question-text {
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 15px !important;
    }

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

    /* All containers with images/content must be constrained */
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section,
    .page-contact__method-card,
    .page-contact__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Padding already handled by .page-contact__container for main sections */
    }

    /* Ensure specific content blocks within sections also respect width */
    .page-contact__contact-form,
    .page-contact__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}