/* Scoped to .page-contact */
.page-contact {
    padding-top: 10px; /* Small top padding for main content */
    background-color: #FFFFFF; /* Default background for contact page content */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first approach */
    align-items: center;
    text-align: center;
    background-color: #017439; /* Primary color background */
    color: #FFFFFF;
    padding: 20px 0 40px;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-visual {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 20px;
}

.page-contact__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* Aspect ratio for hero image */
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-contact__hero-content {
    max-width: 800px;
    padding: 0 20px;
    margin-top: -80px; /* Overlap slightly with the image for visual effect, but text is below */
    position: relative;
    z-index: 1;
}

.page-contact__main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for contrast */
    max-width: 100%;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-contact__contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1rem;
}

.page-contact__btn--live-chat {
    background-color: #C30808; /* Register/Login color for primary action */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn--live-chat:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-contact__btn--email {
    background-color: #FFFFFF;
    color: #017439; /* Primary color for text */
    border: 2px solid #FFFFFF;
}

.page-contact__btn--email:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

.page-contact__btn--phone:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.page-contact__section-title {
    font-size: 2rem;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-contact__section-description {
    font-size: 1rem;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #333333;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    min-height: 44px; /* Ensure minimum touch target size */
}

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

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

.page-contact__submit-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Ensure minimum touch target size */
}

.page-contact__submit-btn:hover {
    background-color: #005f2f;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto;
    background-color: #f5fcf8; /* Light green background for FAQ */
    border-radius: 8px;
}

.page-contact__faq-list {
    margin-top: 30px;
}

.page-contact__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 20px;
}

.page-contact__faq-question {
    font-size: 1.15rem;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__faq-answer {
    font-size: 1rem;
    color: #555555;
}

.page-contact__faq-answer a {
    color: #C30808; /* Use accent color for links */
    text-decoration: none;
    font-weight: 600;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 8px;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #017439;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 50px; /* Ensure minimum size */
    min-height: 50px; /* Ensure minimum size */
}

.page-contact__social-icon:hover {
    background-color: #C30808; /* Accent color on hover */
    color: #FFFFFF;
}

/* Placeholder for social icons - in a real scenario, these would be SVG or font icons */
.page-contact__social-icon--facebook::before { content: "f"; font-family: 'Arial'; }
.page-contact__social-icon--twitter::before { content: "t"; font-family: 'Arial'; }
.page-contact__social-icon--telegram::before { content: "T"; font-family: 'Arial'; }
.page-contact__social-icon--youtube::before { content: "Y"; font-family: 'Arial'; }

/* Responsive Adjustments */
@media (min-width: 769px) {
    .page-contact__hero-section {
        flex-direction: column; /* Still column, but hero-content can be positioned relative to image */
        padding-top: 0;
        padding-bottom: 60px;
    }

    .page-contact__hero-visual {
        margin-bottom: 0;
    }

    .page-contact__hero-content {
        margin-top: -120px; /* Adjust overlap for larger screens */
        padding-top: 40px; /* Add some padding to prevent text from being too close to the top */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-visual img {
        max-width: 100%;
        height: auto;
    }

    .page-contact__btn {
        width: 100%;
        max-width: 300px; /* Limit max width for smaller screens */
    }

    .page-contact__contact-options {
        flex-direction: column;
        align-items: center;
    }

    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-media-section {
        padding: 40px 15px;
        margin: 20px auto;
    }

    .page-contact__section-title {
        font-size: 1.75rem;
    }
    
    /* Ensure content area images don't cause overflow */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Smaller font size for very small screens */
    }

    .page-contact__hero-description {
        font-size: 0.95rem;
    }

    .page-contact__btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Ensure color contrast for all text elements */
.page-contact__main-title,
.page-contact__hero-description,
.page-contact__btn--phone,
.page-contact__social-media-section .page-contact__section-title,
.page-contact__social-media-section .page-contact__section-description {
    color: #FFFFFF; /* Ensures contrast on green background */
}

.page-contact__btn--live-chat {
    color: #FFFF00; /* Yellow text on red button */
}

.page-contact__btn--email {
    color: #017439; /* Green text on white button */
}

.page-contact__section-title,
.page-contact__form-label,
.page-contact__faq-question {
    color: #017439; /* Green text on white/light green background */
}

.page-contact__form-input,
.page-contact__form-textarea,
.page-contact__faq-answer,
.page-contact__section-description {
    color: #333333; /* Dark grey text on white/light green background */
}

.page-contact__faq-answer a {
    color: #C30808; /* Red link on white background */
}

.page-contact__submit-btn {
    background-color: #017439;
    color: #FFFFFF; /* White text on green button */
}

.page-contact__social-icon {
    background-color: #FFFFFF;
    color: #017439; /* Green icon on white circle */
}

.page-contact__social-icon:hover {
    background-color: #C30808; /* Red background on hover */
    color: #FFFFFF; /* White icon on red background */
}