/* ★★★ --- 플로팅 상담/한도조회 폼 + 어사이드 --- ★★★ */
body.quick_float_lock {
    overflow: hidden;
}

.quick_float_ui {
    position: fixed;
    inset: 0;
    z-index: 15000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.quick_float_ui.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick_float_desktop {
    display: block;
}

.quick_float_mobile {
    display: none;
}

/* ==================== PC ==================== */
.quick_float_bar_wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    pointer-events: none;
}

.quick_float_bar {
    pointer-events: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    gap: var(--gap25);
    padding: var(--p25);
    border: 2px solid var(--point);
    border-radius: var(--br_25);
    background: var(--gray_f);
    box-shadow: 0 16px 34px rgba(0, 71, 125, 0.12);
}

.quick_float_divider {
    width: 1px;
    background: #d7e2ec;
}

.quick_float_item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    gap: var(--gap20);
    align-items: stretch;
}

.quick_float_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.quick_float_head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: var(--m15);
}

.quick_float_title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs_25);
    font-weight: 700;
    color: var(--point);
    line-height: 1.2;
}

.quick_float_title img {
    display: block;
    width: auto;
    height: 24px;
    flex-shrink: 0;
}

.quick_float_desc {
    font-size: 17px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    word-break: keep-all;
}

.quick_float_fields {
    display: grid;
    gap: var(--gap10);
}

.quick_float_fields.two_col {
    grid-template-columns: 200px minmax(0, 1fr);
    margin-bottom: var(--m15);
}

.quick_float_fields.limit_row {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
}

/* 체크박스 제외 */
.quick_float_item input:not([type="checkbox"]),
.quick_float_item select,
.quick_float_mobile_form input:not([type="checkbox"]),
.quick_float_mobile_form select {
    width: 100%;
    height: 45px;
    padding: 0 var(--p20);
    border: none;
    border-radius: 999px;
    background: var(--point2_lighter);
    font-size: 17px;
    font-weight: 400;
    color: var(--point);
    outline: none;
    box-sizing: border-box;
}

.quick_float_item input:not([type="checkbox"])::placeholder,
.quick_float_item select,
.quick_float_mobile_form input:not([type="checkbox"])::placeholder,
.quick_float_mobile_form select {
    color: var(--gray_9);
    font-weight: 400;
}

.quick_float_item select,
.quick_float_mobile_form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23B0B8C1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.quick_float_agree_row,
.quick_float_mobile_agree {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.quick_float_mobile_agree {
    margin-top: var(--m15);
}

.quick_float_check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.quick_float_check span {
    transition: color 0.2s ease;
}

/* custom_chk 전용 정리 */
.quick_float_check input[type="checkbox"],
.quick_float_check input[type="checkbox"].custom_chk {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    padding: 0;
    margin: 0;
    border-radius: var(--br_3);
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
    vertical-align: middle;
}

.quick_float_check:hover input[type="checkbox"].custom_chk {
    border-color: var(--point);
    transform: scale(1);
}

.quick_float_check:hover span {
    color: var(--point);
}

.quick_float_more {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    white-space: nowrap;
}

.quick_float_btn {
    height: 140px;
    border: none;
    border-radius: var(--br_25);
    background: linear-gradient(135deg, var(--point) 0%, var(--point2_dark) 100%);
    color: var(--gray_f);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 71, 125, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick_float_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 71, 125, 0.22);
}

.quick_float_aside {
    position: absolute;
    right: 80px;
    bottom: 100px;
    pointer-events: auto;
}

.quick_float_top_btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray_f);
    color: var(--gray_6);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.1);
}
.quick_float_top_btn:hover{
    background: var(--point2);
    color: var(--gray_f);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}
.quick_float_top_btn span {
    display: block;
    margin-top: 4px;
    font-size: var(--fs_12);
    font-weight: 500;
    line-height: 1;
}

/* ==================== Mobile ==================== */
.quick_float_mobile_bar {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: var(--gap10);
    pointer-events: auto;
}

.quick_float_mobile_btn {
    flex: 1 1 0;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--point) 0%, var(--point2_dark) 100%);
    color: var(--gray_f);
    font-size: var(--fs_16);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(0, 71, 125, 0.18);
}

.quick_float_mobile_top_btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray_f);
    color: var(--gray_6);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.quick_float_mobile_top_btn span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* 모바일 시트 자체 */
.quick_float_mobile_sheet {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 73px;
    padding: var(--p15);
    border: 2px solid var(--point);
    border-radius: var(--br_15);
    background: var(--gray_f);
    box-shadow: 0 0px 35px rgba(0, 120, 206, 0.15),0 -5px 20px rgba(0, 120, 206, 0.25);
    transform: translateY(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.quick_float_mobile_sheet.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quick_float_mobile_sheet_head {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    margin: 0;
}

.quick_float_mobile_close {
    position: relative;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--point2_lighter);
}

.quick_float_mobile_close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--point2);
}

.quick_float_mobile_close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.quick_float_mobile_close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.quick_float_mobile_panels {
    min-width: 0;
}

.quick_float_mobile_form {
    display: none;
}

.quick_float_mobile_form.is-active {
    display: block;
}

.quick_float_mobile_form[hidden] {
    display: none !important;
}

.quick_float_mobile_head {
    margin-bottom: var(--m15);
    padding-right: 42px;
}

.quick_float_mobile_title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs_20);
    font-weight: 700;
    color: var(--point);
    line-height: 1.2;
    margin-bottom: var(--m10);
}

.quick_float_mobile_title img {
    display: block;
    width: auto;
    height: 22px;
}

.quick_float_mobile_desc {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
}

.quick_float_mobile_fields {
    display: grid;
    gap: var(--gap10);
}

.quick_float_mobile_submit {
    width: 100%;
    height: 48px;
    margin-top: var(--m20);
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--point) 0%, var(--point2_dark) 100%);
    color: var(--gray_f);
    font-size: var(--fs_18);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(0, 71, 125, 0.18);
}

@media (max-width: 1500px) {
    .quick_float_bar {
        gap: var(--gap20);
        padding: var(--p20);
    }

    .quick_float_item {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: var(--gap15);
    }

    .quick_float_title {
        font-size: var(--fs_20);
    }

    .quick_float_desc {
        font-size: 16px;
    }

    .quick_float_fields.two_col {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .quick_float_fields.limit_row {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .quick_float_btn {
        height: 130px;
        font-size: var(--fs_20);
    }
}

@media (max-width: 1280px) {
    .quick_float_fields.two_col {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .quick_float_fields.limit_row {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .quick_float_item input:not([type="checkbox"]),
    .quick_float_item select {
        height: 44px;
        padding: 0 var(--p15);
        font-size: 16px;
    }

    .quick_float_check,
    .quick_float_more {
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .quick_float_desktop {
        display: none;
    }

    .quick_float_mobile {
        display: block;
    }

    .quick_float_ui {
        transform: none;
    }
}