/* style/contact.css */

/* Root variables and base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient for hero background */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 1000px; /* Constrain hero image width */
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-contact__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
}

.page-contact__intro-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #d46c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

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

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

.page-contact__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__method-title,
.page-contact__dark-bg .page-contact__method-text,
.page-contact__dark-bg .page-contact__method-info,
.page-contact__dark-bg .page-contact__form-label,
.page-contact__dark-bg .page-contact__form-input,
.page-contact__dark-bg .page-contact__form-textarea,
.page-contact__dark-bg .page-contact__info-subtitle,
.page-contact__dark-bg .page-contact__hours-list,
.page-contact__dark-bg .page-contact__hours-note,
.page-contact__dark-bg .page-contact__address-text,
.page-contact__dark-bg .page-contact__address-details,
.page-contact__dark-bg .page-contact__map-text,
.page-contact__dark-bg .page-contact__reason-title,
.page-contact__dark-bg .page-contact__reason-text,
.page-contact__dark-bg .page-contact__faq-qtext,
.page-contact__dark-bg .page-contact__faq-toggle,
.page-contact__dark-bg .page-contact__faq-answer p {
    color: #ffffff; /* Ensure all text is white on dark background */
}

/* Image Wrapper for content images */
.page-contact__image-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    text-align: center;
}

.page-contact__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Contact Methods Section */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-contact__method-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__method-info {
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

.page-contact__social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-contact__social-link {
    display: block;
    padding: 10px 0;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-link:hover {
    color: #1a7bb7;
    text-decoration: underline;
}

/* Secondary Button */
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.page-contact__form {
    max-width: 700px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px 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: #ffffff; /* White text on dark background */
}

.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: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.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 {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Info Section */
.page-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-contact__info-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__info-subtitle {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
    color: #555555;
}

.page-contact__hours-list li {
    margin-bottom: 8px;
}

.page-contact__hours-note {
    font-style: italic;
    color: #777777;
    margin-top: 15px;
}

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

.page-contact__address-details {
    font-style: normal;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__map-text {
    font-size: 0.95em;
    color: #777777;
}

/* Why Contact Section */
.page-contact__reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-contact__reason-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-contact__reason-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

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

.page-contact__reason-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: #f5f5f5;
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 25px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #555555;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(1.8em, 4vw, 3em);
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px !important; /* Keep small top padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__hero-image img {
        border-radius: 4px;
    }
    
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-contact__method-card,
    .page-contact__info-card,
    .page-contact__reason-item {
        padding: 20px;
    }

    .page-contact__method-title {
        font-size: 1.3em;
    }

    .page-contact__info-subtitle {
        font-size: 1.4em;
    }

    .page-contact__form {
        padding: 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    
    details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
    .page-contact__faq-qtext { font-size: 1em; }
    details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
}