/* 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: #f8f8f8; /* Light background for the overall page */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    text-align: center;
    overflow: hidden;
    background-color: #B71C1C; /* Deep Red background */
    color: #FFF5E1; /* Main text color for dark backgrounds */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-contact__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: 3.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

/* Form Section */
.page-contact__form-section {
    background: #B71C1C; /* Background */
    padding: 60px 20px;
    color: #FFF5E1; /* Text Main */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-contact__form-wrapper {
    flex: 1;
    background: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #FFF5E1; /* Text Main */
}

.page-contact__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
}

.page-contact__section-description {
    font-size: 1.05em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFF5E1; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
    padding: 12px 15px;
    border: 1px solid #7A0E0E; /* Deep Red border */
    border-radius: 5px;
    font-size: 1em;
    background-color: #A01F1F; /* Slightly lighter red for input background */
    color: #FFF5E1; /* Text Main */
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #F2B544; /* Border on focus */
    box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.3); /* Glow on focus */
}

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

.page-contact__form-actions {
    margin-top: 10px;
}

.page-contact__btn-submit {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for gold button */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 216, 106, 0.4);
}

.page-contact__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Other Channels Section */
.page-contact__other-channels {
    background: #B71C1C; /* Background */
    padding: 60px 20px;
    text-align: center;
    color: #FFF5E1; /* Text Main */
}

.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-contact__channel-card {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF5E1; /* Text Main */
}

.page-contact__channel-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Adjusted for aspect ratio, still >= 200px width */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFF5E1; /* Text Main */
}

.page-contact__channel-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #FFF5E1; /* Text Main */
}

.page-contact__btn-channel {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for gold button */
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-channel:hover {
    transform: translateY(-1px);
}

/* FAQ Section */
.page-contact__faq-section {
    background: #B71C1C; /* Background */
    padding: 60px 20px;
    text-align: center;
    color: #FFF5E1; /* Text Main */
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #7A0E0E; /* Deep Red border */
    overflow: hidden;
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF5E1; /* Text Main */
    background: #D32F2F; /* Card BG */
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: #7A0E0E; /* Deep Red on hover */
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF5E1; /* Text Main */
}
.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #F2B544; /* Border color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    background: #7A0E0E; /* Deep Red for answer background */
    border-radius: 0 0 5px 5px;
    color: #FFF5E1; /* Text Main */
    text-align: left;
}

.page-contact__cta-section {
    margin-top: 40px;
}

.page-contact__cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #FFF5E1; /* Text Main */
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for gold button */
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 216, 106, 0.5);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.8em;
    }
    .page-contact__form-section .page-contact__container,
    .page-contact__other-channels .page-contact__channels-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-contact__image-block {
        order: -1; /* Image above form on smaller screens */
    }
    .page-contact__form-wrapper,
    .page-contact__image-block {
        width: 100%;
    }
    .page-contact__channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-contact__channel-icon {
        width: 180px;
        height: 135px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-contact__main-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }
    .page-contact__intro-text {
        font-size: 1em;
        padding: 0 10px;
    }
    .page-contact__hero-content {
        padding: 30px 15px;
    }

    /* Form Section */
    .page-contact__form-section {
        padding: 40px 15px;
    }
    .page-contact__container {
        flex-direction: column;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__form-wrapper {
        padding: 30px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__section-title {
        font-size: 1.8em !important;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__form-label {
        font-size: 1em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .page-contact__btn-submit {
        padding: 12px 25px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center button if it's the only one */
    }
    .page-contact__form-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Other Channels Section */
    .page-contact__other-channels {
        padding: 40px 15px;
    }
    .page-contact__channels-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__channel-card {
        padding: 25px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__channel-icon {
        width: 160px;
        height: 120px;
    }
    .page-contact__channel-title {
        font-size: 1.3em;
    }
    .page-contact__channel-text {
        font-size: 0.95em;
    }
    .page-contact__btn-channel {
        padding: 10px 15px !important;
        font-size: 0.95em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 15px;
    }
    .page-contact__faq-list {
        margin: 30px auto 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px !important;
    }
    .page-contact__faq-qtext {
        font-size: 1em !important;
    }
    .page-contact__faq-toggle {
        font-size: 20px !important;
        width: 24px;
        height: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 0.95em;
    }
    .page-contact__cta-text {
        font-size: 1.1em;
    }
    .page-contact__btn-primary {
        padding: 12px 25px !important;
        font-size: 1.1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image and container rules for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column; /* Mobile buttons stack vertically */
    }
}