/* style/contact.css */

/* --- Base Styles for .page-contact --- */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    font-size: 16px;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: #0A0A0A; /* Background */
}

.page-contact__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 15px;
}

.page-contact__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
}

.page-contact__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    color: #FFD36B; /* Auxiliary color for emphasis */
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* --- General Button Styles --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #333333; /* Dark text for contrast on light gradient, overriding default white for WCAG AA */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E6B02F 100%);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Auxiliary color */
    border: 2px solid #FFD36B; /* Border color from auxiliary */
    box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-contact__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    color: #FFF6D6; /* Text Main */
    border-color: #FFF6D6; /* Text Main */
    transform: translateY(-2px);
}

.page-contact__btn-large {
    padding: 16px 32px;
    font-size: 1.15em;
    min-width: 250px;
}

/* --- General Section Styles --- */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #FFD36B; /* Auxiliary color */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

.page-contact__keyword {
    color: #F2C14E; /* Main color for keywords */
    font-weight: bold;
}

/* --- Info Section (Contact Methods) --- */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-contact__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    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;
    align-items: center;
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-contact__card-image {
    width: 100%;
    max-width: 250px; /* Ensure images are not too large within cards, but still > 200px */
    min-width: 200px; /* Explicitly ensure minimum display size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.6em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-contact__card-text {
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than card bg */
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #F2C14E; /* Main color */
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

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

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly darker than card bg for question */
    color: #FFD36B; /* Auxiliary color */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1em;
    color: inherit;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Main color */
}

.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-out, padding 0.3s ease-out;
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 1em;
}

.page-contact__faq-answer a {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
    text-decoration: none;
}

/* --- CTA Banner Section --- */
.page-contact__cta-banner {
    background: linear-gradient(135deg, #F2C14E, #FFD36B);
    padding: 80px 0;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-contact__cta-title {
    font-size: clamp(2em, 4vw, 3em);
    color: #333333; /* Dark text for contrast on light background */
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}

.page-contact__cta-description {
    font-size: 1.15em;
    color: #333333; /* Dark text for contrast on light background */
    max-width: 900px;
    margin: 0 auto 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-contact__hero-image {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    /* Mobile image adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Mobile container adaptation */
    .page-contact__container,
    .page-contact__hero-container,
    .page-contact__contact-form,
    .page-contact__cta-buttons,
    .page-contact__contact-methods,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO section padding for mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }

    .page-contact__hero-content {
        padding: 0 10px;
    }

    .page-contact__main-title {
        font-size: 2.2em;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    /* Mobile button adaptation */
    .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;
    }

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

    .page-contact__card-image {
        max-width: 250px; /* Keep minimum size for content images */
        min-width: 200px;
    }
}