.consult-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.consult-modal .dim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.consult-modal .box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px 32px;
    z-index: 1;
}

.consult-modal .close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.consult-modal .title {
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
}

.consult-modal .field {
    position: relative;
}

.consult-modal .field + .field {
    margin-top: 14px;
}

.consult-modal .field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
}

.consult-modal .field .star {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #e60023;
    font-size: 16px;
}

.consult-modal .section {
    margin-top: 26px;
}

.consult-modal .sec-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.consult-modal .way {
    display: flex;
    gap: 12px;
}

.consult-modal .way label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.consult-modal .way input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consult-modal .way span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.consult-modal .way input:checked + span {
    background: #ccdffb;
    color: #111;
}

.consult-modal .agree {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consult-modal .agree label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.consult-modal .agree a {
    color: #999;
    text-decoration: underline;
}

.consult-modal .submit {
    margin-top: 28px;
    width: 100%;
    height: 56px;
    border-radius: 10px;
    background: #0b2a5b;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-align: center;
}


/* === 체크박스 (네가 준 거, 프리픽스만 추가) === */

.consult-modal .custom-chk-inp-wrap {
    display: inline-block;
}

.consult-modal .custom-chk-inp-wrap .chk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.consult-modal .custom-chk-inp-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consult-modal .custom-chk-inp-wrap .chkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1.5px solid #888;
    border-radius: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    transition: all .2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    opacity: .3;
}

.consult-modal .custom-chk-inp-wrap .txt {
    font-size: 14px;
    color: #111;
}

.consult-modal .custom-chk-inp-wrap .txt.all {
    font-size: 15px;
    font-weight: bold;
}

.consult-modal .custom-chk-inp-wrap .txt .privacy-link {
    text-decoration: underline;
    color: #111;
}

.consult-modal .custom-chk-inp-wrap input:checked + .chkbox {
    background-color: #3a8afd;
    border-color: #3a8afd;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
