/* style/contact.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: 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: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7a9e 100%);
    color: var(--text-light);
    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;
    z-index: 2;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 900px;
}

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

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

.page-contact__hero-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__btn-primary {
    background: var(--login-color);
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Methods Section */
.page-contact__contact-methods .page-contact__section-title {
    color: var(--primary-color);
}

.page-contact__contact-methods .page-contact__section-description {
    color: var(--text-dark);
}

.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: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px 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;
    align-items: center;
    border: 1px solid var(--border-color);
}

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

.page-contact__method-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px;
}

.page-contact__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-contact__card-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7a9e 100%);
    color: var(--text-light);
}

.page-contact__contact-form-section .page-contact__section-title {
    color: var(--text-light);
}

.page-contact__contact-form-section .page-contact__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    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.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

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

.page-contact__submit-button {
    width: auto;
    display: block;
    margin-top: 30px;
    cursor: pointer;
    border: none;
}

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

/* FAQ Section */
.page-contact__faq-section .page-contact__section-title {
    color: var(--primary-color);
}

.page-contact__faq-section .page-contact__section-description {
    color: var(--text-dark);
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px 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, color 0.3s ease;
    position: relative;
}

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;
    color: var(--primary-color);
}

details.page-contact__faq-item[open] summary.page-contact__faq-question {
    background: var(--primary-color);
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

details.page-contact__faq-item[open] summary.page-contact__faq-question:hover {
    background: #1a7a9e;
}

.page-contact__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: inherit; /* Inherit color from summary */
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: inherit; /* Inherit color from summary */
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: var(--text-dark);
}

details.page-contact__faq-item[open] .page-contact__faq-answer {
    padding-top: 15px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-contact__faq-answer .page-contact__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
}

/* Why Contact Section */
.page-contact__why-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7a9e 100%);
    color: var(--text-light);
}

.page-contact__why-contact .page-contact__section-title,
.page-contact__why-contact .page-contact__section-description {
    color: var(--text-light);
}

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

.page-contact__benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px 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;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__benefit-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px;
}

.page-contact__benefit-card .page-contact__card-title {
    color: var(--text-light);
}

.page-contact__benefit-card .page-contact__card-text {
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.page-contact__cta-wrapper {
    margin-top: 50px;
}

/* Dark/Light Background Helpers */
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
    color: var(--text-light);
}

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-image {
        margin-bottom: 20px;
    }

    .page-contact__hero-image img {
        border-radius: 8px;
    }

    .page-contact__hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Enforce full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section {
        padding: 40px 15px;
    }

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

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

    .page-contact__methods-grid,
    .page-contact__benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-contact__method-card img,
    .page-contact__benefit-card img {
        min-width: unset;
        min-height: unset;
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 6px;
    }

    .page-contact__card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-contact__card-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }

    .page-contact__form-label {
        font-size: 15px;
    }

    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-qtext {
        font-size: 16px;
    }

    .page-contact__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 25px;
    }

    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 20px 20px;
    }

    .page-contact__faq-answer p {
        font-size: 15px;
    }

    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 32px;
    }

    .page-contact__section-title {
        font-size: 24px;
    }

    .page-contact__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}