/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF;
    font-size: 16px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    background-color: #FFFFFF; /* Light background */
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    min-height: 400px; /* Ensure hero section has a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-contact__hero-title {
    font-size: 3.2em;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-contact__section-title--light {
    color: #FFFFFF; /* White title on dark background */
}

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

.page-contact__section-description--light {
    color: #f0f0f0; /* Light description on dark background */
}

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

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-contact__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 60px 0;
    background-color: #f9f9f9; /* Slightly off-white background */
}

.page-contact__method-grid {
    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;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

.page-contact__method-icon {
    width: 100%; /* Ensure image fills card area */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-contact__form-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Minimum height for image */
}

.page-contact__form {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    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; /* Dark text for form labels on white background */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #f9f9f9;
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
}

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

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

.page-contact__faq-item {
    background-color: #f9f9f9;
    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: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eeeeee;
    color: #26A9E0; /* Brand color for question */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question h3 {
    margin: 0;
    color: #26A9E0; /* Ensure question text is brand color */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
    user-select: none; /* Prevent text selection */
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X or minus */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555; /* Dark text for answer */
    background-color: #f9f9f9;
}

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

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

.page-contact__cta-faq {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #eef7fc; /* Light blue background for CTA */
    border-radius: 10px;
}

.page-contact__cta-text {
    font-size: 1.2em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-contact__why-us-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-contact__why-us-item:hover {
    transform: translateY(-5px);
}

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

.page-contact__why-us-text {
    font-size: 1em;
    color: #666666;
}

/* Office Info Section */
.page-contact__office-info {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-contact__info-details {
    text-align: center;
    margin-top: 30px;
}

.page-contact__info-item {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 10px;
}

.page-contact__info-item a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact__info-item a:hover {
    text-decoration: underline;
}

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

    .page-contact__section-title {
        font-size: 2em;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-contact__form-image,
    .page-contact__form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        min-height: 300px;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

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

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__section-description {
        font-size: 0.95em;
    }

    .page-contact__method-grid,
    .page-contact__why-us-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0;
    }

    .page-contact__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-contact__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Mobile image responsive rules */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__method-card,
    .page-contact__why-us-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Specific image sizing for mobile within cards/forms */
    .page-contact__method-icon {
        height: 180px;
    }
    .page-contact__form-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding: 0;
    }

    /* Mobile video responsive rules (if any) */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}