/* General styling for the contact page */
.page-contact {
    background-color: #0A0A0A; /* Background from custom palette */
    color: #FFF6D6; /* Text Main from custom palette for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space at the bottom */
}

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    position: relative;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-contact__hero-image {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.page-contact__hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__main-title {
    font-size: 3.2em;
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #FFF6D6; /* Text Main */
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

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

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

.page-contact__method-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-contact__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-contact__card-title {
    font-size: 1.8em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

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

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text for light button */
    border: none;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
}

.page-contact__btn-secondary:hover {
    background-color: #F2C14E; /* Main color */
    color: #111111; /* Dark text for light button */
}

.page-contact__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG for light-bg section */
    color: #FFF6D6; /* Text Main */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #0A0A0A; /* Background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #3A2A12; /* Border */
    border-radius: 5px;
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    width: auto;
    display: block;
    margin: 20px auto 0 auto;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
}

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

.page-contact__why-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-contact__why-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__why-item-title {
    font-size: 1.6em;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__why-item-text {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
}

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

.page-contact__faq-item {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD36B; /* Glow color */
    cursor: pointer;
    background-color: #0A0A0A; /* Background */
    list-style: none; /* For details summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-contact__faq-question::marker {
    display: none; /* Hide default marker */
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    border-top: 1px solid #3A2A12; /* Border */
}

.page-contact__faq-answer p {
    margin: 0;
}


/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0A0A0A; /* Background */
}

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

.page-contact__cta-buttons .page-contact__btn-primary,
.page-contact__cta-buttons .page-contact__btn-secondary {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px; /* Consistent small padding for mobile */
        margin-bottom: 30px;
    }

    .page-contact__hero-image {
        padding-top: 75%; /* 4:3 aspect ratio for mobile hero */
    }

    .page-contact__hero-content {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* clamp for H1, no fixed large value */
        margin-bottom: 10px;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    /* Section Titles and Descriptions */
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Methods Section */
    .page-contact__methods-section {
        padding: 40px 0;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__card-title {
        font-size: 1.5em;
    }

    .page-contact__card-text {
        font-size: 0.95em;
    }

    /* Contact Form Section */
    .page-contact__form-section {
        padding: 40px 0;
    }

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

    .page-contact__form-label {
        font-size: 0.95em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
        font-size: 0.95em;
    }

    .page-contact__form-submit-btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    /* Why Contact Section */
    .page-contact__why-contact-section {
        padding: 40px 0;
    }

    .page-contact__why-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    .page-contact__why-item {
        padding: 20px;
    }

    .page-contact__why-item-title {
        font-size: 1.4em;
    }

    .page-contact__why-item-text {
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Commitment Section */
    .page-contact__commitment-section {
        padding: 40px 0;
    }

    .page-contact__cta-buttons {
        margin-top: 30px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-contact__cta-buttons .page-contact__btn-primary,
    .page-contact__cta-buttons .page-contact__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Global image and container responsive rules */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__why-contact-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}