/* General page styling for .page-contact */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFF3E6;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-contact__section-description {
    font-size: 18px;
    color: #FFF3E6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__submit-button,
.page-contact__method-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__cta-button:hover,
.page-contact__submit-button:hover,
.page-contact__method-button:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Lighter hover effect */
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    max-width: 1200px; /* Constrain image width */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 15px;
}

.page-contact__main-title {
    font-size: clamp(30px, 4vw, 48px); /* clamp for H1 font size */
    font-weight: bold;
    color: #FFF3E6;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 20px;
    color: #FFF3E6;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background: #0D0E12;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #17191F; /* Card BG */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border */
}

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-contact__contact-form {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #A84F0C;
    background: rgba(255, 255, 255, 0.05);
    color: #FFF3E6;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

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

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

/* Other Methods Section */
.page-contact__other-methods-section {
    padding: 80px 0;
    background: #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: #17191F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.2);
}

.page-contact__method-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* For image icons */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    max-width: 100%;
}

.page-contact__method-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFF3E6;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 16px;
    color: #FFF3E6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.page-contact__phone-number {
    font-size: 18px;
    color: #FFA53A;
    margin-top: 20px;
    font-weight: bold;
}

.page-contact__phone-link {
    color: #FFA53A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__phone-link:hover {
    color: #FFB04D;
    text-decoration: underline;
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #A84F0C; /* Border */
    overflow: hidden;
    background: #17191F; /* Card BG */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF3E6;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: rgba(255, 140, 26, 0.1); /* Slight hover effect */
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF3E6;
}
.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFA53A;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 25px 25px;
    background: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
    border-radius: 0 0 8px 8px;
    color: #FFF3E6;
    opacity: 0.9;
}
.page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Why Choose Section */
.page-contact__why-choose-section {
    padding: 80px 0 100px;
    background: #0D0E12;
    text-align: center;
}

.page-contact__cta-button--bottom {
    margin-top: 40px;
}

/* Image styles for all images in the page-contact scope */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* --- Responsive Design --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 42px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .page-contact__form-image,
    .page-contact__contact-form {
        max-width: 100%;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-icon {
        width: 80px;
        height: auto;
    }
    .page-contact__faq-qtext {
        font-size: 17px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
        min-height: unset;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
    }
    .page-contact__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-contact__cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section-title {
        font-size: 28px;
        padding-top: 30px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-contact__form-section,
    .page-contact__other-methods-section,
    .page-contact__faq-section,
    .page-contact__why-choose-section {
        padding: 40px 0;
    }

    .page-contact__form-wrapper {
        padding: 20px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__method-icon {
        width: 60px;
        height: auto;
        min-width: 200px; /* Min image size */
        min-height: 200px; /* Min image size */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__method-title {
        font-size: 20px;
    }
    .page-contact__method-text {
        font-size: 15px;
    }
    .page-contact__method-button {
        padding: 10px 15px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__phone-number {
        font-size: 16px;
    }

    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-qtext {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
    }
    .page-contact__faq-answer p {
        font-size: 15px;
    }

    /* General image responsiveness for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__form-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__cta-button--bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    /* Button container 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;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
}

/* Ensure minimum image sizes are respected for content images */
.page-contact__form-image,
.page-contact__method-icon {
    min-width: 200px;
    min-height: 200px;
}