/* iSeodang Inquiry Hub — Quiet Premium form UI (모바일 우선, 8pt 스케일) */
.isd-inq, .isd-inq-modal, .isd-inq-inject {
	--isd-green: #1F7A4D;
	--isd-green-d: #17603C;
	--isd-gold: #C9A15A;
	--isd-ink: #1A1F1C;
	--isd-body: #374151;
	--isd-muted: #6B7280;
	--isd-line: #E7E2D6;
	--isd-cream: #F6F4EE;
	--isd-soft: #FAF8F3;
	--isd-err: #B42318;
	--isd-err-bg: #FEF3F2;
	--isd-radius: 12px;
	--isd-focus: 0 0 0 3px rgba(31, 122, 77, .22);
}
.isd-inq { margin: 40px auto; max-width: 760px; padding: 0 16px; color: var(--isd-body); font-size: 16px; line-height: 1.6; box-sizing: border-box; }
.isd-inq *, .isd-inq *::before, .isd-inq *::after { box-sizing: border-box; }
.isd-inq__card { background: #fff; border: 1px solid var(--isd-line); border-radius: 16px; padding: 32px 24px; box-shadow: 0 1px 2px rgba(26,31,28,.04), 0 12px 32px -18px rgba(26,31,28,.18); position: relative; overflow: hidden; }
.isd-inq__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--isd-green) 0 70%, var(--isd-gold) 70% 100%); }
@media (min-width: 768px) { .isd-inq__card { padding: 40px 48px; } }

.isd-inq__eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--isd-gold); font-weight: 700; }
.isd-inq__title { margin: 0 0 8px; font-size: 26px; line-height: 1.25; color: var(--isd-ink); font-weight: 700; letter-spacing: -.01em; }
.isd-inq__intro { margin: 0 0 24px; color: var(--isd-muted); font-size: 15px; }
.isd-inq__noscript { padding: 12px 16px; background: var(--isd-soft); border-radius: 8px; }

.isd-inq__form[hidden], .isd-inq [hidden] { display: none !important; }
.isd-inq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.isd-inq__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--isd-ink); padding: 0; }
.isd-inq__label b, .isd-inq__check b { color: var(--isd-err); font-weight: 700; }
.isd-inq__opt { font-weight: 400; color: var(--isd-muted); font-size: 13px; }

.isd-inq__grid { display: grid; grid-template-columns: 1fr; gap: 20px 16px; margin-top: 24px; }
@media (min-width: 640px) { .isd-inq__grid { grid-template-columns: 1fr 1fr; } .isd-inq__field--full { grid-column: 1 / -1; } }
.isd-inq__field { min-width: 0; }

.isd-inq__input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--isd-ink); background: #fff; border: 1px solid #D5D0C4; border-radius: 10px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
select.isd-inq__input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.isd-inq__input:hover { border-color: #BDB6A6; }
.isd-inq__input:focus { outline: none; border-color: var(--isd-green); box-shadow: var(--isd-focus); }
.isd-inq__textarea { min-height: 132px; resize: vertical; }
.isd-inq__occ-other { margin-top: 8px; }
.isd-inq__count { margin: 6px 0 0; font-size: 12px; color: var(--isd-muted); text-align: right; }
.isd-inq__hint { margin: 6px 0 0; font-size: 13px; color: var(--isd-body); }
.isd-inq__hint button { background: none; border: 0; padding: 0 2px; color: var(--isd-green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 0; }

/* 유형 칩 */
.isd-inq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.isd-inq__chip { position: relative; flex: 0 0 auto; }
.isd-inq__chip input, .isd-inq__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.isd-inq__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #D5D0C4; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--isd-body); background: #fff; cursor: pointer; transition: all .15s; user-select: none; }
.isd-inq__chip span:hover { border-color: var(--isd-green); color: var(--isd-green); }
.isd-inq__chip input:checked + span { background: var(--isd-green); border-color: var(--isd-green); color: #fff; box-shadow: 0 4px 12px -6px rgba(31,122,77,.6); }
.isd-inq__chip input:focus-visible + span, .isd-inq__seg input:focus-visible + span { box-shadow: var(--isd-focus); }

/* 세그먼트(성별·연락방법) */
.isd-inq__seg { display: flex; flex-wrap: wrap; gap: 8px; }
.isd-inq__seg label { position: relative; flex: 1 1 auto; margin: 0; }
.isd-inq__seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; border: 1px solid #D5D0C4; border-radius: 10px; font-size: 15px; background: #fff; cursor: pointer; text-align: center; transition: all .15s; }
.isd-inq__seg input:checked + span { border-color: var(--isd-green); background: #EEF6F1; color: var(--isd-green-d); font-weight: 700; box-shadow: inset 0 0 0 1px var(--isd-green); }

/* 동의 */
.isd-inq__consents { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--isd-line); display: grid; gap: 12px; }
.isd-inq__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--isd-body); cursor: pointer; }
.isd-inq__check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--isd-green); }
.isd-inq__check a { color: var(--isd-green); }

/* 버튼 */
.isd-inq__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.isd-inq__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 32px; border: 0; border-radius: 10px; background: var(--isd-green); color: #fff !important; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .05s; flex: 1 1 220px; }
.isd-inq__submit:hover { background: var(--isd-green-d); }
.isd-inq__submit:active { transform: translateY(1px); }
.isd-inq__submit:focus-visible { outline: none; box-shadow: var(--isd-focus); }
.isd-inq__submit[disabled] { opacity: .7; cursor: progress; }
.isd-inq__submit[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: isd-inq-spin .8s linear infinite; }
.isd-inq__submit--ghost { background: #fff; color: var(--isd-green) !important; border: 1px solid var(--isd-green); flex: 0 0 auto; }
.isd-inq__submit--ghost:hover { background: #EEF6F1; }
.isd-inq__wa { font-size: 14px; color: var(--isd-muted); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
@keyframes isd-inq-spin { to { transform: rotate(360deg); } }

/* 오류 */
.isd-inq__err, .isd-inq__formerr { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--isd-err); display: flex; gap: 6px; }
.isd-inq__err::before, .isd-inq__formerr::before { content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--isd-err); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; margin-top: 1px; }
.isd-inq .is-error .isd-inq__input, .isd-inq .isd-inq__input[aria-invalid="true"] { border-color: var(--isd-err); background: var(--isd-err-bg); }
.isd-inq .is-error .isd-inq__seg span, .isd-inq .is-error .isd-inq__chip span { border-color: #F1B0A8; }
.isd-inq__summary { margin: 0 0 8px; padding: 14px 16px; border: 1px solid #F1B0A8; border-left: 4px solid var(--isd-err); border-radius: 10px; background: var(--isd-err-bg); color: #7A271A; font-size: 14px; }
.isd-inq__summary:focus { outline: none; }
.isd-inq__summary ul { margin: 6px 0 0; padding-left: 18px; }
.isd-inq__summary button { background: none; border: 0; padding: 2px 0; color: #7A271A; font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; }
.isd-inq__formerr { margin-top: 12px; }

/* 완료 */
.isd-inq__done { text-align: center; padding: 16px 0 8px; animation: isd-inq-in .4s ease-out; }
.isd-inq__done:focus { outline: none; }
.isd-inq__done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--isd-green); box-shadow: 0 0 0 8px #EEF6F1; }
.isd-inq__done-title { margin: 0 0 8px; font-size: 22px; color: var(--isd-ink); }
.isd-inq__done-body { margin: 0 auto 24px; max-width: 460px; color: var(--isd-body); }
@keyframes isd-inq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 허니팟 (화면·스크린리더 모두 숨김) */
.isd-inq__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* intl-tel-input 정렬 */
.isd-inq .iti, .isd-inq-inject .iti { width: 100%; display: block; }
.isd-inq .iti__country-container { border-radius: 10px 0 0 10px; }
.isd-inq .iti input.isd-inq__input { padding-left: 96px; }

/* 모달 */
.isd-inq-modal { width: min(760px, calc(100vw - 16px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: auto; }
.isd-inq-modal::backdrop { background: rgba(16, 21, 18, .55); backdrop-filter: blur(3px); }
.isd-inq-modal .isd-inq { margin: 0; padding: 0; }
.isd-inq-modal .isd-inq__card { border: 0; border-radius: 18px; }
.isd-inq-modal__close { position: sticky; top: 8px; float: right; z-index: 2; margin: 8px 8px -52px 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--isd-line); background: #fff; color: var(--isd-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.isd-inq-modal__close:focus-visible { outline: none; box-shadow: var(--isd-focus); }

/* 외부 폼 주입 블록 */
.isd-inq-inject { margin: 16px 0 20px; padding: 18px 16px; border: 1px solid var(--isd-line); border-left: 4px solid var(--isd-green); border-radius: 12px; background: var(--isd-soft); font-size: 15px; color: var(--isd-body); clear: both; }
.isd-inq-inject__title { margin: 0 0 12px; font-weight: 700; color: var(--isd-ink); font-size: 15px; }
.isd-inq-inject__row { margin: 0 0 14px; }
.isd-inq-inject__row > label, .isd-inq-inject__lab { display: block; font-size: 14px; font-weight: 600; color: var(--isd-ink); margin-bottom: 6px; }
.isd-inq-inject__row select, .isd-inq-inject__row input[type="tel"], .isd-inq-inject__row input[type="email"], .isd-inq-inject__row input[type="text"] { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; font-size: 16px; border: 1px solid #D5D0C4; border-radius: 8px; background-color: #fff; box-sizing: border-box; }
.isd-inq-inject [aria-invalid="true"] { border-color: var(--isd-err) !important; background-color: var(--isd-err-bg) !important; }
.isd-inq-inject .isd-inq__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.isd-inq-inject .isd-inq__seg { display: flex; flex-wrap: wrap; gap: 8px; }
.isd-inq-inject .isd-inq__seg label { position: relative; flex: 1 1 auto; margin: 0; }
.isd-inq-inject .isd-inq__seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #D5D0C4; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; }
.isd-inq-inject .isd-inq__seg input:checked + span { border-color: var(--isd-green); background: #EEF6F1; color: var(--isd-green-d); font-weight: 700; }
.isd-inq-inject .isd-inq__seg input:focus-visible + span { box-shadow: var(--isd-focus); }
.isd-inq-inject__err { margin: 8px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--isd-err-bg); color: #7A271A; border: 1px solid #F1B0A8; font-size: 14px; }
.isd-inq-inject__err ul { margin: 6px 0 0; padding-left: 18px; }
.isd-inq-inject.is-error { border-left-color: var(--isd-err); }

@media (prefers-reduced-motion: reduce) {
	.isd-inq *, .isd-inq-inject * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
