/* style/contact.css */

/* General styling for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* body background is handled by shared.css */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    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-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;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold brand color for title */
    line-height: 1.2;
}

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

/* Section General Styling */
.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color for section titles */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-contact__btn-primary {
    background-color: #FFD700; /* Gold brand color */
    color: #8B0000; /* Dark red for text on gold */
    border: 2px solid #FFD700;
}

.page-contact__btn-primary:hover {
    background-color: #e6c200;
    color: #8B0000;
    border-color: #e6c200;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold brand color for text */
    border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-contact__method-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-contact__contact-info {
    font-size: 1.1em;
    margin-top: 15px;
}

.page-contact__link {
    color: #FFD700;
    text-decoration: none;
}

.page-contact__link:hover {
    text-decoration: underline;
}

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

.page-contact__social-link {
    font-size: 1.1em;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #8B0000; /* Dark red for social links */
    transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #a00000;
}

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

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.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;
    color: #f0f0f0;
}

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

.page-contact__faq-answer p {
    margin: 0;
    padding: 0;
    color: #f0f0f0;
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__form-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Make background image subtle */
}

.page-contact__feedback-form {
    position: relative;
    z-index: 2;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for form readability */
    border-radius: 10px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    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.6);
}

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

.page-contact__feedback-form .page-contact__btn-primary {
    width: auto; /* Allow button to size naturally */
    display: block;
    margin-top: 30px;
    text-align: center;
}

/* Location Section */
.page-contact__location-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-contact__address-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-contact__address-line {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-contact__office-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .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: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact__method-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 15px 20px;
    }
    .page-contact__feedback-form {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 0.95em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }

    /* Mobile image responsive adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container adaptation for images/videos/buttons */
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__feedback-section,
    .page-contact__location-section,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__address-card,
    .page-contact__method-grid,
    .page-contact__social-icons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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;
        text-align: center; /* Center button text */
    }
    /* If buttons are in a flex container and need to wrap/stack */
    .page-contact__social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }
    .page-contact__social-link {
        flex: 1 1 auto; /* Allow social links to take available space and wrap */
        min-width: 120px; /* Minimum width for social links */
    }
}

/* Ensure no filter is used on images */
.page-contact img {
    filter: none;
}

/* Content area images CSS dimensions lower bound */
.page-contact img:not(.page-contact__hero-image) { /* Exclude hero image as it's full width */
    min-width: 200px;
    min-height: 200px;
}
.page-contact__office-image {
    min-width: 200px;
    min-height: 200px;
}
.page-contact__form-background-image {
    min-width: 200px;
    min-height: 200px;
}