.page-contact {
    background-color: #0D0E12; /* Custom background color */
    color: #FFF3E6; /* Custom text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some padding at the bottom */
    max-width: 100%;
    overflow-x: hidden;
}

.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for hero section */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

.page-contact__hero-image {
    width: 100%;
    height: auto; /* Responsive height */
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9; /* Default aspect ratio for hero */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

.page-contact__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted for better desktop/mobile balance */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF3E6;
}

.page-contact__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button color */
    color: #FFF3E6; /* Text Main color */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure buttons are not too small */
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-contact__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-contact__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #FFF3E6;
    position: relative;
    padding-bottom: 10px;
}

.page-contact__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF8C1A;
    border-radius: 2px;
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

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

.page-contact__info-card {
    background-color: #17191F;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C;
    transition: transform 0.3s ease;
}

.page-contact__info-card:hover {
    transform: translateY(-5px);
}

.page-contact__card-title {
    font-size: 1.6rem;
    color: #FF8C1A;
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #FFF3E6;
    margin-bottom: 25px;
}

.page-contact__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 150px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__card-button:hover {
    background: #FFB04D;
}

.page-contact__form-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto 40px auto;
    background-color: #17191F;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C;
}

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

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

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

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

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

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-contact__submit-button:hover {
    transform: translateY(-2px);
    background: #FFB04D;
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-contact__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
}

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

.page-contact__faq-item {
    background-color: #17191F;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #A84F0C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    font-size: 1.3rem;
    color: #FF8C1A;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-contact__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #FFB04D;
    transition: transform 0.3s ease;
}

.page-contact__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-contact__faq-answer {
    font-size: 1rem;
    color: #FFF3E6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.page-contact__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    opacity: 1;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-image-wrapper {
        aspect-ratio: 16/9; /* Maintain aspect ratio on smaller screens */
    }
    .page-contact__hero-image {
        aspect-ratio: 16/9;
    }
    .page-contact__main-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem); /* Slightly larger on mid-size mobiles */
    }
    .page-contact__section-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    .page-contact__submit-button {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-image,
    .page-contact__content-image {
        max-width: 100%;
        height: auto;
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section {
        padding: 15px 10px;
    }
    .page-contact__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-contact__description {
        font-size: 1rem;
    }
    .page-contact__card-title {
        font-size: 1.4rem;
    }
    .page-contact__faq-question {
        font-size: 1.2rem;
    }
    /* Ensure content area images are not smaller than 200px */
    .page-contact__hero-image,
    .page-contact__content-image {
        min-width: 200px;
        min-height: 200px;
    }
    /* Mobile overflow prevention */
    .page-contact {
        overflow-x: hidden;
    }
}

@media (max-width: 549px) {
    .page-contact__main-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
    .page-contact__description {
        font-size: 0.95rem;
    }
    .page-contact__cta-button {
        padding: 10px 20px;
        min-width: unset;
    }
    .page-contact__section-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    .page-contact__info-card {
        padding: 20px;
    }
    .page-contact__card-title {
        font-size: 1.2rem;
    }
    .page-contact__card-text {
        font-size: 0.9rem;
    }
    .page-contact__card-button {
        padding: 8px 15px;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }
    .page-contact__submit-button {
        font-size: 1rem;
    }
    .page-contact__faq-question {
        font-size: 1.1rem;
    }
    .page-contact__faq-answer {
        font-size: 0.9rem;
    }
    /* Ensure no horizontal scroll for main content */
    .page-contact {
        overflow-x: hidden;
    }
}