.consult-overlay[hidden],
.privacy-popup[hidden] {
    display:none;
}
.consult-overlay {
    position:fixed;
    inset:0;
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(18,15,24,.55);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}
.consult-modal {
    width:100%;
    max-width:480px;
    max-height:90vh;
    max-height:90dvh;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:30px;
    border:1px solid rgba(255,255,255,.75);
    border-radius:14px;
    background:#FFFFFF;
    box-shadow:0 24px 70px rgba(15,10,22,.2);
    scrollbar-width:thin;
    scrollbar-color:#DDD4E0 transparent;
    animation:consultModalIn .28s cubic-bezier(.22,1,.36,1);
}
.consult-modal:focus,
.privacy-popup:focus {
    outline:none;
}
.consult-handle {
    display:none;
}
.consult-modal-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:24px;
}
.consult-modal-label {
    color:#8B1C8C;
    font-size:12px;
    font-weight:700;
    letter-spacing:.4px;
}
.consult-modal-header h2 {
    margin:6px 0 8px;
    color:#17171B;
    font-size:23px;
    font-weight:700;
    line-height:1.35;
    letter-spacing:-.7px;
}
.consult-modal-header p {
    margin:0;
    color:#5E5863;
    font-size:14px;
    font-weight:500;
    line-height:1.6;
    word-break:keep-all;
}
.consult-close,
.privacy-popup-close {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:32px;
    height:32px;
    padding:0;
    border:0;
    border-radius:8px;
    background:#F4F3F6;
    color:#615B66;
    font-family:inherit;
    font-size:24px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    transition:background-color .2s,color .2s,transform .2s;
}
.consult-close:hover,
.privacy-popup-close:hover {
    background:#F0E7F2;
    color:#8B1C8C;
}
.consult-close:active,
.privacy-popup-close:active {
    transform:scale(.94);
}
.consult-form {
    display:flex;
    flex-direction:column;
    gap:22px;
}
.consult-fieldset {
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:0;
    margin:0;
    padding:0;
    border:0;
}
.consult-fieldset legend {
    margin-bottom:12px;
    padding:0;
    color:#17171B;
    font-size:15px;
    font-weight:700;
    line-height:1.5;
}
.consult-option {
    overflow:hidden;
    border:1px solid #DADAE0;
    border-radius:7px;
    background:#FFFFFF;
    transition:border-color .2s,box-shadow .2s,opacity .2s;
}
.consult-option[open] {
    border-color:#C99DCD;
    box-shadow:0 0 0 2px rgba(139,28,140,.04);
}
.consult-option[open] summary::after {
    transform:translateY(-20%) rotate(225deg);
}
.consult-option[data-locked="true"] > summary {
    opacity: .45;
    cursor: not-allowed;
}
.consult-option[data-locked="true"] > summary:focus {
    outline: none;
}
.consult-option summary {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:48px;
    padding:12px 38px 12px 16px;
    color:#29252E;
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    cursor:pointer;
    list-style:none;
    transition:background-color .2s;
}
.consult-option summary:hover {
    background:#FCF9FC;
}
.consult-option summary::-webkit-details-marker {
    display:none;
}
.consult-option summary::after {
    content:"";
    position:absolute;
    top:50%;
    right:18px;
    width:8px;
    height:8px;
    border-right:1.5px solid #77717C;
    border-bottom:1.5px solid #77717C;
    transform:translateY(-70%) rotate(45deg);
    transition:transform .25s cubic-bezier(.22,1,.36,1);
}
.consult-selected {
    margin-left:5px;
    color:#8B1C8C;
    font-size:15px;
    font-weight:700;
}
.consult-option-content {
    background:#FAF7FB;
}
.consult-option-confirm {
    display: block;
    margin: 12px 16px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: #8B1C8C;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.consult-option-content label {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:46px;
    padding:11px 16px;
    border-top:1px solid #E8E2EA;
    color:#4F4855;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
    cursor:pointer;
    transition:background-color .2s,color .2s;
}
.consult-option-content label:hover {
    background:#F4ECF5;
}
.consult-option-content label:has(input:checked) {
    background:#F0E4F2;
    color:#8B1C8C;
    font-weight:700;
}
.consult-option-content input {
    width:16px;
    height:16px;
    margin:0;
    flex-shrink:0;
    accent-color:#8B1C8C;
    cursor:pointer;
}
.consult-recommend {
    padding:2px 7px;
    border:1px solid #C88ACD;
    border-radius:10px;
    color:#8B1C8C;
    font-size:11px;
    font-weight:700;
}
.consult-option-locked {
    pointer-events:none;
    opacity:.78;
}
.consult-option-locked summary {
    cursor:default;
}
.consult-option-locked summary:hover {
    background:#FFFFFF;
}
.consult-selected-option {
    overflow:hidden;
    border:1px solid #E2DCE6;
    border-radius:7px;
    background:#FFFFFF;
    animation:consultSelectedIn .25s ease-out;
}
.consult-selected-option[hidden] {
    display:none;
}
.consult-selected-option-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:48px;
    padding:11px 13px;
    border-bottom:1px solid #EAE4ED;
    background:#FAF5FB;
}
.consult-selected-option-header > span {
    min-width:0;
    color:#29252E;
    font-size: 14px;
    font-weight:700;
    line-height:1.5;
    word-break:keep-all;
}
.consult-selected-option-header button {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:28px;
    height:28px;
    padding:0;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#77717C;
    font-family:inherit;
    font-size:23px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    transition:background-color .2s,color .2s,transform .2s;
}
.consult-selected-option-header button:hover {
    background:#EFE5F1;
    color:#8B1C8C;
}
.consult-selected-option-header button:active {
    transform:scale(.9);
}
.consult-selected-option-price {
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:12px 14px;
}
.consult-selected-option-price > div {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    min-height:22px;
    line-height:1.5;
}
.consult-selected-option-price span {
    color: #4F4855;
    font-size: 14px;
    font-weight: 500;
}
.consult-selected-option-price strong {
    min-width:80px;
    color:#17171B;
    font-size:16px;
    font-weight:700;
    text-align:right;
    white-space:nowrap;
}
.consult-selected-option-price > div:last-child strong {
    color:#EF3D78;
}
.consult-field {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.consult-field > label {
    color:#17171B;
    font-size:15px;
    font-weight:700;
    line-height:1.5;
}
.consult-field > input {
    width:100%;
    height:48px;
    padding:0 16px;
    border:1px solid #DADAE0;
    border-radius:7px;
    background:#FFFFFF;
    color:#17171B;
    font-family:inherit;
    font-size:15px;
    font-weight:500;
    outline:none;
    transition:border-color .2s,box-shadow .2s;
}
.consult-field > input:hover {
    border-color:#C8C2CE;
}
.consult-field > input:focus {
    border-color:#8B1C8C;
    box-shadow:0 0 0 3px rgba(139,28,140,.08);
}
.consult-field > input::placeholder {
    color:#92909A;
    font-size:14px;
    font-weight:500;
}
.consult-field > input[aria-invalid="true"] {
    border-color: #D92D20;
    background: #FFF8F7;
}
.consult-request-field {
    gap: 9px;
}
.consult-request-field > label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.consult-optional {
    color: #92909A;
    font-size: 12px;
    font-weight: 400;
}
.consult-request-field > textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 94px;
    padding: 13px 15px;
    border: 1px solid #DADAE0;
    border-radius: 7px;
    background: #FFFFFF;
    color: #17171B;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}
.consult-request-field > textarea:hover {
    border-color: #C8C2CE;
}
.consult-request-field > textarea:focus {
    border-color: #8B1C8C;
    box-shadow: 0 0 0 3px rgba(139, 28, 140, .08);
}
.consult-request-field > textarea::placeholder {
    color: #92909A;
}
.consult-request-hint {
    margin: 0;
    color: #92909A;
    font-size: 12px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.consult-privacy {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.consult-privacy-agree {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    color:#514A56;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
    cursor:pointer;
}
.consult-privacy-agree input {
    width:17px;
    height:17px;
    margin:0;
    flex-shrink:0;
    accent-color:#8B1C8C;
    cursor:pointer;
}
.consult-privacy-detail-btn {
    flex-shrink:0;
    padding:5px 0;
    border:0;
    background:transparent;
    color:#8B1C8C;
    font-family:inherit;
    font-size:13px;
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:3px;
    cursor:pointer;
}
.consult-privacy:has(input[aria-invalid="true"]) {
    border-color: #D92D20;
}
.consult-submit {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    min-height:52px;
    padding:12px 16px;
    border:0;
    border-radius:7px;
    background:linear-gradient(110deg,#A52BB0,#8B1C8C,#65156E);
    color:#FFFFFF;
    font-family:inherit;
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    cursor:pointer;
    transition:filter .2s,transform .2s,box-shadow .2s;
}
.consult-submit:hover {
    filter:brightness(1.05);
    box-shadow:0 6px 16px rgba(139,28,140,.16);
}
.consult-submit:active {
    transform:scale(.985);
    box-shadow:none;
}
body.consult-modal-open {
    overflow:hidden;
}
.privacy-popup {
    position:fixed;
    inset:0;
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.privacy-popup-backdrop {
    position:absolute;
    inset:0;
    background:rgba(18,15,24,.45);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}
.privacy-popup-panel {
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:440px;
    max-height:80vh;
    max-height:80dvh;
    overflow:hidden;
    border:1px solid #ECE8EE;
    border-radius:12px;
    background:#FFFFFF;
    box-shadow:0 20px 60px rgba(0,0,0,.16);
    animation:consultModalIn .25s cubic-bezier(.22,1,.36,1);
}
.privacy-popup-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:20px 22px;
    border-bottom:1px solid #ECE8EE;
}
.privacy-popup-header h2 {
    margin:0;
    color:#17171B;
    font-size:18px;
    font-weight:700;
    letter-spacing:-.4px;
}
.privacy-popup-body {
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:24px 22px;
    color:#4F4855;
    font-size:14px;
    font-weight:500;
    line-height:1.7;
}
.privacy-popup-body dl {
    display:grid;
    grid-template-columns:105px minmax(0,1fr);
    gap:16px 12px;
    margin:0;
}
.privacy-popup-body dt {
    color:#17171B;
    font-weight:700;
}
.privacy-popup-body dd {
    margin:0;
    color:#4F4855;
    overflow-wrap:anywhere;
}
.privacy-popup-body p {
    margin:22px 0 0;
    padding-top:16px;
    border-top:1px solid #F0EDF1;
    color:#5E5863;
    font-size:13px;
    font-weight:500;
}
.privacy-popup-footer {
    padding:0 22px 22px;
}
.privacy-popup-footer button {
    width:100%;
    min-height:48px;
    padding:10px 16px;
    border:0;
    border-radius:7px;
    background:#8B1C8C;
    color:#FFFFFF;
    font-family:inherit;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:background-color .2s,transform .2s;
}
.privacy-popup-footer button:hover {
    background:#65156E;
}
.privacy-popup-footer button:active {
    transform:scale(.985);
}
.consult-error {
    margin: 6px 0 0;
    color: #D92D20;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}
.consult-error[hidden] {
    display: none;
}
.consult-modal :is(button, input, summary):focus-visible,
.privacy-popup :is(button, input):focus-visible {
    outline: 2px solid #5952F5;
    outline-offset: 3px;
}
.consult-fieldset[hidden] {
    display: none;
}
@keyframes consultModalIn {
    from {
        opacity:0;
        transform:translateY(12px) scale(.985);
    }
    to {
        opacity:1;
        transform:translateY(0) scale(1);
    }
}
@keyframes consultSelectedIn {
    from {
        opacity:0;
        transform:translateY(6px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}
@keyframes consultSheetIn {
    from {
        transform:translateY(100%);
    }
    to {
        transform:translateY(0);
    }
}
@media(max-width:768px) {
    .consult-overlay {
        align-items:flex-end;
        padding:0;
    }
    .consult-modal {
        max-width:none;
        max-height:92vh;
        max-height:92dvh;
        padding:12px 20px calc(24px + env(safe-area-inset-bottom));
        border:0;
        border-radius:16px 16px 0 0;
        box-shadow:0 -12px 40px rgba(15,10,22,.14);
        animation:consultSheetIn .32s cubic-bezier(.22,1,.36,1);
    }
    .consult-handle {
        display:block;
        width:40px;
        height:4px;
        margin:0 auto 24px;
        border-radius:4px;
        background:#A1A0AA;
    }
    .consult-modal-header {
        margin-bottom:24px;
    }
    .consult-modal-header h2 {
        font-size:21px;
    }
    .consult-modal-header p {
        font-size:14px;
    }
    .consult-form {
        gap:20px;
    }
    .consult-option summary {
        min-height:48px;
        font-size:15px;
    }
    .consult-selected-option-header {
        padding:10px 12px;
    }
    .consult-selected-option-price {
        padding:12px;
    }
    .consult-selected-option-price strong {
        font-size:16px;
    }
    .privacy-popup {
        padding:16px;
    }
    .privacy-popup-header {
        padding:18px;
    }
    .privacy-popup-body {
        padding:20px 18px;
    }
    .privacy-popup-footer {
        padding:0 18px 18px;
    }
    .consult-request-field > textarea {
        min-height: 86px;
        padding: 12px 13px;
        font-size: 13px;
    }
    .consult-request-hint {
        font-size: 11px;
    } 
}
@media(max-width:380px) {
    .consult-modal {
        padding-right:16px;
        padding-left:16px;
    }
    .consult-modal-header h2 {
        font-size:20px;
    }
    .consult-selected-option-header > span {
        font-size:12px;
    }
    .consult-selected-option-price span {
        font-size:12px;
    }
    .consult-selected-option-price strong {
        font-size:15px;
    }
    .consult-privacy-agree {
        font-size:13px;
    }
    .privacy-popup-body dl {
        grid-template-columns:90px minmax(0,1fr);
        gap:12px 10px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .consult-modal,
    .privacy-popup-panel,
    .consult-selected-option {
        animation:none;
    }
    .consult-close,
    .privacy-popup-close,
    .consult-option,
    .consult-option summary,
    .consult-option-content label,
    .consult-selected-option-header button,
    .consult-field > input,
    .consult-submit,
    .privacy-popup-footer button {
        transition:none;
    }
}
