/* style/contact.css */

/* Base Styles & Global Resets within page-contact scope */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-contact__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff; /* White text for dark background */
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure titles are white on dark backgrounds */
    font-weight: bold;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    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;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFFFF; /* Adjusted for contrast */
    border: 2px solid #C30808;
    margin-right: 15px;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-contact__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-contact__social-btn {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    margin: 5px;
}

.page-contact__social-btn:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

/* Cards */
.page-contact__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-contact__card-text {
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to take available space */
}

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

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

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

.page-contact__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-contact__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
}

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

.page-contact__card-email,
.page-contact__card-phone {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Highlight contact info */
    margin-bottom: 15px;
}

.page-contact__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker card for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Distinct background for question */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__faq-title {
    font-size: 1.25em;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing to paragraph in answer */
}

/* Support Hours Section */
.page-contact__hours-section {
    padding: 80px 0;
}

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

.page-contact__info-card .page-contact__card-title {
    color: #FFFF00; /* Highlight info card titles */
}

.page-contact__note-text {
    font-size: 1em;
    margin-top: 40px;
    color: #f0f0f0;
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 80px 0;
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.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;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4); /* Darker input background */
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

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

.page-contact__feedback-form .page-contact__btn-primary {
    width: auto;
    margin-top: 10px;
    display: block; /* Make button full width on small screens */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__form-note {
    font-size: 0.9em;
    margin-top: 20px;
    color: #f0f0f0;
}

/* Why Contact Us Section */
.page-contact__why-contact-section {
    padding: 80px 0;
}

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

.page-contact__cta-bottom {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.1); /* Consistent card background */
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Images */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto; /* Center images */
    border-radius: 8px;
    object-fit: cover;
}

/* Ensure all images in content area are >= 200px (desktop) */
.page-contact img:not(.page-contact__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 3em;
    }
    .page-contact__intro-text {
        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 {
        min-height: 500px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header spacing on mobile */
    }
    .page-contact__main-title {
        font-size: 2.2em;
    }
    .page-contact__intro-text {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__social-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__method-grid,
    .page-contact__info-grid,
    .page-contact__reason-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__card {
        padding: 25px;
    }
    .page-contact__faq-question {
        padding: 18px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }
    .page-contact__feedback-form {
        padding: 25px;
    }

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__method-grid,
    .page-contact__info-grid,
    .page-contact__reason-grid,
    .page-contact__faq-list,
    .page-contact__feedback-form,
    .page-contact__cta-bottom {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-contact__social-links {
        flex-direction: column;
        align-items: center;
    }
}