/* 문의하기 */
.tmc { --c-ink: #0F172A; --c-ink2: #334155; --c-mute: #64748B; --c-faint: #A3AEBD; --c-line: #E2E8F0; --c-field: #F4F6F9; position: relative; padding: clamp(56px, 6vw, 88px) 0 clamp(80px, 8vw, 120px); background: #fff; color: var(--c-ink); overflow: clip; }
.tmc::before { content: ""; position: absolute; inset: 0 0 auto; height: 720px; background-image: radial-gradient(circle, #DCE3EB 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.tmc *, .tmc *::before, .tmc *::after { box-sizing: border-box; }
.tmc__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); width: min(var(--tm-max, 1400px), calc(100% - 40px)); margin: 0 auto; }

/* 왼쪽: 입력하면 채워지는 문장 */
.tmc-intro { position: sticky; top: 140px; align-self: start; }
.tmc-headline { margin-top: 0; }
.tmc-crumb { display: flex; gap: 8px; margin-bottom: 28px; color: var(--c-faint); font-size: 13px; font-weight: 600; }
.tmc-crumb a { color: var(--c-faint); text-decoration: none; }
.tmc-crumb strong { color: var(--c-ink2); font-weight: 700; }
.tmc-headline { margin: 0; color: var(--c-ink); font-size: clamp(32px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.055em; line-height: 1.38; word-break: keep-all; }
.tmc-tok { color: #059669; opacity: .42; transition: opacity .25s; }
.tmc-tok.is-on { opacity: 1; }
.tmc-headline__end { color: var(--c-ink); }
.tmc-lead { max-width: 420px; margin: 26px 0 0; color: var(--c-mute); font-size: 16px; line-height: 1.75; word-break: keep-all; }
.tmc-direct { display: grid; gap: 0; max-width: 420px; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--c-line); list-style: none; }
.tmc-direct li { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.tmc-direct span { color: var(--c-faint); font-size: 13px; font-weight: 700; }
.tmc-direct a, .tmc-direct b { color: var(--c-ink); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.tmc-direct em { grid-column: 2; margin-top: 3px; color: var(--c-mute); font-size: 13px; font-style: normal; }

/* 오른쪽: 폼 */
.tmc-form { display: grid; gap: 16px; margin: 0; }
.tmc-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.tmc-step__head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; }
.tmc-step__head > span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-ink); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.tmc-step__head h2 { margin: 2px 0 0; color: var(--c-ink); font-size: 21px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
.tmc-step__head p { margin: 4px 0 0; color: var(--c-mute); font-size: 14px; line-height: 1.55; }
.tmc-step__head em, .tmc-field em { color: #2563EB; font-style: normal; }
.tmc-step { padding: 32px; border: 1px solid var(--c-line); border-radius: 24px; background: rgba(255, 255, 255, .92); }
.tmc-flow { position: relative; display: grid; gap: 18px; max-width: 420px; margin: 36px 0 0; padding: 0 0 0 4px; list-style: none; counter-reset: f; }
.tmc-flow::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 15px; width: 1px; background: var(--c-line); }
.tmc-flow li { position: relative; display: grid; padding-left: 40px; counter-increment: f; }
.tmc-flow li::before { content: counter(f); position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-ink2); font-size: 12px; font-weight: 800; }
.tmc-flow b { color: var(--c-ink); font-size: 15px; font-weight: 800; letter-spacing: -.03em; line-height: 24px; }
.tmc-flow span { margin-top: 2px; color: var(--c-mute); font-size: 13.5px; line-height: 1.5; }

.tmc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tmc-type { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.tmc-type input { position: absolute; opacity: 0; pointer-events: none; }
.tmc-type__ic { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-field); color: var(--c-ink2); transition: background .15s, color .15s; }
.tmc-type__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tmc-type b { color: var(--c-ink); font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.tmc-type small { color: var(--c-mute); font-size: 12.5px; line-height: 1.4; }
.tmc-type:has(input:checked) { border-color: var(--c-ink); background: var(--c-ink); transform: none; }
.tmc-type:has(input:checked) .tmc-type__ic { background: rgba(255, 255, 255, .12); color: #fff; }
.tmc-type:has(input:checked) b { color: #fff; }
.tmc-type:has(input:checked) small { color: rgba(255, 255, 255, .7); }
.tmc-type:has(input:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.tmc-types:has(input[aria-invalid="true"]) .tmc-type { border-color: #FCA5A5; }

.tmc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.tmc-field { position: relative; display: grid; gap: 8px; min-width: 0; }
.tmc-step > .tmc-field + .tmc-field { margin-top: 14px; }
.tmc-field > span { color: var(--c-ink2); font-size: 13.5px; font-weight: 700; }
.tmc-field input, .tmc-field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--c-field); color: var(--c-ink); font: inherit; font-size: 15.5px; font-weight: 500; outline: 0; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.tmc-field textarea { height: auto; min-height: 190px; padding: 16px; line-height: 1.7; resize: vertical; }
.tmc-field input::placeholder, .tmc-field textarea::placeholder { color: var(--c-faint); }
.tmc-field input:focus, .tmc-field textarea:focus { border-color: var(--c-ink); background: #fff; }
.tmc-count { justify-self: end; color: var(--c-faint); font-size: 12.5px; font-weight: 600; }

.tmc-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; padding: 22px 24px 22px 28px; border-radius: 24px; background: var(--c-field); }
.tmc-agree { position: relative; display: flex; align-items: flex-start; gap: 10px; flex: 1 1 320px; color: var(--c-ink2); font-size: 14px; line-height: 1.55; cursor: pointer; }
.tmc-agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tmc-agree i { flex: none; width: 22px; height: 22px; margin-top: 0; border: 1.5px solid #B8C2CE; border-radius: 50%; background: #fff; transition: background .15s, border-color .15s; }
.tmc-agree input:checked + i { border-color: var(--c-ink); background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tmc-agree input:focus-visible + i { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.tmc-agree input[aria-invalid="true"] + i { border-color: #EF4444; }
.tmc-submit button { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 10px 0 26px; border: 0; border-radius: 999px; background: var(--c-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.02em; cursor: pointer; transition: background .15s, transform .15s; }
.tmc-submit button::after { content: "→"; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 17px; transition: transform .2s; }
.tmc-submit button:disabled { opacity: .6; cursor: wait; }
.tmc-form .tm-home-cta-form__status { flex-basis: 100%; order: 3; }

@media (max-width: 1100px) {
    .tmc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tmc { padding: 40px 0 72px; }
    .tmc::before { height: 480px; }
    .tmc__inner { grid-template-columns: 1fr; gap: 40px; width: calc(100% - 32px); }
    .tmc-intro { position: static; }
    .tmc-crumb { margin-bottom: 18px; }
    .tmc-headline { font-size: clamp(27px, 7.4vw, 34px); }
    .tmc-lead { margin-top: 16px; font-size: 15px; }
    .tmc-direct { display: none; }
    .tmc-form { gap: 12px; }
    .tmc-flow { display: none; }
    .tmc-step { padding: 22px 18px; border-radius: 20px; }
    .tmc-step__head h2 { font-size: 19px; }
    .tmc-submit { padding: 18px; }
}
@media (max-width: 560px) {
    .tmc-types { gap: 8px; }
    .tmc-type { grid-template-columns: 1fr; row-gap: 2px; padding: 14px; }
    .tmc-type__ic { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; }
    .tmc-fields { grid-template-columns: 1fr; }
    .tmc-submit button { width: 100%; justify-content: space-between; }
}
