/* style/contact.css */

/* --- General Page Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Assuming body is dark from shared.css */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for contrast */
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%);
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-contact__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* --- Info Section --- */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-contact__contact-card {
    background-color: #1a1a1a; /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__contact-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    display: block; /* Ensure it respects max-width: 100% */
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__card-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-contact__card-detail {
    font-size: 1.1em;
    color: #ffffff;
    margin-top: 15px;
}

.page-contact__link-text {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* --- Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.3);
}

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

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: #1a1a1a;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.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: #cccccc;
    font-size: 1em;
}

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

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

.page-contact__link-more {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-contact__address-block {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #cccccc;
}

.page-contact__address-text {
    margin-bottom: 5px;
}

.page-contact__map-placeholder {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    }

    .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-intro {
        font-size: 0.9em;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        margin: 10px 0 !important; /* Adjust margin for full width buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__contact-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__contact-card {
        padding: 25px;
    }

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

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

    .page-contact__faq-title {
        font-size: 1.1em;
    }

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

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Image responsive adaptions */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    /* Ensure all content containers are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__map-placeholder,
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Special adjustment for hero section to avoid double padding if shared provides it */
    .page-contact__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-section .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Color Contrast Enforcement - Based on body background #000000 (dark) */
/* Text should be light */
.page-contact,
.page-contact p,
.page-contact li,
.page-contact label {
    color: #ffffff;
}

/* Card backgrounds should be slightly lighter dark or transparent */
.page-contact__contact-card,
.page-contact__contact-form,
.page-contact__faq-item {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-contact__faq-question {
    background-color: #1a1a1a; /* Dark background */
    color: #26A9E0; /* Brand color for question titles */
}

.page-contact__faq-question:hover {
    background-color: #262626; /* Slightly lighter on hover */
}

.page-contact__faq-answer {
    color: #cccccc; /* Slightly muted light text */
}

/* Titles using brand color on dark background */
.page-contact__section-title,
.page-contact__card-title,
.page-contact__faq-title,
.page-contact__form-label,
.page-contact__link-text,
.page-contact__link-more,
.page-contact__faq-toggle {
    color: #26A9E0;
}

/* Ensure placeholder text is visible on dark inputs */
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

/* Ensure no filter properties are used on images */
.page-contact img {
    filter: none !important;
}