/* style/contact.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF);
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
    background-color: #26A9E0; /* Primary brand color */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* General Section Styling */
.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

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

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

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

.page-contact__method-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 200px; /* Min size for image */
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color for dark background */
    color: #ffffff; /* White text for dark background */
    position: relative;
    overflow: hidden;
}

.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;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

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

.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 {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px; /* Example size, adjust as needed */
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blueish background */
    color: #333333;
    position: relative;
    overflow: hidden;
}

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

.page-contact__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-item summary:hover {
    background-color: #eaf6ff;
}

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

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

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

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

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

.page-contact__faq-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px; /* Example size, adjust as needed */
    height: auto;
    object-fit: contain;
    opacity: 0.1;
    z-index: 1;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color for dark background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 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: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
    background-color: #e06a00;
    border-color: #e06a00;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__form-image,
    .page-contact__faq-image {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .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__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__form-image,
    .page-contact__faq-image {
        display: none; /* Hide decorative images on mobile */
    }
    .page-contact__contact-form {
        margin: 20px auto;
        padding: 20px;
    }
    .page-contact__info-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__cta-section {
        padding: 40px 0;
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__method-icon {
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons responsive */
    .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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add spacing for stacked buttons */
    }
    .page-contact__hero-cta {
        margin-top: 20px;
    }
    .page-contact__cta-section .page-contact__btn-primary {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-content {
        padding: 20px;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 10px 20px 15px;
    }
}