/* ==========================================================================
   ESG > 사이버 신문고 (Figma 1:1006) — page body only
   Hero/stage: sp-common.css + sp-hero.js. This file: process / protection / report form / modals
   ========================================================================== */
.hotline-page {
  --hotl-navy: #002165;
  --hotl-line: #ddd;
  --hotl-border: #ebedf1;
  --hotl-subtle: #f8f8f8;
  --hotl-font-body: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Scene B (1:1064): SemiBold headline over a 60% dim */
.hotline-page .sp-stage-dim { opacity: 0.6; }
.hotline-page .sp-stage-headline { font-weight: 600; max-width: 1242px; }
/* Live mode: sp-hero.js caps .sp-stage-dim at 0.4; .hotl-stage-dim2 (driven by the page script)
   tops the combined dim up to 0.6. Static mode keeps it at 0 and uses the 0.6 above. */
.hotl-stage-dim2 {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
/* Scene B (1:1064) centers the photo (object-fit: cover); sp-common anchors it to the top */
.hotline-page .sp-stage-img { object-position: center; }

/* ---------- Section shell ---------- */
.hotl-section {
  padding: clamp(72px, 6.25vw, 120px) 0;
  background: #fff;
}
/* style.css boxes every `section > *` into a 1440px shell with 40px gutters; size our own containers */
.sp-page.hotline-page section.hotl-section:not(.hero):not(.hero-slider-container):not(.c-hero) > .sp-container {
  width: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.sp-page.hotline-page section.hotl-section:not(.hero):not(.hero-slider-container):not(.c-hero) > .hotl-report-inner {
  width: min(1504px, 100% - 2 * clamp(16px, 10.833vw, 208px));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.hotl-section--subtle { background: var(--hotl-subtle); }
.hotl-section--report { padding-bottom: clamp(96px, 8.333vw, 160px); }

.hotl-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(36px, 3.125vw, 60px);
}
.hotl-head--center { align-items: center; text-align: center; }
.hotl-title {
  margin-top: 12px !important;
  font-weight: 600;
  font-size: clamp(30px, 2.917vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
  word-break: keep-all;
}
.hotl-desc {
  margin-top: 16px !important;
  font-weight: 500;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}

/* ---------- 03 Process (1:1075) ---------- */
.hotl-process {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hotl-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}
.hotl-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 1.667vw, 32px);
  border: 1px solid var(--hotl-line);
  border-radius: 20px;
  background: #fff;
}
.hotl-step-num {
  font-family: var(--sp-font-en);
  font-weight: 600;
  font-size: clamp(28px, 1.875vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--hotl-navy);
}
.hotl-step-name {
  font-family: var(--hotl-font-body);
  font-weight: 700;
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
  word-break: keep-all;
}
.hotl-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px clamp(20px, 2.083vw, 40px);
  border-radius: 20px;
  background: var(--hotl-subtle);
  font-family: var(--hotl-font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #666;
  word-break: keep-all;
}

/* style.css sets every <p> to --text-secondary; let these take the box color */
.hotline-page .hotl-note p,
.hotline-page .hotl-protect-notice p { color: inherit; }

/* ---------- 04 Protection (1:1095) ---------- */
.hotl-protect {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 2.083vw, 40px) clamp(20px, 2.5vw, 48px);
  border: 1px solid var(--hotl-border);
  border-radius: 20px;
  background: #fff;
  font-family: var(--hotl-font-body);
}
.hotl-protect-title {
  font-family: var(--hotl-font-body) !important;
  font-weight: 700;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
}
.hotl-protect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #333;
  word-break: keep-all;
}
.hotl-protect-rule {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--hotl-border);
}
.hotl-protect-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #888;
  word-break: keep-all;
}

/* ---------- 05 Report form (1:1114) ---------- */
.hotl-report-inner {
  width: min(1504px, 100% - 2 * clamp(16px, 10.833vw, 208px));
  margin-inline: auto;
}
.hotl-form {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 3.125vw, 60px);
}
.hotl-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hotl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.hotl-row.is-hidden { display: none; }
.hotl-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.hotl-field label {
  font-weight: 500;
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #111;
}
.hotl-opt { font-weight: 400; color: #999; }
.hotl-field input,
.hotl-field select,
.hotl-field textarea {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--hotl-line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--hotl-font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hotl-field select {
  padding-right: 56px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url('../../img/esg/hotline/ico-chevron-down.svg') right 16px center / 24px 24px no-repeat;
  cursor: pointer;
}
.hotl-field select:invalid { color: #999; }
.hotl-field select option { color: #111; }
.hotl-field textarea {
  height: 184px;
  padding: 16px;
  resize: vertical;
}
.hotl-field input::placeholder,
.hotl-field textarea::placeholder { color: #999; opacity: 1; }
.hotl-field input:focus,
.hotl-field select:focus,
.hotl-field textarea:focus {
  outline: none;
  border-color: var(--hotl-navy);
  box-shadow: 0 0 0 3px rgba(0, 33, 101, 0.1);
}

.hotl-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--hotl-font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #666;
  cursor: pointer;
  word-break: keep-all;
}
.hotl-check input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 2.5px 0 0;
  border: 1px solid var(--hotl-line);
  border-radius: 4px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.hotl-check input:checked {
  border-color: var(--hotl-navy);
  background: var(--hotl-navy) url('../../img/esg/hotline/ico-check-on.svg') center / 22px 22px no-repeat;
}
.hotl-check input:focus-visible { outline: 2px solid var(--hotl-navy); outline-offset: 2px; }

.hotl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hotl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hotl-line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--hotl-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--hotl-navy);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.hotl-btn--wide { width: 320px; }
.hotl-btn--primary {
  width: 180px;
  border-color: var(--hotl-navy);
  background: var(--hotl-navy);
  color: #fff;
}
.hotl-btn--primary:hover { background: #00184a; color: #fff; }
.hotl-btn--primary:disabled { opacity: 0.6; cursor: wait; }
.hotl-btn--line:hover { border-color: var(--hotl-navy); color: var(--hotl-navy); background: rgba(0, 33, 101, 0.04); }

.hotl-msg:empty { display: none; }
.hotl-msg { margin-bottom: 20px; font-size: 16px; line-height: 1.6; color: #c62828; }

/* ---------- Modals ---------- */
body.esg-modal-open { overflow: hidden; }
.hotl-modal[hidden] { display: none; }
.hotl-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--sp-font, 'Pretendard', sans-serif);
}
.hotl-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.hotl-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);
}
.hotl-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(0, 33, 101, 0.08);
  color: #002165;
  font-size: 22px;
}
.hotl-modal-icon--warn { background: rgba(198, 40, 40, 0.08); color: #c62828; }
.hotl-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111;
}
.hotl-modal-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #666;
  word-break: keep-all;
}
.hotl-modal-close {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #002165;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hotl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hotl-btn,
  .hotl-btn--wide,
  .hotl-btn--primary { width: auto; flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 768px) {
  .hotl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hotl-row { grid-template-columns: 1fr; gap: 20px; }
  .hotl-head--center .hotl-desc br { display: none; }
}
@media (max-width: 600px) {
  .hotl-step { gap: 8px; border-radius: 16px; padding: 20px; }
  .hotl-note, .hotl-protect { border-radius: 16px; }
  .hotl-note { padding: 20px; font-size: 15px; }
  .hotl-protect-notice { font-size: 15px; }
  .hotl-btn,
  .hotl-btn--wide,
  .hotl-btn--primary { flex-basis: 100%; white-space: normal; text-align: center; }
}
