/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity if shared.css doesn't */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f5f5f5; /* Light background for hero section */
    overflow: hidden;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-contact__hero-title {
    color: #26A9E0; /* Brand color for title */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

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

/* Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

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

.page-contact__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.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 #e0e0e0;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333333;
    background-color: #ffffff;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaaaaa;
}

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

/* Buttons */
.page-contact__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

.page-contact__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #26A9E0;
    text-align: center;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

/* Other Methods Section */
.page-contact__other-methods-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff; /* Light text */
    text-align: center;
}

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

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards */
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
    width: 80px; /* Display size for icons */
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes original image color */
}

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

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 20px;
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-contact__faq-list {
    margin-top: 40px;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    position: relative;
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #eaf7fd; /* Lighter background when open */
    color: #26A9E0;
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-contact__faq-answer {
    padding: 0 25px 18px 25px;
    color: #555555;
    font-size: 0.95em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}
.page-contact__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-contact__faq-answer a:hover {
    color: #1a8cc7;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding: 40px 20px;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General responsive adjustments */
    .page-contact__hero-section {
        flex-direction: column; /* Stack image and text vertically */
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset, this is for aesthetic */
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
    }
    .page-contact__hero-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Use clamp for H1 font size */
        margin-bottom: 10px;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-contact__form-section,
    .page-contact__other-methods-section,
    .page-contact__faq-section {
        padding: 40px 15px;
    }

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

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter changes original image color */
    }
    .page-contact__method-icon {
        width: 60px; /* Adjusted display size for mobile */
        height: 60px;
    }
    
    /* 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;
    }
    
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    
    .page-contact__method-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Color contrast enforcement */
/* Body is light, so main text is dark */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-contact__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

/* Ensure all images maintain original color */
.page-contact img {
    filter: none !important; /* Absolutely no CSS filters */
}