/* style/contact.css */

/* 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: var(--background-color, #f5f5f5); /* Use shared background, fallback to light gray */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* 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: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Gradient background for visual appeal */
}

.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%;
}

.page-contact__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px;
    background: rgba(38, 169, 224, 0.9); /* Semi-transparent primary color background */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* White text for dark background */
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    line-height: 1.7;
}

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

/* General Button Styles */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-contact__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
    background: #d66f06;
    border-color: #d66f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background: #e0f7fa;
    color: #1e88e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-contact__method-icon {
    width: 100%;
    max-width: 120px; /* Adjust icon size */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
    min-width: 200px; /* Ensure min size requirement */
    min-height: 200px;
}

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

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

/* Why Us Section */
.page-contact__why-us-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text for dark background */
}

.page-contact__why-us-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__why-us-section .page-contact__section-description {
    color: #f0f0f0;
}

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

.page-contact__why-us-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__why-us-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__why-us-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
    font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto; /* Override max-width 100% for form submit button on desktop */
    padding: 15px 50px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text for dark background */
}

.page-contact__faq-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__faq-section .page-contact__section-description {
    color: #f0f0f0;
}

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

/* FAQ item styles */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff; /* White background for individual FAQ items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text for question */
}

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #26A9E0; /* Primary color for question title */
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #26A9E0;
    transform: rotate(180deg); /* Rotate for minus sign effect */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    color: #555555; /* Darker text for answer content */
    border-top: 1px solid #eeeeee;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* CTA Banner Section */
.page-contact__cta-banner {
    padding: 60px 20px;
    background-color: #26A9E0; /* Primary brand color */
    text-align: center;
    color: #ffffff;
}

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

.page-contact__cta-banner-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__cta-banner-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-contact__cta-banner-button {
    padding: 18px 60px;
    font-size: 20px;
    background: #EA7C07; /* Login color for strong CTA */
    border-color: #EA7C07;
}

.page-contact__cta-banner-button:hover {
    background: #d66f06;
    border-color: #d66f06;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-image-main {
        margin-bottom: 30px;
    }
    .page-contact__hero-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__container {
        padding: 15px;
    }

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