/* =========================================================
   하위 페이지 공통
========================================================= */

.page-head {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0d47a1 0%, #1e88e5 70%, #64b5f6 100%);
}
.page-head::after {
  content: ""; position: absolute; right: -10%; bottom: -70px; left: -10%; height: 120px;
  background: rgba(255, 255, 255, .1); border-radius: 50%;
}
.page-head-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 70px 20px 80px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; opacity: .85; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { margin: 14px 0 0; font-size: 44px; font-weight: 800; letter-spacing: -1.5px; }
.page-lead { margin: 14px 0 0; font-size: 19px; line-height: 1.6; opacity: .92; word-break: keep-all; }

.sub-section { padding: 90px 20px; }
.sub-section--tint { background: #f3f8fe; }
.sub-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--blue); font-size: 16px; font-weight: 700; }
.center { text-align: center; }
.sub-heading {
  margin: 10px 0 36px; color: var(--navy); font-size: 34px; font-weight: 800;
  line-height: 1.35; letter-spacing: -1.2px; word-break: keep-all;
}
.card-grid + .sub-lead { margin-top: 30px; }
.sub-lead { max-width: 820px; margin: 0 auto 30px; color: #3d4b5c; font-size: 18px; line-height: 1.8; text-align: center; word-break: keep-all; }
.note { margin: 20px 0 0; color: #6b7c90; font-size: 14px; line-height: 1.7; word-break: keep-all; }
.text-link { color: var(--blue); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 24px;
  font-size: 16px; font-weight: 700; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d98a06; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-kakao { background: #fee500; color: #3c1e1e; }
.btn-kakao:hover { background: #f2d900; }

/* 카드 */
.card-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  padding: 32px 26px; background: #fff; border: 1px solid #d6e6f7; border-radius: 18px;
  text-align: center; box-shadow: 0 10px 30px rgba(13, 71, 161, .05);
}
.info-card--left { text-align: left; }
.info-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -.5px; word-break: keep-all; }
.info-card p { margin: 0; color: #4a5b70; font-size: 16px; line-height: 1.7; word-break: keep-all; }
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
}
.info-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 26px; color: #3d4b5c; font-size: 16px; line-height: 1.6; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }

/* 인사말 */
.greeting { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; }
.greeting-photo img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 50px rgba(13, 71, 161, .15); }
.greeting-text p { margin: 0 0 16px; color: #3d4b5c; font-size: 17px; line-height: 1.85; word-break: keep-all; }
.greeting-text .sub-heading { margin-bottom: 24px; }
.signature { margin-top: 26px !important; color: var(--navy) !important; text-align: right; }

/* 표 */
.info-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { padding: 16px 18px; border-bottom: 1px solid #e3eefa; font-size: 16px; text-align: left; vertical-align: top; }
.info-table th { width: 160px; background: #f3f8fe; color: var(--navy); font-weight: 700; }
.info-table td { color: #2b3a4d; line-height: 1.6; word-break: keep-all; }
.info-table a:not(.text-link) { color: inherit; }

/* 단계 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps--compact { grid-template-columns: repeat(3, 1fr); }
.steps li {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 56px 20px 26px; background: #fff; border: 1px solid #d6e6f7; border-radius: 16px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; top: 18px; left: 20px;
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800;
}
.steps strong { color: var(--navy); font-size: 18px; font-weight: 800; }
.steps span { color: #4a5b70; font-size: 15px; line-height: 1.6; word-break: keep-all; }

/* 강조 박스 */
.highlight-box {
  margin: 0 0 60px; padding: 26px 30px; border-left: 5px solid var(--orange); border-radius: 12px;
  background: #fff7e8;
}
.highlight-box strong { color: #b45f00; font-size: 20px; }
.highlight-box p { margin: 8px 0 0; color: #5c4a2a; font-size: 16px; line-height: 1.7; word-break: keep-all; }

.limit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.limit-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 8px; background: #fff; border-radius: 14px; border: 1px solid #d6e6f7; }
.limit-grid span { color: #4a5b70; font-size: 15px; }
.limit-grid strong { color: var(--navy); font-size: 18px; font-weight: 800; }

/* 오시는 길 */
.map-box {
  position: relative; width: 100%; height: 460px; overflow: hidden;
  border: 1px solid #d6e6f7; border-radius: 18px; background: #eef4fb;
}
.map-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; padding: 20px; text-align: center; color: #3d4b5c;
}
.map-fallback p { margin: 0; font-size: 16px; word-break: keep-all; }
.map-fallback-title { color: var(--navy); font-size: 22px !important; font-weight: 800; }
.map-label {
  padding: 6px 12px; border-radius: 16px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.location-info { margin-top: 30px; }
.location-info dl { margin: 0; border-top: 2px solid var(--navy); }
.location-info dl > div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid #e3eefa; }
.location-info dt { padding: 16px 18px; background: #f3f8fe; color: var(--navy); font-weight: 700; }
.location-info dd { margin: 0; padding: 16px 18px; color: #2b3a4d; line-height: 1.6; word-break: keep-all; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 상담문의 */
.contact-cards .info-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact-big { color: var(--navy); font-size: 30px; font-weight: 800; }
.contact-mail { color: var(--navy); font-size: 18px; font-weight: 700; word-break: break-all; }

/* 하단 상담 띠 */
.page-cta { padding: 50px 20px; background: var(--navy); color: #fff; }
.page-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; }
.page-cta-title { margin: 0; font-size: 24px; font-weight: 800; word-break: keep-all; }
.page-cta-sub { margin: 6px 0 0; color: var(--footer-text); font-size: 15px; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 반응형 */
@media (max-width: 1024px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--compact { grid-template-columns: 1fr; }
  .limit-grid { grid-template-columns: repeat(3, 1fr); }
  .greeting { grid-template-columns: 1fr; gap: 36px; }
  .greeting-photo { max-width: 560px; }
}

@media (max-width: 767px) {
  .page-head-inner { padding: 40px 20px 50px; }
  .page-title { font-size: 30px; }
  .page-lead { font-size: 15px; }
  .sub-section { padding: 56px 16px; }
  .sub-heading { margin-bottom: 26px; font-size: 24px; }
  .sub-lead { font-size: 15px; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .info-card { padding: 24px 20px; }
  .info-card h3 { font-size: 18px; }
  .info-card p, .check-list li { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .limit-grid { grid-template-columns: repeat(2, 1fr); }
  .info-table th, .info-table td, .location-info dt, .location-info dd { padding: 12px; font-size: 14px; }
  .info-table th { width: 90px; }
  .location-info dl > div { grid-template-columns: 90px 1fr; }
  .map-box { height: 320px; }
  .highlight-box { margin-bottom: 40px; padding: 20px; }
  .page-cta-title { font-size: 19px; }
  .page-cta-actions, .page-cta-actions .btn { width: 100%; }
  .greeting-text p { font-size: 15px; }
}

/* =========================================================
   상담 신청 폼
========================================================= */

.inquiry-form {
  max-width: 820px; margin: 0 auto; padding: 36px;
  background: #fff; border: 1px solid #d6e6f7; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13, 71, 161, .06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { color: var(--navy); font-size: 15px; font-weight: 700; }
.req { margin-left: 4px; color: #d14343; font-size: 12px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #c5d6ea; border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: 16px;
}
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.form-field [aria-invalid="true"] { border-color: #d14343; }
.field-error { margin: 0; color: #d14343; font-size: 14px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy-box { margin: 6px 0 24px; padding: 20px 22px; border-radius: 12px; background: #f3f8fe; }
.privacy-title { margin: 0 0 8px; color: var(--navy); font-size: 15px; font-weight: 800; }
.privacy-box ul { margin: 0 0 14px; padding-left: 18px; color: #4a5b70; font-size: 14px; line-height: 1.7; }
.agree { display: flex; align-items: center; gap: 10px; color: #2b3a4d; font-size: 15px; font-weight: 600; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--blue); }

.form-actions { text-align: center; }
.btn-wide { min-width: 240px; min-height: 54px; font-size: 17px; border: 0; cursor: pointer; }

.form-alert { max-width: 820px; margin: 0 auto 24px; padding: 18px 22px; border-radius: 12px; font-size: 15px; line-height: 1.6; }
.form-alert p { margin: 4px 0 0; }
.form-alert--ok { background: #e8f6ee; color: #1d6b3d; border: 1px solid #b9e2c8; }
.form-alert--error { background: #fdecec; color: #a32828; border: 1px solid #f3c2c2; }
.form-error-summary { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: #fdecec; color: #a32828; font-size: 15px; font-weight: 600; }

@media (max-width: 767px) {
  .inquiry-form { padding: 22px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .btn-wide { width: 100%; }
}
