.consultation-wrap,
.consultation-wrap * {
    box-sizing: border-box;
}

.consultation-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(70px, 8vw, 120px) 24px;
    margin-top: clamp(40px, 8vw, 100px);
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 10% 100%, rgba(241, 175, 151, .18) 0, rgba(241, 175, 151, 0) 38%),
        linear-gradient(135deg, #fff8f2 0%, #fae8dd 52%, #f8ded2 100%);
    color: #4d3b33;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.consultation-wrap::before,
.consultation-wrap::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.consultation-wrap::before {
    top: -120px;
    right: -80px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .22);
    box-shadow: inset 22px 18px 44px rgba(255, 255, 255, .62),
                inset -14px -18px 34px rgba(225, 155, 132, .12),
                0 24px 55px rgba(186, 121, 96, .09);
}

.consultation-wrap::after {
    bottom: -170px;
    left: -130px;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, .2);
    filter: blur(4px);
}

.consultation-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.consultation-title {
    margin-bottom: 46px;
    text-align: center;
}

.consultation-title > span {
    display: inline-block;
    margin-bottom: 18px;
    color: #b67b54;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .25em;
}

.consultation-title h2 {
    margin: 0;
    color: #4d3b33;
    font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
    font-size: clamp(36px, 4.3vw, 58px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.consultation-title p {
    margin: 18px 0 0;
    color: #8c786c;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    letter-spacing: -.025em;
}

#consultationForm {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 30px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 24px 70px rgba(164, 105, 78, .11);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.consultation-trap {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    clip: rect(0, 0, 0, 0) !important;
}

.consultation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.consultation-field label {
    display: block;
    margin: 0 0 10px 4px;
    color: #624b40;
    font-size: 15px;
    font-weight: 600;
}

.consultation-field input,
.consultation-field select {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(183, 140, 117, .24);
    border-radius: 14px;
    outline: none;
    background-color: rgba(255, 255, 255, .82);
    color: #4d3b33;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.consultation-field select {
    padding-right: 46px;
    background-image:
        linear-gradient(45deg, transparent 50%, #a27a66 50%),
        linear-gradient(135deg, #a27a66 50%, transparent 50%);
    background-position:
        calc(100% - 23px) 25px,
        calc(100% - 17px) 25px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    appearance: none;
    -webkit-appearance: none;
}

.consultation-field input::placeholder {
    color: #b7a69d;
}

.consultation-field input:focus,
.consultation-field select:focus {
    border-color: #ea8f9f;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(234, 143, 159, .12);
}

.consultation-agree {
    position: relative;
    margin-top: 26px;
}

.consultation-agree-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.consultation-agree-line > label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #78645a;
    font-size: 14px;
    cursor: pointer;
}

.consultation-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ed8196;
}

.privacy-details {
    position: relative;
}

.privacy-detail {
    color: #a26d58;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    list-style: none;
}

.privacy-detail::-webkit-details-marker {
    display: none;
}

.privacy-content {
    position: absolute;
    z-index: 5;
    top: calc(100% + 12px);
    right: 0;
    width: min(430px, calc(100vw - 48px));
    padding: 22px;
    border: 1px solid rgba(183, 140, 117, .22);
    border-radius: 16px;
    background: rgba(255, 252, 249, .98);
    box-shadow: 0 16px 42px rgba(92, 58, 44, .15);
    color: #705c52;
    font-size: 13px;
    line-height: 1.65;
}

.privacy-content strong {
    display: block;
    margin-bottom: 12px;
    color: #4d3b33;
    font-size: 15px;
}

.privacy-content dl,
.privacy-content p {
    margin: 0;
}

.privacy-content dl > div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0e5de;
}

.privacy-content dt {
    color: #9b7562;
    font-weight: 600;
}

.privacy-content dd {
    margin: 0;
}

.privacy-content p {
    margin-top: 12px;
    color: #9a877e;
    font-size: 12px;
}

.consultation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.consultation-submit,
.consultation-kakao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.consultation-submit {
    border: 0;
    background: linear-gradient(100deg, #ea7892 0%, #ef9b78 100%);
    box-shadow: 0 12px 28px rgba(225, 105, 127, .24);
    color: #fff;
}

.consultation-kakao {
    background: #fae100;
    color: #5b4439;
}

.consultation-submit:hover,
.consultation-kakao:hover {
    transform: translateY(-2px);
}

.consultation-submit:hover {
    box-shadow: 0 16px 34px rgba(225, 105, 127, .3);
}

.consultation-kakao:hover {
    background: #ffd600;
    box-shadow: 0 12px 28px rgba(115, 82, 66, .1);
}

.kakao-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767px) {
    .consultation-wrap {
        padding: 58px 18px;
    }

    .consultation-wrap::before {
        top: -100px;
        right: -150px;
        width: 280px;
        height: 280px;
    }

    .consultation-title {
        margin-bottom: 30px;
    }

    .consultation-title > span {
        margin-bottom: 13px;
        font-size: 12px;
        letter-spacing: .2em;
    }

    .consultation-title p {
        max-width: 280px;
        margin: 14px auto 0;
        line-height: 1.6;
    }

    #consultationForm {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .consultation-fields,
    .consultation-actions {
        grid-template-columns: 1fr;
    }

    .consultation-fields {
        gap: 18px;
    }

    .consultation-field input,
    .consultation-field select {
        height: 54px;
        border-radius: 12px;
    }

    .consultation-field select {
        background-position:
            calc(100% - 23px) 23px,
            calc(100% - 17px) 23px;
    }

    .consultation-agree-line {
        align-items: flex-start;
    }

    .consultation-agree-line > label {
        align-items: flex-start;
        line-height: 1.5;
    }

    .consultation-agree input[type="checkbox"] {
        flex: 0 0 auto;
        margin-top: 2px;
    }

    .privacy-content {
        position: fixed;
        z-index: 9999;
        top: 50%;
        right: auto;
        left: 50%;
        width: calc(100vw - 36px);
        max-width: 430px;
        transform: translate(-50%, -50%);
    }

    .consultation-actions {
        gap: 10px;
        margin-top: 28px;
    }

    .consultation-submit,
    .consultation-kakao {
        min-height: 56px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consultation-submit,
    .consultation-kakao,
    .consultation-field input,
    .consultation-field select {
        transition: none;
    }
}
