body{
    background-image: url(/form-service/images/layer-home.png);
    overflow: auto;
    scroll-behavior: smooth;
}
.nav-item{
    background-color: #f8f9fa;
}

.form-services-custom{
    margin-top: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.form-section {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}
.menu-form{
    grid-template-columns: repeat(3, 1fr);
}

.phi-thong-quan h4, .phi-dich-vu h4, .phi-van-chuyen h4, .gia-tong h4, .thue-bang h4{
    font-size: 1rem !important;
}

/* #clearance-fees, #service-fee, #deli-price, #total-price,
.provisional-price, #total-price-package,
#clearance-fees-vn, #deli-price-vn, #total-price-vn,
#total-price-us, #total-price-package-USD,
#clearance-fees-vn-us, #deli-price-vn-us,
#us-tax-input{
    display:none;
}*/

.phi-thong-quan, .phi-dich-vu, .phi-van-chuyen, .thue-bang{
    background-color: #F4A215;
}
.gia-tong{
    background-color: #1F365C;
    margin: 0 5px !important;
}
.phi-thong-quan h4, .phi-dich-vu h4, .phi-van-chuyen h4, .gia-tong h4, .thue-bang h4{
    color: #fff;
}
.phi-dich-vu {
    margin-left: 10px !important;
    margin-right: 10px !important;
}
.thue-bang{
    margin-left: 10px !important;
}
.mt-3{
    justify-content: center;
}

.is-invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.phi-thong-quan, .phi-dich-vu, .phi-van-chuyen, .gia-tong, .thue-bang {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0;
    /*background-color: #f0f0f5;*/
    /*box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);*/
    color: #555;
    max-width: 22%;
}
.gia-tong{
    max-width: 45%;
}

.banner-form{
    padding-bottom: 30px;
}

.form-section .section-title {
    font-weight: bold;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    font-size: 1.5rem;
}

.info-item input, .info-item select {
    flex: 1;
}

.header-services .navbar{
    border-radius: 0 0 10px 10px;
}

.header-services .navbar-nav a{
    color: #8c95a2;
    font-weight: 700;
}

.header-services .navbar-nav a:hover{
    color: #1f365c;
    border-bottom: 2px solid #ffb536;
}

.form-services-custom h1{
    font-weight: bolder;
    color: #1f365c;
}
.package-row .col-md-2{
    width: 20%;
}

#sendToUsaForm .mt-3{
    justify-content: end;
}

#total-prices-us{
    display: none;
}
#sendToUsaForm #total-price-vn{
    display: inline !important;
}

#loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.loading-container {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);*/
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#loading-popup.show {
    opacity: 1;
    visibility: visible;
}

.custom-spinner img {
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}
/* Keyframe quay vòng */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-popup.show {
    opacity: 1;
    visibility: visible;
}

#loading-popup.show .loading-container {
    opacity: 1;
    transform: scale(1);
}




#loading-popup2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#loading-popup2 .loading-container {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);*/
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#loading-popup2.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

#loading-popup2 .custom-spinner img {
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}

#loading-popup2.show {
    opacity: 1;
    visibility: visible;
}

#loading-popup2.show .loading-container {
    opacity: 1;
    transform: scale(1);
}






#loading-popup3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#loading-popup3 .loading-container {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);*/
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#loading-popup3.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

#loading-popup3 .custom-spinner img {
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}

#loading-popup3.show {
    opacity: 1;
    visibility: visible;
}

#loading-popup3.show .loading-container {
    opacity: 1;
    transform: scale(1);
}

@media only screen and (min-width: 1024px){
    .banner-form-mb{
        display: none;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px){
    .row-custom .col-custom{
        width: 30%;
    }
    .col-custom2{
        width: 25%;
    }
    .package-row .col,
    .package-row-vn .col{
        width: 33.33333%;
        padding: 5px;
    }
    .banner-form{
        width: 100%;
    }
    .banner-form-mb{
        display: none;
    }
}

@media only screen and (max-width: 767px){
    .banner-form{
        display: none;
    }
    .banner-form-mb{
        width: 100%;
    }
    .row-custom,
    .row-custom2{
        margin-bottom: unset !important;
    }

    .row-custom .col-custom,
    .col-custom2,
    .col-custom3{
        padding: 5px;
    }
    .package-row,
    .package-row-vn{
        margin-bottom: unset !important;
    }
    .package-row .col,
    .package-row-vn .col{
        padding: 5px;
    }
    .row-cutom4{
        margin-bottom: 1rem !important;
    }
    .row-cutom4 .col,
    .row-cutom4 .col-new{
        padding: 0 4px;
    }
    #requestForm .phi-thong-quan,
    #requestForm .phi-dich-vu,
    #requestForm .phi-van-chuyen,
    #requestForm .gia-tong,
    #requestForm .thue-bang{
        max-width: 100%;
    }
    #requestForm .thue-bang{
        margin-right: 10px;
    }
    #requestForm .gia-tong{
        margin: 5px 0 !important;
    }
    #sendToUsaForm .col,
    #sendToUsaForm .col-12{
        width: 100%;
    }
    #sendToUsaForm .btn-group{
        margin-top: 1.2em;
    }
    #sendToUsaForm .gia-tong{
        max-width: 100%;
        margin: 5px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px){
    #requestForm .col-12,
    #sendToVnForm .col-12{
        width: 50%;
    }
    #requestForm .col-md-4,
    #sendToVnForm .col-md-4{
        width: 100%;
    }
}

label{
    font-weight: 600;
}



/* Form email Mua ho hang hoa */
.form-mail-container{
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.form-mail-container h2{
    text-align: center;
}

.header-form{
    display: flex;
    justify-content: space-evenly;
}
.form-mail-container .info-person{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 200px;
}

.form-mail-container .info-person>p{
    line-height: 0.5em;
}

.header-form img{
    width: 150px;
    height: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #FFF1CC;
}

.order-table th, .order-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
}

.order-table th {
    width: 40%;
    font-style: italic;
}

.form-mail-container .note,
.form-mail-container .highlight,
.form-mail-container .payment-info{
    color: red;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    border: 2px solid orange;
}

.form-mail-container .highlight,
.form-mail-container .payment-info{
    text-align: center;
    margin-top: unset;
    border-top: unset;
}
.form-mail-container .payment-info{
    color: #000;
}
.form-mail-container .highlight>p{
    font-size: 24px;
    font-style: italic;
    line-height: 0.5em;
}
#sendToVnForm .gia-tong{
    max-width: 100%;
    width: 48%;
    margin-top: 5px !important;
}
#sendToVnForm .phi-thong-quan,
#sendToVnForm .phi-van-chuyen{
    max-width: 100% !important;
    width: 48%;
    margin: 5px;
}
#sendToVnForm .phi-thong-quan{
    background-color: #F4A215;
}
#sendToVnForm .phi-van-chuyen{
    background-color: #F4A215;
}

#sendToVnForm .mt-3{
    justify-content: right;
}


@media only screen and (min-width: 768px) and (max-width: 1023px){
    .form-mail-container .highlight>p{
        line-height: 1.2em;
    }
}



@media only screen and (max-width: 767px){
    .header-form{
        flex-direction: column;
    }

    .form-mail-container .info-person{
        grid-template-columns: 1fr;
    }
    .menu-form {
        padding-top: 20px;
        grid-template-columns: 1fr;
    }

    .form-mail-container .highlight>p{
        line-height: 1.2em;
    }
    #sendToVnForm .phi-thong-quan,
    #sendToVnForm .phi-van-chuyen,
    #sendToVnForm .gia-tong{
        width: 100%;
    }
}
