/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main color, chosen for contrast with #0D0E12 background */
    background-color: #0D0E12; /* Background color */
}

/* Ensure body padding-top is handled by shared.css, this page's sections start with small padding */
.page-contact__hero-section,
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-section {
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Min size for all images */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFA53A; /* Using auxiliary color for emphasis */
    line-height: 1.2;
}

.page-contact__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 30px;
    color: #FFF3E6;
}

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__method-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-contact__btn-secondary {
    background: #17191F; /* Card BG as background */
    color: #FFA53A; /* Auxiliary color for text */
    border: 2px solid #A84F0C; /* Border color */
}

.page-contact__btn-secondary:hover {
    transform: translateY(-2px);
    background: #0D0E12; /* Background color on hover */
    color: #FFB04D; /* Glow color on hover */
}

.page-contact__method-link {
    background: #FF8C1A; /* Main color */
    color: #ffffff;
    border: none;
    margin-top: 15px;
    font-size: 0.9em;
}

.page-contact__method-link:hover {
    opacity: 0.9;
}

/* Section Common Styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-contact__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #FFA53A;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF3E6;
}

/* Info Section */
.page-contact__info-section {
    background-color: #0D0E12; /* Background color */
}

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

.page-contact__method-card {
    background-color: #17191F; /* Card BG color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF3E6; /* Text Main color */
    border: 1px solid #A84F0C; /* Border color */
}

.page-contact__method-icon {
    width: 200px;
    height: 150px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min image size */
    min-height: 150px;
}

.page-contact__method-title {
    font-size: 1.5rem;
    color: #FFB04D; /* Glow color for titles */
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    margin-bottom: 10px;
}

.page-contact__operating-hours {
    margin-top: 60px;
    text-align: center;
    color: #FFF3E6;
}

.page-contact__hours-title {
    font-size: 1.8rem;
    color: #FFA53A;
    margin-bottom: 15px;
}

.page-contact__hours-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Form Section */
.page-contact__form-section {
    background-color: #0D0E12; /* Background color */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 18, 0.8); /* Dark overlay to improve text readability */
    z-index: 0;
}

.page-contact__form-section .page-contact__container {
    position: relative;
    z-index: 1;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #17191F; /* Card BG color */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 8px;
    background-color: #0D0E12; /* Background color for inputs */
    color: #FFF3E6;
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFA53A; /* Auxiliary color on focus */
    box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

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

/* FAQ Section */
.page-contact__faq-section {
    background-color: #0D0E12; /* Background color */
}

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

.page-contact__faq-item {
    background-color: #17191F; /* Card BG color */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #A84F0C; /* Border color */
    color: #FFF3E6;
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15rem;
    color: #FFB04D; /* Glow color for question */
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
    background-color: rgba(255, 140, 26, 0.1); /* Slight hover effect with main color */
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF3E6;
}

/* CTA Section */
.page-contact__cta-section {
    background-color: #0D0E12; /* Background color */
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-contact__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-image-wrapper,
    .page-contact__method-card,
    .page-contact__contact-form,
    .page-contact__faq-item,
    .page-contact__container,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__method-link {
        width: 100% !important;
        padding: 15px 10px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 15px; /* Adjust section padding for mobile */
    }

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

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-contact__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack contact methods */
    }

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

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

    .page-contact__faq-item summary {
        font-size: 1rem;
        padding: 18px 20px;
    }

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