:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login-color: #EA7C07;
}

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

.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); /* Ensures content is not hidden by fixed header */
    background-color: var(--primary-color);
    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;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

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

.page-contact__main-title {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-contact__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
}

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.page-contact__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

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

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

.page-contact__info-section,
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-contact__dark-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-contact__contact-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

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

.page-contact__contact-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-contact__card-text {
    font-size: 16px;
    margin-bottom: 25px;
}

.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-contact__form-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.page-contact__contact-form {
    flex: 1;
    max-width: 50%;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    background-color: #f8f8f8;
    box-sizing: border-box;
}

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

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--button-login-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__submit-button:hover {
    background-color: darken(var(--button-login-color), 10%);
}

/* FAQ Section Styles */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.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 15px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-dark);
}

.page-contact__faq-toggle {
    font-size: 24px;
    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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

.page-contact__faq-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Social Section Styles */
.page-contact__social-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-contact__social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.page-contact__social-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Common 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: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

.page-contact__btn-primary:hover {
    background: darken(var(--button-login-color), 10%);
    border-color: darken(var(--button-login-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background: transparent;
    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.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 38px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__form-wrapper {
        flex-direction: column;
    }
    .page-contact__form-image,
    .page-contact__contact-form {
        max-width: 100%;
    }
}

@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__main-title {
        font-size: 30px;
        line-height: 1.2;
    }
    .page-contact__intro-text {
        font-size: 16px;
    }
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Button containers */
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Adjust gap for stacked buttons */
    }
    
    .page-contact__container {
        padding: 20px 15px;
    }
    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-contact__contact-card {
        padding: 20px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__form-contact,
    .page-contact__form-image {
        border-radius: 8px;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px 15px;
        font-size: 16px;
    }
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
        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;
    }
    .page-contact__social-icon-link {
        font-size: 15px;
    }
    .page-contact__social-icon {
        width: 50px;
        height: 50px;
    }

    /* Ensure all images are responsive and do not cause horizontal scroll */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__contact-grid,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 26px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__contact-grid {
        gap: 20px;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
}