.page-contact {
    background-color: #100224;
    color: #F3F8FF;
    padding-bottom: 40px;
}

.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px; /* Limit height for aesthetic */
    filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.page-contact__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    z-index: 1;
    color: #F3F8FF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2C14E;
    letter-spacing: -0.02em;
}

.page-contact__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #AFC4E8;
}

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

.page-contact__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #F2C14E;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #AFC4E8;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-contact__form-section {
    padding: 60px 0;
    background-color: #08162B;
}

.page-contact__contact-form {
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #F3F8FF;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #244D84;
    border-radius: 8px;
    background-color: #10233F;
    color: #F3F8FF;
    font-size: 1rem;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #AFC4E8;
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #1D5FD1;
    box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3);
}

.page-contact__submit-button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.page-contact__submit-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-contact__info-section {
    padding: 60px 0;
    background-color: #100224;
}

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

.page-contact__info-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #244D84;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__card-bg {
    background-color: #10233F;
}

.page-contact__info-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px #4FA8FF);
}

.page-contact__info-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2C14E;
}

.page-contact__info-text {
    font-size: 1rem;
    color: #AFC4E8;
    line-height: 1.6;
    margin-bottom: 5px;
}

.page-contact__live-chat-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.page-contact__live-chat-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-contact__faq-section {
    padding: 60px 0;
    background-color: #08162B;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.page-contact__faq-item {
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #244D84;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F3F8FF;
    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: #1D5FD1;
    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: #AFC4E8;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding-top: 0;
}

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

.page-contact__faq-answer a {
    color: #1D5FD1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__faq-answer a:hover {
    color: #2B73F6;
    text-decoration: underline;
}

/* Ensure all content area images are at least 200x200 */
.page-contact__info-icon {
    min-width: 80px; /* Smallest icon, but still functional */
    min-height: 80px;
    width: 80px;
    height: 80px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-image {
        max-height: 500px;
    }

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

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

    .page-contact__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

    .page-contact__info-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-contact__hero-section {
        padding-bottom: 30px;
    }

    .page-contact__hero-image {
        max-height: 400px;
    }

    .page-contact__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

    .page-contact__hero-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

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

    .page-contact__section-description {
        font-size: 0.95rem;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .page-contact__submit-button,
    .page-contact__live-chat-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .page-contact__info-title {
        font-size: 1.2rem;
    }

    .page-contact__info-text {
        font-size: 0.9rem;
    }

    .page-contact__faq-question {
        font-size: 1.1rem;
    }

    .page-contact__faq-answer {
        font-size: 0.9rem;
    }

    /* Enforce min-width/height for images in content area */
    .page-contact__form-section img, 
    .page-contact__info-section img, 
    .page-contact__faq-section img {
        min-width: 200px; 
        min-height: 200px; 
        width: auto; /* Allow auto-scaling but respect min-size */
        height: auto;
    }

    .page-contact__info-icon {
        min-width: 80px;
        min-height: 80px;
        width: 80px;
        height: 80px;
    }
}

/* Mobile content area images max-width protection */
@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 12px;
    }

    .page-contact img {
        max-width: 100%;
        height: auto;
    }

    /* Specific rule for content images to prevent overflow and ensure minimum size */
    .page-contact__form-section img, 
    .page-contact__info-section img, 
    .page-contact__faq-section img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-contact__info-icon {
        max-width: 80px !important;
        height: auto !important;
        min-width: 80px;
        min-height: 80px;
    }
}