/* ==========================================================================
   Contact > 온라인 문의 (Figma 1:3161) — page body only
   Hero head comes from sp-common.css (.sp-hero); the design has no image stage,
   so the pill tabs sit on white below the head (light variant, .inqu-subnav).
   Form markup keeps the original ids/names (iq-*) used by the submit script.
   ========================================================================== */

.inquiry-page {
  --inqu-navy: #002165;
  --inqu-border: #ebedf1;
  --inqu-strong: #111;
  --inqu-secondary: #666;
  --inqu-tertiary: #888;
  --inqu-green: #2bb34b;
}

/* ---------- Hero (1:3202) ---------- */
.inquiry-page .sp-hero-desc {
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.5;
  color: var(--inqu-secondary);
}
.inqu-subnav {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5.573vw, 107px) 16px clamp(24px, 2.188vw, 42px);
}
.inquiry-page .inqu-subnav .sp-pill-tabs {
  position: static;
  transform: none;
  background: rgba(255, 255, 255, 0.94);
}
.inquiry-page .inqu-subnav .sp-pill-tab { color: #444; }
.inquiry-page .inqu-subnav .sp-pill-tab:hover { background: #f2f4f8; color: #111; }
.inquiry-page .inqu-subnav .sp-pill-tab.is-active,
.inquiry-page .inqu-subnav .sp-pill-tab.is-active:hover { background: var(--inqu-navy); color: #fff; }

/* ---------- Main content (1:3220) ---------- */
.inqu-main {
  padding: clamp(56px, 6.25vw, 120px) 0;
}
.inqu-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Neutralise style.css globals: `section {padding:100px 0}` and
   `section:not(.hero)... > * {max-width:1440px; padding-inline:40px}` */
.inquiry-page .inqu-form > section.inqu-types-block { padding: 0; }
.inquiry-page .inqu-form > section.inqu-types-block > *,
.inquiry-page .inqu-form > section.inqu-card > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.inqu-section-title {
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--inqu-strong);
}
.inqu-req-navy { color: var(--inqu-navy); }

/* 01 / 문의 유형 (1:3222) */
.inqu-types-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inqu-types {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.inquiry-page .inqu-type {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: clamp(180px, 11.458vw, 220px);
  margin: 0;
  padding: clamp(20px, 1.667vw, 32px);
  border: 1px solid var(--inqu-border);
  border-radius: 14px;
  background: #fff;
  color: var(--inqu-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.inquiry-page .inqu-type:hover { border-color: #c9d0dd; }
.inquiry-page .inqu-type:focus-visible {
  outline: 2px solid var(--inqu-navy);
  outline-offset: 2px;
}
.inquiry-page .inqu-type.is-selected {
  border-color: var(--inqu-navy);
  background: #f4f6fa;
  box-shadow: inset 0 0 0 1px var(--inqu-navy);
}
.inqu-type-code {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--inqu-secondary);
}
.inqu-type-title {
  font-size: clamp(18px, 1.146vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--inqu-strong);
  word-break: keep-all;
}
.inquiry-page .inqu-type.is-selected .inqu-type-title { color: var(--inqu-navy); }
.inqu-type-desc {
  font-size: clamp(14px, 0.833vw, 16px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--inqu-secondary);
  word-break: keep-all;
}

/* 02 / 문의 정보 (1:3250) */
.inqu-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(20px, 2.083vw, 40px);
  border: 1px solid var(--inqu-border);
  border-radius: 20px;
  background: #fff;
}
.inqu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.inqu-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.inqu-field--full { grid-column: 1 / -1; }
.inquiry-page .inqu-field label {
  margin: 0;
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--inqu-strong);
}
.inquiry-page .inqu-field input,
.inquiry-page .inqu-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 16px;
  height: 56px;
  border: 1px solid var(--inqu-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--inqu-strong);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.inquiry-page .inqu-field textarea {
  height: 184px;
  padding: 16px;
  resize: vertical;
}
.inquiry-page .inqu-field input::placeholder,
.inquiry-page .inqu-field textarea::placeholder { color: var(--inqu-tertiary); opacity: 1; }
.inquiry-page .inqu-field input:focus,
.inquiry-page .inqu-field textarea:focus {
  outline: none;
  border-color: var(--inqu-navy);
}

/* 개인정보 동의 (1:3279) */
.inqu-privacy {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  cursor: pointer;
}
.inqu-privacy input {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.inqu-check {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 1.5px;
  border: 1px solid var(--inqu-border);
  border-radius: 4px;
  background: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.inqu-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.inqu-privacy input:checked + .inqu-check {
  background: var(--inqu-navy);
  border-color: var(--inqu-navy);
}
.inqu-privacy input:checked + .inqu-check::after { opacity: 1; }
.inqu-privacy input:focus-visible + .inqu-check {
  outline: 2px solid var(--inqu-navy);
  outline-offset: 2px;
}
.inqu-privacy-text {
  font-size: clamp(14px, 0.833vw, 16px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--inqu-secondary);
  word-break: keep-all;
}
.inqu-req-green { color: var(--inqu-green); }

/* 문의 접수 (1:3282) */
.inqu-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.inquiry-page .inqu-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--inqu-navy);
  font: inherit;
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.inquiry-page .inqu-submit:hover { background: #0a2f80; }
.inquiry-page .inqu-submit:focus-visible { outline: 2px solid var(--inqu-navy); outline-offset: 3px; }
.inquiry-page .inqu-submit:disabled { opacity: 0.6; cursor: default; }
.inqu-hint {
  font-size: clamp(14px, 0.833vw, 16px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--inqu-tertiary);
  word-break: keep-all;
}

/* ---------- Modals ---------- */
body.inqu-modal-open { overflow: hidden; }
.inqu-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.inqu-modal[hidden] { display: none; }
.inquiry-page .inqu-modal-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.inqu-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 40px 32px 32px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.inqu-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--inqu-navy);
  font-size: 22px;
  color: #fff;
}
.inqu-modal-icon--warn { background: #f3f5f9; color: var(--inqu-navy); }
.inqu-modal-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--inqu-strong);
}
.inqu-modal-desc {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--inqu-secondary);
  word-break: keep-all;
}
.inquiry-page .inqu-modal-close {
  width: 100%;
  height: 50px;
  margin: 12px 0 0;
  border: 0;
  border-radius: 8px;
  background: var(--inqu-navy);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .inqu-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inquiry-page .inqu-type { min-height: 180px; }
}
@media (max-width: 1024px) {
  .inqu-grid { gap: 24px 24px; }
  .inqu-card { gap: 28px; }
}
@media (max-width: 768px) {
  .inqu-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .inquiry-page .inqu-type { min-height: 0; }
  .inqu-grid { grid-template-columns: 1fr; }
  .inqu-form { gap: 32px; }
}
@media (max-width: 600px) {
  .inqu-types { gap: 10px; }
  .inquiry-page .inqu-type { padding: 18px 16px; gap: 6px; }
  .inqu-type-code { font-size: 12px; }
  .inqu-card { border-radius: 16px; gap: 24px; }
  .inquiry-page .inqu-field input { height: 52px; }
  .inquiry-page .inqu-field textarea { height: 160px; }
  .inqu-privacy { gap: 12px; }
  .inqu-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .inquiry-page .inqu-submit { width: 100%; }
  .inqu-hint { text-align: center; }
  /* keep the active 4th tab fully visible at 390 (shared 14px padding overflows by ~14px) */
  .inquiry-page .inqu-subnav .sp-pill-tab { padding: 10px 11px; }
}
