/* style/contact.css */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0D0E12; /* Custom background color */
    color: #FFF3E6; /* Custom text color */
    line-height: 1.6;
}

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

.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.page-contact__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    font-weight: bold;
    color: #FFB04D; /* Glow color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #FFB04D;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1em;
    color: #FFF3E6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 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: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.7);
}

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

.page-contact__btn-secondary:hover {
    background: #FF8C1A;
    color: #ffffff;
    border-color: #FF8C1A;
}

/* Contact Methods */
.page-contact__contact-methods {
    padding: 60px 0;
    background-color: #0D0E12;
}

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

.page-contact__method-card {
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    max-width: 100%;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #FFB04D;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 0.95em;
    color: #FFF3E6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Contact Form */
.page-contact__contact-form-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: #17191F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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: #FFB04D;
}

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFB04D;
    box-shadow: 0 0 5px rgba(255, 176, 77, 0.5);
}

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

.page-contact__form-submit {
    width: auto; /* Allow button to size naturally */
    min-width: 150px;
    margin-top: 20px;
}

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFB04D;
    cursor: pointer;
    background-color: #17191F;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FF8C1A;
    margin-left: 15px;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom-color: #A84F0C;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−";
}

.page-contact__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #FFF3E6;
    background-color: #17191F;
}

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

/* FAQ CTA */
.page-contact__cta-section {
    text-align: center;
    margin-top: 50px;
}

.page-contact__cta-text {
    font-size: 1.2em;
    color: #FFF3E6;
    margin-bottom: 30px;
}

/* Why Choose Us Section */
.page-contact__why-choose-us {
    padding: 60px 0;
    background-color: #0D0E12;
}

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

.page-contact__feature-item {
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    max-width: 100%;
}

.page-contact__feature-title {
    font-size: 1.4em;
    color: #FFB04D;
    margin-bottom: 10px;
}

.page-contact__feature-text {
    font-size: 0.95em;
    color: #FFF3E6;
    flex-grow: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-contact__methods-grid,
    .page-contact__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

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

    .page-contact__section-description {
        font-size: 0.9em;
    }

    .page-contact__methods-grid,
    .page-contact__features-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }

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

    .page-contact__hero-image,
    .page-contact__method-icon,
    .page-contact__feature-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-contact__hero-section,
    .page-contact__contact-methods,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us,
    .page-contact__method-card,
    .page-contact__feature-item,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Button specific mobile adaptations */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-contact__hero-content .page-contact__btn-primary {
        margin-bottom: 0; /* No extra margin if it's the only button */
    }

    .page-contact__cta-section .page-contact__btn-primary {
        margin-bottom: 0; /* No extra margin if it's the only button */
    }

    /* If multiple buttons in a group, stack them */
    .page-contact__method-card .page-contact__btn-secondary {
        margin-top: 15px;
    }
    .page-contact__form-submit {
        width: 100% !important;
    }
}