.floating {
    position: sticky;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: var(--main-color);
    z-index: 999;
}

.floating-wrapper {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.f-closeBtn {
    display: none;
}

.floating-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ff-open-mobile {
    display: none;
}

.f-tel img {
    height: 55px;
    animation: updown 1s infinite ease-in-out;
}

@keyframes updown {
    0% {transform:translateY(0);}
    10% {transform:translateY(-3px);}
    20% {transform:translateY(0);}
    30% {transform:translateY(-3px);}
    40% {transform:translateY(0);}
    100% {transform:translateY(0);}
}

.ft-text p {
    color: #fff;
    font-size: 20px;
    font-family: 'twaysky';
    margin-bottom: 5px;
}

.ft-text a {
    color: #fff;
    font-size: 32px;
    font-weight: unset;
    font-family: 'twaysky';
    letter-spacing: 0.02em;
}

.f-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-form .inputbox {
    color: #222;
    width: 185px;
    height: 47px;
    padding: 0 14px;
    font-size: 15px;
    -webkit-border-radius: 0;
    border-radius: 0;
    background-color: #fff;
    border: none;
    outline: none;
}

.f-form .inputbox::placeholder {
    color: #aaa;
}

.f-form .selectbox {
    color: #aaa;
    width: 185px;
    height: 47px;
    padding: 0 14px;
    font-size: 15px;
    -webkit-border-radius: 0;
    border-radius: 0;
    background-color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
}

.f-form .selectbox:valid {
    color: #222;
}

.f-form .selectbox option {
    color: #444;
}

.f-submit {
    color: #fff;
    width: 185px;
    height: 47px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 19px;
    border: none;
    outline: none;
    background-color: #111;
    cursor: pointer;
}

.f-submit:disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #ddd;
}


.f-personal {
    display: flex;
    align-items: center;
    margin-top: .7rem;
    gap: 5px;
}

.f-personal input {
    display: none;
}

.f-personal label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.f-personal label em {
    position: relative;
    width: 14px;
    min-width: 14px;
    height: 14px;
    min-height: 14px;
    background-color: #fff;
    cursor: pointer;
}

.f-personal label em::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #111;
    display: none;
}

.f-personal label p,
.f-personal span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

#cb:checked ~ label em::after {
    display: block;
}

.f-popup-wrapper,
.f-alert-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .5);
    z-index: 999;
    display: none;
}

.f-popup,
.f-alert {
    position: relative;
    width: 550px;
    padding: 40px;
    border-radius: 7px;
    background-color: #fff;
}

.f-alert {
    width: 350px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.f-alert i {
    color: #be1a21;
    font-size: 45px;
    margin-bottom: .5rem;
}

.f-popup p,
.f-alert p {
    color: #222;
    font-size: 16px;
    line-height: 1.4;
}

.f-popup-closeBtn {
    position: absolute;
    top: 18px; right: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}



/*==================================================*/
@media (max-width: 1250px) {
    .floating-wrapper {
        width: 100%;
        padding: 0 20px;
        flex-direction: column;
        gap: 1.2rem;
    }

    .floating-title {
        width: 100%;
        gap: 10px;
    }

    .ft-text {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ft-text p {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .ft-text a {
        font-size: 32px;
    }

    .f-tel img {
        height: 35px;
    }

    .floating-wrapper form {
        width: 100%;
    }
    
    .f-form {
        width: 100%;
    }
    
    .f-form .inputbox,
    .f-form .selectbox,
    .f-submit {
        width: 25%;
    }
}


@media (max-width: 768px) {
    .floating {
        position: fixed;
        bottom: -265px;
        padding: 0;
        transition: all .3s ease;
    }

    .up {
        bottom: 0;
    }
    
    .floating-wrapper {
        padding: 0;
        gap: 0;
    }
    
    .floating-title {
        display: none;
    }

    .floating .ff-open-mobile {
        width: 100%;
        height: 55px;
        display: flex;
        justify-content: space-between;
    }

    .ff-omBtn {
        flex: 1;
        padding: 0 20px;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        background-color: #111;
        white-space: nowrap;
        cursor: pointer;
    }

    .ff-omBtn:nth-child(2) {
        background-color: var(--sub-color);
    }

    .ff-closeBtn {
        position: relative;
    }
    
    .ff-closeBtn span {
        display: block;
        width: 14px;
        height: 2px;
        background-color: #fff;
    }

    .ff-closeBtn span:nth-child(2) {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 2px;
        height: 14px;
    }

    .i-rotate2 {
        transform: rotate(45deg);
    }


    .gform {
        padding: 20px;
    }

    .f-form {
        width: 100%;
        flex-direction: column;
    }

    .f-form .inputbox,
    .f-form .selectbox,
    .f-submit {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    .f-personal label p,
    .f-personal span {
        font-size: 12px;
    }


    .f-popup {
        width: 90%;
    }
}


@media (max-width: 450px) {
    .floating .ff-open-mobile {
        height: 45px;
    }

    .ff-omBtn {
        font-size: 14px;
    }

    .f-popup {
        padding: 25px;
    }
    
    .f-popup p {
        font-size: 12px;
    }

    .f-popup-closeBtn {
        top: 12px;
        right: 12px;
        width: 14px;
        height: 14px;
    }
}