/* 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, #FFFFFF); /* Inherit from shared, fallback to white */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjusted height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-contact__hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 800px;
    padding: 0 20px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__card-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

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

.page-contact__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #FFFFFF;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #1a7fb4;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text for contrast */
}

.page-contact__form-section .page-contact__section-title {
    color: #FFFFFF;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-contact__faq-item {
    background-color: #f0f8ff; /* Light blue background for FAQ item */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #26A9E0; /* Question background */
    color: #FFFFFF; /* Question text color */
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #1a7fb4;
}

.page-contact__faq-heading {
    margin: 0;
    color: #FFFFFF;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFFFF;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f8ff; /* Answer background */
    color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 60px 0;
    background-color: #f0f8ff; /* Light background */
}

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

.page-contact__feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
}

.page-contact__feature-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__feature-text {
    color: #555555;
}

/* Effective Support Section */
.page-contact__effective-support-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background, ensure contrast */
}

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

.page-contact__step-card {
    background-color: #f0f8ff; /* Light blue background for steps */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-contact__step-heading {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__step-text {
    color: #555555;
}

/* Security Assurance Section */
.page-contact__security-assurance-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text for contrast */
}

.page-contact__security-assurance-section .page-contact__section-title,
.page-contact__security-assurance-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__security-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__security-item {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Consistent border for hover effects */
    text-align: center; /* Ensure text is centered */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
}

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-color: #26A9E0;
}

.page-contact__btn-primary:hover {
    background-color: #1a7fb4;
    border-color: #1a7fb4;
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb4;
    border-color: #1a7fb4;
}

/* Login Button Color Override (if applicable) */
.page-contact a[href="login.html"].page-contact__btn-primary,
.page-contact a[href="register.html"].page-contact__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #FFFFFF;
}

.page-contact a[href="login.html"].page-contact__btn-primary:hover,
.page-contact a[href="register.html"].page-contact__btn-primary:hover {
    background-color: #c96700;
    border-color: #c96700;
}

/* Image styling */
.page-contact__section-image {
    display: block;
    margin: 40px auto; /* Center by default */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-section {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__method-card,
    .page-contact__feature-card,
    .page-contact__step-card {
        padding: 25px;
    }
    .page-contact__card-title,
    .page-contact__feature-heading,
    .page-contact__step-heading {
        font-size: 1.4em;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-bg-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Mobile button responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

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