@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap");

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(27 0 30 / 93%);
    z-index: 9999999999;
    justify-content: center;
    align-items: center;
}

.popup-close {
    position: absolute;
    width: 4.011vw;
    height: auto;
    top: 1.7vw;
    right: -0.3vw;

    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999999;
    transform: skew(0deg);
    transition: 0.3s;
}

.popup-close:hover {

    filter: brightness(1.2);

}

.popup-box {
    position: relative;
    height: auto;
    color: aliceblue;
}

#popup_box.animate__animated {
    animation-duration: 0.7s;

}

.popup_main {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 88.49vw;
    height: 34.636vw;
    margin: 0 auto;
    background: url("../img/pop_bg.png") no-repeat center center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
    justify-content: center;
    align-items: flex-start;
}

.title_m {
    display: none;
}

#popup_form {
    position: relative;
    width: 22.5vw;
    height: auto;
    left: 23vw;
    top: 2.75vw;
    font-size: 1vw;
    transform: skew(-10deg);
}

#popup_form label {
    margin-bottom: 0.5vw;

}

.form-group {
    margin-bottom: 1.5vw;
}

.form-group select {
    color: rgb(49, 49, 49);
    font-size: 0.85vw;
}

label {
    display: block;
    margin-bottom: 1vw;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.5vw;
    font-size: 0.85vw;
    background-color: #ffffff;
    color: rgb(49, 49, 49);
    border: none;

    box-shadow: 3px 3px 0 #d569d8;

    box-sizing: border-box;
    appearance: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: #ffccff;
}

.form-row {
    display: flex;
    gap: 1vw;
}

.form-row .form-group {
    flex: 1;
}

.note {
    width: 34%;
    position: relative;
    font-size: 0.85vw;
    line-height: 1.4vw;
    margin-top: 1.5vw;
    left: 21vw;
    transform: skew(-10deg);
}

.note b {
    color: #d569d8;
}

.note span {
    color: #d569d8;
    font-weight: bold;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='rgb(49, 49, 49)' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5vw top 0.75vw;
    background-size: 0.75vw;
}

#pop_send {
    position: absolute;
    bottom: 0;
    left: 32vw;
    display: inline-block;
    background-color: #8a3a8e;
    color: white;
    padding: 1.25vw 7vw;
    border: none;
    cursor: pointer;
    font-size: 1vw;
    transform: skew(-15deg);
    font-weight: 600;
    letter-spacing: 0.1vw;

    transition: 0.5s;
}

#pop_send:hover {
    background-color: #9c49a0;

}

#pop_send span {
    display: inline-block;
    transform: skew(10deg);

    position: relative;
    z-index: 1;
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {}

@media screen and (min-width: 769px) and (max-width: 1023px) {}

@media screen and (max-width: 768px) {

    .popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(27 0 30 / 93%);
        z-index: 9999999999;
        justify-content: center;
        align-items: center;
    }

    .popup-close {
        position: absolute;
        width: 10vw;
        height: auto;
        top: 0;
        right: 0;

        background: none;
        border: none;
        cursor: pointer;
        z-index: 9999999;
        transform: skew(0deg);
        padding: 0;
    }

    .popup-box {
        width: 90%;
        position: relative;
        height: auto;
        color: aliceblue;
    }

    #popup_box.animate__animated {
        animation-duration: 0.7s;

    }

    .popup_main {
        display: flex;
        padding: 10vw 0 0;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        margin: 0 auto;
        background: url("../img/popbg_m.jpg") no-repeat center center;
        background-size: cover;
        color: #fff;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        background-color: #000;
    }

    .title_m {
        display: block;
        position: relative;
        width: 100%;
        margin-bottom: 10vw;
    }

    #popup_form {
        position: relative;
        width: 82%;
        height: auto;
        left: 0;
        top: 0;
        font-size: 3.5vw;
        transform: skew(0deg);
    }

    #popup_form label {
        margin-bottom: 2vw;

    }

    .form-group {
        margin-bottom: 4vw;
    }

    .form-group select {
        color: rgb(49, 49, 49);
        font-size: 3.5vw;
    }

    label {
        display: block;
        margin-bottom: 1vw;
        font-weight: bold;
    }

    input[type="text"],
    input[type="tel"],
    select {
        width: 100%;
        padding: 2vw;
        font-size: 3.5vw;
        background-color: #ffffff;
        color: rgb(49, 49, 49);
        border: none;

        box-shadow: 3px 3px 0 #d569d8;

        box-sizing: border-box;
        appearance: none;
    }

    input:focus,
    select:focus {
        outline: none;
        border-color: #ffccff;
    }

    .form-row {
        display: flex;
        gap: 4vw;
    }

    .form-row .form-group {
        flex: 1;
    }

    .note {
        width: 82%;
        position: relative;
        font-size: 3.5vw;
        line-height: 5.5vw;
        margin-top: 0;
        left: 0;
        transform: skew(0deg);
    }

    .note b {
        color: #d569d8;
    }

    .note span {
        color: #d569d8;
        font-weight: bold;
    }

    select {
        background-image: url("data:image/svg+xml;utf8,<svg fill='rgb(49, 49, 49)' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
        background-repeat: no-repeat;
        background-position: right 1.5vw top 3.3vw;
        background-size: 2vw;
    }

    #pop_send {
        position: relative;
        display: flex;
        bottom: 0;
        left: 0;
        background-color: #8a3a8e;
        color: white;
        height: 11vw;
        padding: 0 15vw;
        border: none;
        cursor: pointer;
        font-size: 4vw;
        transform: skew(-15deg);
        font-weight: 500;
        letter-spacing: 0.5vw;

        transition: 0.5s;
        align-items: center;
        justify-content: center;
    }

    #pop_send:hover {
        background-color: #9c49a0;

    }

    #pop_send span {
        display: inline-block;
        transform: skew(10deg);

        position: relative;
        z-index: 1;
    }

    .pop_send_m {
        display: flex;
        position: relative;
        height: 11vw;
        width: 100%;
        background-color: #6e1c73;
        justify-content: center;
        margin-top: 16vw;
    }

}

@media screen and (min-aspect-ratio: 19/9) and (max-aspect-ratio: 26/9) {

    .popup_main {
        transform: scale(0.8);

        transform-origin: center;

    }

}

@media screen and (min-aspect-ratio: 35/10) and (max-aspect-ratio: 36/10) and (min-width: 2200px) {

    .popup_main {
        transform: scale(0.6);

        transform-origin: center;

    }

}
