.page-contact-revamp {
    font-family: NexaReg;
    color: var(--secondary-500);
}

.contact-section {
    background: url('/NewJBATheme/assets/img/contact/bg-contact-us.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    /* Changed to column to allow breadcrumb above */
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 50px 0 0;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 19.19%, #FFF 64.14%);
    z-index: 1;
}

.contact-content-flex {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

.contact-info-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 350px;
}

.contact-info-left .title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--secondary-500);
    line-height: 1.25;
}

.contact-form-right {
    width: 100%;
    padding: 0 0 50px;
}

.contact-us-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--secondary-500);
}

.contact-asset-wrapper {
    margin-top: auto;
}

.contact-woman-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: -1px;
    /* Ensure no gap at bottom */
}

/* Form Card Refinement */
.contact-form-card {
    background: #FFFFFF;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(238, 238, 239, 0.2);
}

.form-contact-revamp .form-group {
    margin-bottom: 24px;
}

.form-contact-revamp .form-control {
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}


.form-contact-revamp .form-control::placeholder {
    color: var(--neutral-400);
    opacity: 1;
}

.form-contact-revamp .form-control:focus {
    border-color: var(--neutral-200);
    box-shadow: none;
    outline: none;
}

.form-contact-revamp select.form-control {
    padding: 0px 16px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-contact-revamp textarea.form-control {
    height: auto;
    resize: none;
}


.btn-file-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-500);
    font-weight: 400;
    transition: all 0.3s ease;
    width: 156px;
    height: 48px;
    flex-shrink: 0;
}

.btn-file-custom:hover {
    background: var(--neutral-100);
}

.file-limit-text {
    display: block;
    font-size: 16px;
    color: var(--neutral-600);
    line-height: 1.5;
}

#file-list-container {
    font-size: 14px;
    color: var(--neutral-600);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submit Button */
.btn-revamp-submit {
    background-color: var(--secondary-500);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 48px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 156px;
    height: 48px;
}

.btn-revamp-submit:hover:not(:disabled) {
    background-color: var(--secondary-400);
}

.btn-revamp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.lds-ring {
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 2px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .contact-section {
        padding: 16px 0 40px;
        background: url('/NewJBATheme/assets/img/contact/bg-contact-us.webp');
        background-size: cover;
    }

    .contact-content-flex {
        flex-direction: column;
    }

    .contact-info-left {
        text-align: center;
        max-width: none;
    }

    .contact-info-left .title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .overlay-bg {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 19.19%, #FFF 80%);
    }
}

@media (max-width: 767px) {
    .contact-form-card {
        padding: 24px 15px;
    }

    .btn-revamp-submit {
        width: 100%;
    }

    #file-list-container {
        white-space: normal;
        font-size: 12px;
    }
}
