/* ============================================================
   consult-modal.css — 상담 신청 모달 기본 스타일(테마 중립)
   자체 모달 CSS 가 없는 템플릿(레거시 등)에서 js/consult.js 와 함께 사용.
   자체 스타일이 있는 템플릿은 이 파일을 넣지 않는다.
   ============================================================ */
.cmodal { position: fixed; top: 0; left: 0; right: 0; height: 100dvh; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(10, 18, 32, .62); backdrop-filter: blur(5px); }
.cmodal__panel {
  position: relative; width: min(540px, 100%); max-height: min(88vh, 88dvh); overflow-y: auto;
  background: #fff; color: #16202e; border-radius: 20px; padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 40px 90px -28px rgba(10, 18, 32, .5);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  word-break: keep-all;
}
.cmodal__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f3f7; color: #56607a; font-size: 15px; cursor: pointer; }
.cmodal__x:hover { background: #e5e9f0; }
.cmodal__eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FF5A1F; margin-bottom: 8px; }
.cmodal__title { font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.cmodal__lead { font-size: .92rem; color: #56607a; line-height: 1.7; margin: 0 0 20px; }
.cform { display: grid; gap: 14px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__row { display: grid; gap: 6px; position: relative; }
.cform__k { font-size: .84rem; font-weight: 700; color: #56607a; }
.cform__k i { color: #FF5A1F; font-style: normal; }
.cform input[type=text], .cform input[type=tel], .cform textarea {
  width: 100%; border: 1.5px solid #dfe4ee; border-radius: 10px; background: #fff;
  padding: 12px 14px; font: inherit; font-size: .95rem; color: #16202e; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.cform input:focus, .cform textarea:focus { border-color: #FF5A1F; box-shadow: 0 0 0 3px rgba(255, 90, 31, .14); }
.cform textarea { resize: vertical; min-height: 84px; }
.cform__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .cform__grid2 { grid-template-columns: minmax(0, 1fr); } }
.cschool__list { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: 6px; background: #fff; border: 1px solid #dfe4ee; border-radius: 10px; box-shadow: 0 18px 44px -18px rgba(10,18,32,.28); max-height: 236px; overflow-y: auto; list-style: none; padding: 0; }
.cschool__list[hidden] { display: none; }
.cschool__list li { padding: 0; }
.cschool__list button { width: 100%; text-align: left; padding: 11px 14px; border: 0; background: none; font: inherit; font-size: .9rem; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.cschool__list button:hover { background: rgba(255, 90, 31, .1); }
.cschool__hint { font-size: .76rem; color: #8a93a8; }
.cform__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: #56607a; line-height: 1.6; cursor: pointer; }
.cform__consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: #FF5A1F; flex: 0 0 auto; }
.cform__consent a { color: #E8470F; text-decoration: underline; }
.cform__msg { font-size: .86rem; min-height: 1.2em; margin: 0; }
.cform__msg.is-error { color: #d92d20; font-weight: 700; }
.cform__submit { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: #FF5A1F; color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.cform__submit:hover { background: #E8470F; }
.cform__note { font-size: .74rem; color: #8a93a8; line-height: 1.65; margin: 0; }
.cform__done { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 26px 0 8px; }
.cform__done[hidden] { display: none; }
.cform__check { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,90,31,.12); color: #E8470F; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.cform__done b { font-size: 1.15rem; }
.cform__done p { font-size: .92rem; color: #56607a; margin: 0; }
