/* style/contact.css */

/* General page styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Main text color for dark body background */
    background-color: #B71C1C; /* Body background from custom palette */
}

.page-contact__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-contact__section {
    padding: 40px 0;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #7A0E0E; /* Deep Red from palette, as a base for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-image-wrap {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1920px; /* Ensure image doesn't stretch too wide */
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-contact__hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any background effects */
    z-index: 1;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #FFD86A; /* Gold color for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-contact__description {
    font-size: 1.15rem;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    min-width: 180px; /* Minimum width for buttons */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold for text */
    border: 2px solid #FFD86A; /* Gold border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary:hover {
    background-color: #FFD86A;
    color: #7A0E0E; /* Deep Red for text on gold hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #FFD86A; /* Gold for section titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

/* Paragraphs */
.page-contact p {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
    text-align: justify;
}

/* Images and Figures */
.page-contact__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.page-contact__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

.page-contact__figcaption {
    font-size: 0.9rem;
    color: #F2B544; /* Border color for figcaption */
    margin-top: 10px;
    text-align: center;
}

/* Contact Methods Section */
.page-contact__method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-contact__card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure cards have some height */
}

.page-contact__card-dark {
    color: #FFF5E1; /* Text Main color for card content */
}

.page-contact__card-title {
    font-size: 1.5rem;
    color: #FFD86A; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card p {
    font-size: 0.95rem;
    color: #FFF5E1;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-contact__phone-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #F4D34D; /* Gold color for phone number */
}

.page-contact__btn-gold {
    background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%); /* Gold gradient button */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    margin-top: auto; /* Push button to the bottom */
}

.page-contact__btn-gold:hover {
    background: linear-gradient(180deg, #E6B800 0%, #F4D34D 100%);
}

/* Contact Form Section */
.page-contact__form {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 40px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1rem;
    color: #FFD86A; /* Gold for form labels */
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #F2B544; /* Border color */
    border-radius: 6px;
    font-size: 1rem;
    background-color: #7A0E0E; /* Deep Red for input background */
    color: #FFF5E1; /* Text Main color for input text */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.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 {
    border-color: #FFCC66; /* Glow color on focus */
    outline: none;
    box-shadow: 0 0 8px rgba(255, 204, 102, 0.5); /* Soft glow */
}

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

.page-contact__btn-submit {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-submit:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-contact__faq-item {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
    font-size: 1.2rem;
    color: #FFD86A; /* Gold for FAQ questions */
    padding: 18px 25px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-contact__faq-answer {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main color */
    padding: 0 25px 20px;
    margin: 0;
    text-align: justify;
}

.page-contact__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: #7A0E0E; /* Deep Red for a distinct section background */
    padding: 60px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        padding: 0 30px;
    }
    .page-contact__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-contact__description {
        font-size: 1.05rem;
    }
    .page-contact__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-contact__method-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__card {
        padding: 25px;
    }
    .page-contact__form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 40px;
    }
    .page-contact__hero-image-wrap {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-contact__hero-content {
        padding: 0 15px;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 10px;
    }
    .page-contact__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* 4. Buttons and button containers */
    .page-contact__btn,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"],
    .page-contact__btn-submit {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        min-width: unset; /* Remove min-width for mobile */
    }
    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex properties apply */
        flex-direction: column; /* Stack buttons vertically */
    }

    /* 2. Single column long text containers */
    .page-contact__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__section {
        padding: 30px 0;
    }
    .page-contact__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 20px;
    }
    .page-contact p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .page-contact__method-cards {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .page-contact__card {
        padding: 25px;
        min-height: unset;
    }
    .page-contact__card-title {
        font-size: 1.3rem;
    }
    .page-contact__form {
        padding: 25px;
        margin: 30px auto;
    }
    .page-contact__form-label {
        font-size: 1rem;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* 3. Generic images and figures */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block; /* Ensure block-level for proper sizing */
        min-width: 200px; /* Enforce minimum image size */
        min-height: 200px; /* Enforce minimum image size */
    }
    .page-contact__figure {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__figcaption {
        font-size: 0.85rem;
    }

    /* 5. FAQ blocks */
    .page-contact__faq-item {
        margin-bottom: 10px;
    }
    .page-contact__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }
    .page-contact__cta-center {
        margin-top: 30px;
    }
}