/* Banner Section */
.gaq-banner {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.gaq-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.gaq-banner img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    position: relative;
}

.headline {
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    gap: 100px;
}

.text-left {
    width: 540px;
    padding: 10px;
}

.img-right {
    width: 320px;
    height: auto;
    border-radius: 5px;
}

.img-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-left h1 {
    color: #f9f9f9;
    font-size: 35px;
    font-weight: 700;
}

.shipping-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    color: #f9f9f9;
    font-size: 16px;
    font-weight: 700;
}

.shipping-features li {
    margin-right: 10px;
    margin-bottom: 20px;
}

.shipping-features img {
    width: 40px;
    height: 40px;
}

/* Container Styling */
.container {
    width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quote-form-title {
    color: #686bbb;
    text-align: center;
    margin-bottom: 15px;
    font-size: 30px;
}

.services {
    display: flex;
    gap: 20px;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steps li {
    width: 50px;
    height: 50px;
}

.steps li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hidden {
    display: none;
}

.section {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#quoteForm h3 {
    color: #4a4a78;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-left: 18px;
    display: flex;
    align-items: center;
}

#quoteForm h3::before {
    content: '';
    position: absolute;
    left: 0;
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #686bbb 0%, #8a7ecc 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(104, 107, 187, 0.3);
}

#quoteForm label {
    display: block;
    font-weight: 700;
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
}

#calculateByUnitsLabel,
#calculateByTotalLabel {
    font-size: 12px !important;
}

#quoteForm input,
select,
option {
    padding: 12px 10px;
    border: 2px solid rgba(104, 107, 187, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #4a4a78;
    font-weight: 500;
}

input[type="radio"] {
    accent-color: #686bbb;
}

#quoteForm textarea {
    width: 96%;
    min-height: 120px;
    padding: 25px 20px;
    border: 2px solid rgba(104, 107, 187, 0.2);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.4s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #4a4a78;
    font-weight: 500;
}

#quoteForm input:focus,
#quoteForm textarea:focus {
    border-color: #686bbb;
    box-shadow:
        0 0 0 4px rgba(104, 107, 187, 0.1),
        0 8px 25px rgba(104, 107, 187, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.form-group-basic,
.form-group-contact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21%, 1fr));
    gap: 20px;
    justify-items: start;
}

.form-group-basic .form-group-basic-item,
.form-group-contact .form-group-contact-item {
    width: 90%;
}

.form-group-basic label,
.form-group-contact label,
#unitsSection label,
#totalSection label,
#fullContainerSection label {
    font-size: 12px !important;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"] {
    width: 95%;

}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 12px;
}

#unitsSection,
#totalSection,
#fullContainerSection {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
}

.units-data,
.total-section-data,
.total-section-data li,
.confirm-section,
.oversize-cargo-dimensions-input,
.container-data,
.container-measurement-unit-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.total-section-data {
    margin-bottom: 10px;
}


.total-section-data li {
    width: 31.5%;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oversize-cargo-dimensions {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 5px;
    margin-top: -5px;
}

.oversize-cargo-dimensions-input input {
    width: 61px;
}

.deletebtn {
    position: relative;
    bottom: -20px;
    background-color: red;
    color: white;
    font-weight: 700;
    border: 1px solid red;
    border-radius: 5px;
    padding: 10px 5px;
    cursor: pointer;
}

.confirm-section-btn {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

.addbtn {
    padding: 8px 5px;
    background-color: #e8e8f9;
    color: black;
    font-weight: 700;
    border: 1px solid #e8e8f9;
    margin: 0 5px;
    border-radius: 5px;
    text-align: center;
}

.add-container-btn {
    position: relative;
    top: 12px;
}

.confirmbtn {
    padding: 8px 5px;
    background-color: #686bbb;
    color: white;
    font-weight: 700;
    border: 1px solid #686bbb;
    margin: 0 5px;
    border-radius: 5px;
    text-align: center;
}

.length-units,
.weight-units,
.container-weight-unit {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 5px;
    border: 2px solid #ccc;
    font-weight: 700;
    margin: 10px 0;
    border-radius: 8px;
    text-align: center;
}

.oversize-cargo-dimensions-unit {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 5px;
    border: 2px solid #ccc;
    font-weight: 700;
    margin: 10px 0;
    border-radius: 8px;
    text-align: center;
}

.question {
    margin-right: 10px;
}

.question-mark {
    width: 20px;
    height: 20px;
}

.calculation-results {
    padding: 0 10px;
}

.resulttable-pgk {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.resulttable-pgk tr {
    width: 100%;
}

.resulttable-pgk th,
.resulttable-pgk td {
    border: #ccc solid 1px;
    width: auto;
    text-align: center;
    padding: 5px 10px;
    color: black;
}

button[type="submit"] {
    background: linear-gradient(135deg, #686bbb 0%, #8a7ecc 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 25px rgba(104, 107, 187, 0.3), 0 5px 10px rgba(104, 107, 187, 0.2);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(104, 107, 187, 0.4), 0 8px 15px rgba(104, 107, 187, 0.3);
    background: linear-gradient(135deg, #5a5aa8 0%, #7b70b8 100%);
}

.highlight {
    border: 2px solid red;
    border-radius: 5px;
    padding: 10px;
    background-color: #ffe6e6;
}

/* FAQ部分基本样式 */
.faqs {
    max-width: 1200px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.faqs h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #686bbb;
}

/* FAQ项目容器 */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 问题样式 */
.faq-question {
    background-color: #f7f7f9;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #ededf2;
}

.faq-question h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    padding-right: 30px;
    /* 为箭头图标留出空间 */
}

/* 创建展开/折叠箭头图标 */
.faq-question::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #686bbb;
    border-bottom: 2px solid #686bbb;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* 答案部分样式 */
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: white;
    font-size: 14px;
}

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
    /* 足够大的值以容纳内容 */
}

/* 答案内容样式 */
.faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.faq-answer ul {
    margin: 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #444;
    list-style: disc;
}

.faq-answer a {
    color: #686bbb;
    text-decoration: none;
    font-weight: 700;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Keyframes for Slide Animation */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-dots {
    animation: blink 1.4s infinite both;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/*MWW Style*/
@media only screen and (max-width: 1279px) {
    .gaq-banner {
        margin-bottom: 20px;
    }

    .gaq-banner img {
        height: 450px;
    }

    .container {
        max-width: inherit;
        width: auto;
        margin: 20px;
    }
}

@media only screen and (max-width: 1024px) {
    .gaq-banner img {
        height: 450px;
    }

    .headline {
        top: 115px;
        gap: 10px;
    }

    .img-right {
        width: 290px;
    }

    .units-data input[type="number"] {
        width: 100px;
    }
}

@media only screen and (max-width: 768px) {

    .shipping-features {
        text-align: center;
    }

    .shipping-features li {
        margin-right: 0px;
    }

    .text-left {
        width: 350px;
    }

    .text-left h1 {
        font-size: 29px;
    }

    .quote-form-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 20px;
    }

    .gaq-banner {
        margin-bottom: 20px;
    }

    .steps li {
        width: 30px;
        height: 30px;
    }

    .section h3,
    .quantity-section h3 {
        font-size: 16px;
    }

    .services {
        gap: 10px;
    }

    .units-data input[type="number"] {
        width: 60px;
    }

    .total-section-data li {
        width: auto;
    }

    .resulttable-pgk {
        overflow-x: scroll;
    }

    #quoteForm input,
    select,
    option {
        font-size: 12px;
    }
}

@media only screen and (max-width: 576px) {

    .headline,
    .text-left {
        top: 110px;
        width: 320px;
        text-align: center;
    }

    .img-right {
        display: none;
    }

    .text-left h1 {
        font-size: 36px;
    }

    .shipping-features {
        font-size: 12px;
    }

    .form-group-basic,
    .form-group-contact {
        display: block;
    }

    .units-data.deletebtn {
        bottom: 0px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="tel"] {
        width: 100%;
    }

    .total-section-data {
        display: block;
    }

    #quoteForm textarea {
        width: 85%;
    }

    .total-section-data li {
        margin: 5px 0;
    }
}

@media only screen and (max-width: 426px) {

    .services {
        display: block;
    }

    .services div {
        display: block;
    }

    .steps li {
        width: 18px;
        height: 18px;
    }

    .deletebtn {
        bottom: 0;
    }

    .total-section-data li {
        justify-content: left;
        gap: 0;
    }

    .total-section-data li input {
        width: 15%;
    }

    #totalSection label {
        font-size: 10px !important;
        margin-left: 0;
    }

    .total-section-data select,
    .total-section-data option {
        padding: 12px 0;
    }
}