#quick-counsel {
    z-index: 89;
    position: fixed;
    bottom: 0;
    right: 0;
    transform: translateY(calc(100% - 45px));
    transition: transform .6s;
}
#quick-counsel.active {
    transform: translateY(0);
}
#quick-counsel .quick-handler-wrap {
    position: relative;
    width: 235px;
    margin: 0 auto;
}
#quick-counsel .quick-handler-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0;
    box-shadow: 2px -1px 17px 9px #00000033;
}
#quick-counsel .quick-handler {
    z-index: 1;
    position: relative;
    font-family: 'Pretendard';
    font-size: 24px;
    font-weight: 700;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    background-color: #CC3333;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color .3s;
}
#quick-counsel .quick-handler::after{
    content: '';
    display: inline-block;
    width: 24px;
    aspect-ratio: 1;
    pointer-events: none;
    margin-left: 15px;
    margin-right: -15px;
    background: url(/imges/quickCounsel/arrow_up.svg) no-repeat center / contain;
    transition: transform .4s;
}
#quick-counsel.active .quick-handler::after {
    transform: rotate(180deg);
}
#quick-counsel .quick-form-wrap {
    position: relative;
    width: 100vw;
    padding: 50px 10px;
    margin-top: -5px;
}
#quick-counsel .quick-form-wrap .quick-form-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(115, 8, 0, 0.45);
    box-shadow: 2px -1px 17px 9px #00000033;
    border-top: 5px solid #CC3333;
    backdrop-filter: blur(20px);
}
#quick-counsel .quick-form {
    z-index: 1;
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
#quick-counsel .quick-form .form-title {
    font-size: 35px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 52px;
    letter-spacing: -0.05em;
    min-width: 160px;
}
#quick-counsel .form-submit button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 85px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    background-color: #CC3333;
    border-radius: 5px;
}
#quick-counsel .form-group {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}
#quick-counsel input[type=text] {
    width: 100%;
    height: 35px;
    border: 0;
    font-size: 12px;
    padding: 0 14px;
}

#quick-counsel .input-box-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

#quick-counsel .input-box {
    position: relative;
    width: 100px;
}
#quick-counsel .input-box.type-phone {
    width: 180px;
}

#quick-counsel .input-box .input-text,
#quick-counsel .input-box .input-placeholder {
    position: absolute;
    top: 7px;
    left: 14px;
    color: #999;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    max-width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#quick-counsel .input-box .input-text {
    opacity: 1;
}

#quick-counsel .input-box .input-text.required::after,
#quick-counsel .input-box .input-placeholder.required::after {
    content: '*';
    color: #CB9F76;
    font-size: 16px;
    line-height: 12px;
    margin-left: 2px;
}

#quick-counsel .input-box input::placeholder {
    opacity: 0;
}

#quick-counsel .input-box input:placeholder-shown ~ .input-placeholder {
    opacity: 1;
}

#quick-counsel .input-box input:placeholder-shown ~ .input-text {
    opacity: 0;
}

#quick-counsel .agree-box {
    color: #fff;
}

#quick-counsel .agree-box .agree-all {
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
}

#quick-counsel .agree-box .agree-list {
    padding-top: 10px;
}

#quick-counsel .agree-box .agree-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#quick-counsel .agree-box .agree-list a {
    text-decoration: underline;
    margin-left: auto;
    text-underline-offset: 2px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 300;
}

#quick-counsel .custom-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
}

#quick-counsel .custom-checkbox input[type=checkbox] {
    display: none;
}

#quick-counsel .custom-checkbox .icon {
    position: relative;
    min-width: 16px;
    aspect-ratio: 1;
    background-color: #fff;
}

#quick-counsel .custom-checkbox .label-txt {
    font-size: 12px;
    font-weight: 300;
    text-indent: -32px;
    padding-left: 32px;
    margin-right: 5px;
}
#quick-counsel .agree-all .custom-checkbox .label-txt {
    font-size: 16px;
    font-weight: 500;
}

#quick-counsel .custom-checkbox input[type=checkbox]:checked ~ .icon {
    background-color: #CC3333;
}

#quick-counsel .custom-checkbox input[type=checkbox]:checked ~ .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 25L20 35L40 15" stroke="%23FFFFFF" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / 20px;
}

.main-renew-fix {
    z-index: 90;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #quick-counsel .quick-form-wrap {
        padding: 50px;
    }
    #quick-counsel .form-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    #quick-counsel .agree-box {
        max-width: 290px;
    }
}

@media screen and (max-width: 768px) {
    #quick-counsel {
        transform: translateY(calc(100% - 35px));
    }
    #quick-counsel .quick-handler-wrap {
        width: 150px;
    }
    #quick-counsel .quick-handler {
        font-size: 17px;
        font-weight: 500;
        height: 35px;
        border-radius: 12px 12px 0 0;
    }
    #quick-counsel .quick-handler::after{
        width: 20px;
        margin-left: 10px;
        margin-right: -10px;
    }
    #quick-counsel .quick-form-wrap {
        margin-top: -2px;
        padding: 25px 20px 90px;
    }
    #quick-counsel .quick-form-wrap .quick-form-bg {
        border-top: 2px solid #CC3333;
    }
    #quick-counsel .quick-form {
        max-width: 600px;
        flex-direction: column;
        gap: 0;
    }
    #quick-counsel .quick-form .form-title {
        display: none;
    }
    #quick-counsel .form-submit {
        width: 100%;
    }
    #quick-counsel .form-submit button {
        width: 100%;
        height: 40px;
        font-size: 17px;
    }
    #quick-counsel .form-group {
        flex-direction: column;
        gap: 15px;
        margin: 0 auto 8px;
    }
    #quick-counsel input[type=text] {
         width: 100%;
         height: 35px;
         border: 0;
         font-size: 12px;
         padding: 0 14px;
    }
    #quick-counsel .input-box-wrap {
        flex-direction: column;
        gap: 8px;
    }
    #quick-counsel .input-box,
    #quick-counsel .input-box.type-phone {
        width: 100%;
    }
    #quick-counsel .input-box .input-text,
    #quick-counsel .input-box .input-placeholder {
        top: 9px;
    }
    #quick-counsel .agree-box {
        max-width: 100%;
    }
    #quick-counsel .agree-box .agree-list a {
        font-size: 10px;
    }
    #quick-counsel .custom-checkbox .label-txt {
        font-size: 10px;
        text-indent: -27px;
        padding-left: 27px;
    }
    #quick-counsel .agree-all .custom-checkbox .label-txt {
        font-size: 12px;
    }

    .b-nav-mode .fb_wrap {
        padding-bottom: 58px;
    }
    .b-nav-mode .pedg_fixed {
        bottom: 70px;
    }
    .b-nav-mode .branch-renew_v2 .gtop {
        bottom: 70px;
    }
}