/* style/contact.css */

/* --- General Page Styling --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area if body not set */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

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

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

/* --- Color Contrast Classes --- */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-intro,
.page-contact__dark-bg .page-contact__card-title,
.page-contact__dark-bg .page-contact__card-description,
.page-contact__dark-bg .page-contact__form-label {
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__hero-button,
.page-contact__form-submit-button,
.page-contact__cta-button {
    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;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary,
.page-contact__hero-button,
.page-contact__form-submit-button {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover,
.page-contact__hero-button:hover,
.page-contact__form-submit-button:hover {
    background-color: #1a8cc7; /* Slightly darker blue */
    border-color: #1a8cc7;
}

.page-contact__btn-secondary,
.page-contact__cta-button.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover,
.page-contact__cta-button.page-contact__btn-secondary:hover {
    background-color: #f0f8ff; /* Lightest blue */
    color: #1a8cc7;
    border-color: #1a8cc7;
}

/* Login button color */
.page-contact a[href*="login.html"],
.page-contact .page-contact__login-button {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #ffffff;
}
.page-contact a[href*="login.html"]:hover,
.page-contact .page-contact__login-button:hover {
    background-color: #cc6a00;
    border-color: #cc6a00;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-contact__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

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

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* --- Contact Methods Section --- */
.page-contact__contact-methods {
    background-color: #f8f9fa; /* Light background for contrast */
}

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

.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: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

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

.page-contact__method-card .page-contact__card-description {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-contact__method-card .page-contact__card-info {
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #1a8cc7;
}

/* --- Why Choose Section --- */
.page-contact__why-choose {
    background-color: #26A9E0;
}

.page-contact__why-choose .page-contact__section-title,
.page-contact__why-choose .page-contact__section-intro {
    color: #ffffff;
}

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

.page-contact__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #333333;
}

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

.page-contact__feature-card .page-contact__card-description {
    color: #555555;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    background-color: #f8f9fa;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol, '+' rotates 45deg */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

/* --- Contact Form Section --- */
.page-contact__contact-form-section {
    background-color: #26A9E0;
}

.page-contact__contact-form-section .page-contact__section-title,
.page-contact__contact-form-section .page-contact__section-intro {
    color: #ffffff;
}

.page-contact__form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    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 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding/border in width */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

.page-contact__form-submit-button {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    display: block; /* Make button full width on small screens */
    margin: 0 auto;
}

/* --- Address Info Section --- */
.page-contact__address-info {
    background-color: #f8f9fa;
}

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

.page-contact__info-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #333333;
}

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

.page-contact__info-card .page-contact__card-description {
    color: #555555;
}

/* --- CTA Section --- */
.page-contact__cta-section {
    background-color: #26A9E0;
    padding: 80px 0;
}

.page-contact__cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

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

.page-contact__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
    border-radius: 8px;
    min-width: 180px; /* Ensure buttons have a decent size */
}

/* --- Images Responsiveness --- */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact__image-center {
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-contact__hero-section {
        padding: 80px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }

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

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

    .page-contact__section {
        padding: 40px 0;
    }

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

    .page-contact__section-intro {
        margin-bottom: 30px;
    }

    .page-contact__methods-grid,
    .page-contact__features-grid,
    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card,
    .page-contact__feature-card,
    .page-contact__info-card,
    .page-contact__form {
        padding: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__form-submit-button {
        width: 100%;
    }

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

    .page-contact__cta-button {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    /* Mobile image responsiveness */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
}