/* Start */
.QA-BG {
    width: 94%;
    left: 3%;
    top: 21%;
    padding-top: 15%;
    overflow: hidden;

}

.QA_GroupControl {
    width: 100%;
    left: 0%;
    top: 7.5%;

}

.QAcarousel {
    display: flex;

}

.slide {
    flex: 0 0 100%;
}

/* Q1 & Q2 */
.QAcarousel input[type="radio"] {
    display: none;
}

.QA1_title {
    position: absolute;
    width: 73.3%;
    top: 0%;
    left: 3.5%;
}

.QA2_title {
    position: absolute;
    width: 82%;
    top: -2%;
    left: 3%;
}

/* 選單排版 */
.QA1Control,
.QA2Control {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 18px;
    transform: translateY(30%);
}

.card img {
    object-fit: cover;
    width: 99.9%;
}

/* 卡片點選效果 */
.QA1Control .card,
.QA2Control .card {
    cursor: pointer;
    transition: all .3s;
    position: relative;
}

.QA1Control .card::after,
.QA2Control .card::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* border: solid 0px #000000; */
    z-index: 1;
    clip-path: inset(0);
    box-shadow: inset 0 0 0 0px #000000;
    transition: all .3s;
}

.QA1Control .card:hover::after,
.QA2Control .card:hover::after {
    /* border: solid 2.5px #000000; */
    box-shadow: inset 0 0 0 2.5px #000000;
}

input[name="QA1"]:checked+.card::after,
input[name="QA2"]:checked+.card::after {
    /* border: solid 2.5px #000000; */
    box-shadow: inset 0 0 0 2.5px #000000;
}

input[name="QA1"]:not(:checked)+.card img,
input[name="QA2"]:not(:checked)+.card img {
    filter: grayscale(1);
}

input[name="QA1"]:hover+.card img,
input[name="QA2"]:hover+.card img {
    filter: grayscale(0);
}

@media (max-width:768px) {

    .QA1Control,
    .QA2Control {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 5px;
        transform: translateY(30%);
    }

    .QA1Control .card:hover::after,
    .QA2Control .card:hover::after {
        /* border: solid 2.5px #000000; */
        box-shadow: inset 0 0 0 1px #000000;
    }

    input[name="QA1"]:checked+.card::after,
    input[name="QA2"]:checked+.card::after {
        /* border: solid 2.5px #000000; */
        box-shadow: inset 0 0 0 1px #000000;
    }
}

/* Q3 */
.answer_show {
    transform: translateY(15%);
}

.A_title {
    position: absolute;
    width: 82%;
    top: -2%;
    left: 3%;
}

.choseProduct img {
    object-fit: cover;
    width: 100%;
}

.otherProduct {
    display: flex;
    gap: 1vw;
    transform: translateY(-18%);
}

.otherProduct img {
    object-fit: cover;
    width: 100%;
}

.reset {
    display: none;
}

@media (max-width:768px) {

    .otherProduct {
        display: flex;
        gap: 1vw;
    }

    .otherProduct img {
        width: 50%;
    }
}

/* 按鈕 */
@font-face {
    font-family: 'MyFont';
    /* 自訂字體名稱 */
    src: url('../images/QA_img/LINESeedJP_A_TTF_Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.btnControl {
    position: absolute;
    /* margin: -3% auto 0 auto; */
    bottom: -20.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 83%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1vw;
    ;
}

.QAbtn {

    /* padding: 2.5% 15%; */
    padding: 2% 10%;
    cursor: pointer;
    transition: all .3s;
    font-family: 'MyFont';
    font-size: 2rem;
    border-radius: 5px;
    background-color: #fff;
}

.QAbtn:hover {
    background-color: #000000;
    color: #FFF
}

.next {
    padding: 2% 15%;
}

.btn-noClick {
    cursor: no-drop;

}

.btn-noClick:hover {
    background-color: #fff;
    color: #BDBEBD
}

@media (max-width:768px) {
    .btnControl {
        width: 100%;
        bottom: -20%;
    }

    .QAbtn {
        padding: 2% 5%;
        font-size: 0.95rem;
        border: 1px solid #000000;
    }

    .next {
        padding: 2% 10%;
    }
}