/* style/contact.css */

/* General page styling */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #f5f5f5); /* Use shared background, fallback to light grey */
}

/* 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);
    background: linear-gradient(135deg, #26A9E0, #1e87c2);
    color: #FFFFFF;
    overflow: hidden;
}

.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%;
    z-index: 2;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-contact__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.page-contact__hero-content p {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-contact__cta-button:hover {
    background: #d46c06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Section common styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.page-contact__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Light background section */
.page-contact__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Dark background section */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-contact__dark-bg .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__dark-bg .page-contact__section-description {
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-contact__method-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-card img {
    width: 100%;
    
    height: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__method-card p {
    font-size: 1.05em;
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-contact__contact-detail {
    font-weight: bold;
    color: #EA7C07;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.page-contact__btn-primary:hover {
    background: #1e87c2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    border: 2px solid #26A9E0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.page-contact__additional-contact-info {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #666666;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__contact-form input[type="text"],
.page-contact__contact-form input[type="email"],
.page-contact__contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__contact-form input::placeholder,
.page-contact__contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__contact-form input:focus,
.page-contact__contact-form textarea:focus {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: #EA7C07;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-contact__submit-button:hover {
    background: #d46c06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 30px;
}

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.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 20px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important;
    padding: 25px 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

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

.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: 20px;
    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: #333;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__hero-content h1 {
        font-size: 2.2em;
    }

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

    .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;
        margin-top: 20px;
    }

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

    .page-contact__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-card img {
        
        margin-bottom: 20px;
    }

    .page-contact__method-card h3 {
        font-size: 1.5em;
    }

    .page-contact__method-card p {
        font-size: 0.95em;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-contact__form-group label {
        font-size: 1em;
    }

    .page-contact__contact-form input[type="text"],
    .page-contact__contact-form input[type="email"],
    .page-contact__contact-form textarea {
        padding: 12px;
        font-size: 0.95em;
    }

    .page-contact__submit-button {
        padding: 14px;
        font-size: 1.05em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 8px;
    }
    
    .page-contact__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
        border-radius: 0 0 8px 8px;
    }
    .page-contact__faq-item {
        border-radius: 8px;
    }

    /* Image responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section, 
    .page-contact__card, 
    .page-contact__container, 
    .page-contact__hero-container, 
    .page-contact__hero-content, 
    .page-contact__contact-form, 
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}