/* 예약 · 문의 폼 (lead.js) — 색은 사이트 style.css 의 변수를 따릅니다
   --brand, --brand-ink(브랜드색 위 글자), --ink, --sub, --card, --line, --soft, --radius */
.lead { --r: var(--radius, 12px); color: var(--ink); min-width: 0; }
.lead em { color: var(--brand); font-style: normal; }
.lead__kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.lead__kinds button { text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.lead__kinds button b { display: block; font-size: 15px; }
.lead__kinds button small { display: block; margin-top: 3px; color: var(--sub); font-size: 12.5px; line-height: 1.45; }
.lead__kinds button[aria-selected=true] { border-color: var(--brand); background: var(--soft); box-shadow: inset 0 0 0 1px var(--brand); }
.lead__form, .lead__done { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); }
.lead__block + .lead__block { margin-top: 22px; }
.lead__block[hidden] { display: none; }
.lead__label { margin: 0 0 10px; font-weight: 700; font-size: 14.5px; }
.lead__hint { color: var(--sub); font-weight: 400; font-size: 12.5px; }
.lead__muted { color: var(--sub); font-size: 14px; margin: 6px 0; }
.lead__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead__chip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.lead__chip small { margin-left: 6px; color: var(--sub); font-size: 12px; }
.lead__chip[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.lead__chip[aria-pressed=true] small { color: inherit; opacity: .8; }
.lead__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lead__grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.lead__wide { grid-column: 1 / -1; }
.lead input:not([type=checkbox]), .lead select, .lead textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: calc(var(--r) * .6);
  background: var(--field, transparent); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400;
}
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.lead textarea { resize: vertical; line-height: 1.6; }
.lead__dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.lead__dates button { flex: 0 0 58px; padding: 8px 0; border: 1.5px solid var(--line); border-radius: calc(var(--r) * .7); background: transparent; color: var(--ink); cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.lead__dates button b { font-size: 18px; }
.lead__dates button small { font-size: 11px; color: var(--sub); }
.lead__dates .is-sun small:first-child { color: #d64545; }
.lead__dates .is-sat small:first-child { color: #3b6fd8; }
.lead__dates button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.lead__dates button[aria-pressed=true] small { color: inherit !important; opacity: .85; }
.lead__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.lead__times p { grid-column: 1 / -1; }
.lead__times button { padding: 10px 4px; border: 1.5px solid var(--line); border-radius: calc(var(--r) * .6); background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; display: flex; flex-direction: column; align-items: center; }
.lead__times button small { font-size: 11px; font-weight: 400; color: var(--sub); }
.lead__times button:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.lead__times button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.lead__times button[aria-pressed=true] small { color: inherit; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__agree { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 14px; }
.lead__agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.lead__agree details { margin-top: 6px; color: var(--sub); font-size: 12.5px; line-height: 1.6; }
.lead__agree summary { cursor: pointer; text-decoration: underline; }
.lead__agree a { color: inherit; }
.lead__error { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: 14px; }
.lead__submit { width: 100%; margin-top: 18px; padding: 16px; border: 0; border-radius: var(--r); background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: filter .15s; }
.lead__submit:hover { filter: brightness(1.08); }
.lead__submit:disabled { opacity: .6; cursor: wait; }
.lead__ghost { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: calc(var(--r) * .6); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lead__ghost:hover { border-color: var(--brand); }
.lead__done { text-align: center; }
.lead__check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 28px; font-weight: 700; }
.lead__done h3 { margin: 0 0 8px; font-size: 21px; }
.lead__code b { font-size: 22px; letter-spacing: .12em; color: var(--brand); }
.lead dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; max-width: 380px; margin: 14px auto; font-size: 14.5px; }
.lead dt { color: var(--sub); }
.lead dd { margin: 0; }
.lead__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.lead__lookup { margin-top: 14px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--r); font-size: 14px; }
.lead__lookup summary { cursor: pointer; font-weight: 600; color: var(--sub); }
.lead__lookup form { margin-top: 12px; grid-template-columns: 1fr 1fr auto; align-items: end; }
.lead__lookres dl { margin: 12px 0; max-width: none; }
@media (max-width: 640px) {
  .lead__grid, .lead__lookup form { grid-template-columns: 1fr; }
}
