/* ==========================================================================
   무료 학점진단 랜딩페이지 — 순수 HTML/CSS/JS 버전
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fbff;
  color: #0f2742;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 5rem 0;
}

.section-white { background: #fff; }
.section-bright { background: #eef6fc; }

.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 3rem; }

.br-sm { display: none; }
@media (min-width: 640px) {
  .br-sm { display: block; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(220, 234, 247, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #005088, #11caa0);
  box-shadow: 0 8px 20px rgba(0, 80, 136, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* 건강진단 크로스를 연상시키는 십자(+) 마크. 폰트 글리프 대신 가짜요소 두 개로 그려서
   기기·폰트에 상관없이 항상 또렷하고 대칭이 맞게 나온다. */
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 999px;
}

.brand-mark::before {
  width: 0.95rem;
  height: 0.32rem;
  transform: translate(-50%, -50%);
}

.brand-mark::after {
  width: 0.32rem;
  height: 0.95rem;
  transform: translate(-50%, -50%);
}

.nav-brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-4deg);
  box-shadow: 0 12px 26px rgba(0, 80, 136, 0.34);
}

.brand-text {
  line-height: 1.2;
}

.brand-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #005088;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b6680;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a:hover {
  color: #005088;
}

.nav-cta {
  border-radius: 999px;
  background: #005088;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 80, 136, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #003f6b;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 0 5rem;
}

@media (min-width: 640px) {
  .hero { padding-top: 5rem; }
}

@media (min-width: 1024px) {
  .hero { padding-bottom: 7rem; }
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(24px);
  opacity: 0.72;
}

.hero-glow-a {
  right: -10rem;
  top: 3rem;
  width: 28rem;
  height: 28rem;
  background: rgba(17, 202, 160, 0.16);
}

.hero-glow-b {
  left: -12rem;
  bottom: 2rem;
  width: 24rem;
  height: 24rem;
  background: rgba(31, 78, 121, 0.1);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.02fr 0.98fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid #d6e6f4;
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f4e79;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #f28c28;
  box-shadow: 0 0 0 6px rgba(242, 140, 40, 0.14);
}

.hero-title {
  margin: 1.75rem 0 0;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #08263f;
  line-height: 1.2;
}

.hero-title span {
  display: block;
  color: #1f4e79;
}

@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-desc {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 2.25rem;
  color: #4d6680;
  letter-spacing:-1px;

}

@media (min-width: 640px) { .hero-desc { font-size: 1.25rem; } }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.btn-primary,
.btn-secondary {
  border-radius: 1rem;
  padding: 1rem 1.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: #005088;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 80, 136, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #003f6b;
}

.btn-secondary {
  border: 1px solid #cbddeb;
  background: #fff;
  color: #1f4e79;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: #1f4e79;
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  max-width: 42rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  border-radius: 1rem;
  border: 1px solid #e0edf7;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #005088;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: #6a8197;
}

.hero-visual {
  position: relative;
}

.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.25rem;
  border: 1px solid rgba(220, 234, 247, 0.95);
  background: linear-gradient(145deg, #ffffff, #eaf4fb);
  padding: 1rem;
  min-height: 34rem;
  box-shadow: 0 32px 90px rgba(31, 78, 121, 0.16);
}

.hero-visual-img {
  width: 100%;
  min-height: 28rem;
  height: 100%;
  border-radius: 1.65rem;
  object-fit: cover;
  opacity: 0.92;
}

.report-card-floating {
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  width: min(24rem, calc(100% - 3.6rem));
  border: 1px solid rgba(214, 230, 244, 0.94);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(8, 38, 63, 0.16);
  backdrop-filter: blur(18px);
}

.rcf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rcf-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #11a88a;
}

.rcf-safe {
  border-radius: 999px;
  background: #e9f8f5;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0a8a73;
}

.rcf-score-row {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.rcf-score-caption {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #70869a;
}

.rcf-score-value {
  margin: 0.25rem 0 0;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #005088;
}

.score-ring {
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#11caa0 0 92%, #dceaf7 92% 100%);
  font-size: 0.9rem;
  font-weight: 950;
  color: #005088;
}

.score-ring span {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  border-radius: 999px;
  background: #fff;
}

.rcf-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.rcf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  background: #f5f9fc;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.rcf-item span:first-child {
  font-weight: 700;
  color: #5f7487;
}

.rcf-item span:last-child {
  font-weight: 900;
  color: #1f4e79;
}

.rcf-caption {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.5;
  color: #8098ac;
}

@media (max-width: 768px) {
  .hero-visual-card {
    min-height: 29rem;
    border-radius: 1.7rem;
    padding: 0.7rem;
  }

  .hero-visual-img {
    min-height: 22rem;
    border-radius: 1.2rem;
  }

  .report-card-floating {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    border-radius: 1.35rem;
    padding: 1rem;
  }
}

/* ---------- Section heading ---------- */
.section-heading {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #1f4e79;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.section-num-orange { background: #f28c28; }
.section-num-teal { background: #11caa0; }

.section-heading h2 {
  margin-top: 0.7rem;
  color: #08263f;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p {
  margin-top: 1rem;
  color: #587189;
  font-size: 1.08rem;
  line-height: 1.75;
}

.risk-heading {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #08263f;
  line-height: 1.2;
}

@media (min-width: 640px) { .risk-heading { font-size: 2.25rem; } }

.risk-sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #587189 !important;
}

.panel-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #08263f;
  line-height: 1.25;
}

@media (min-width: 640px) { .panel-title { font-size: 2.25rem; } }

.panel-desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #587189;
}

.panel-title-dark { color: #fff; }
.panel-desc-dark { color: #c4d3df; }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 01 Situation cards ---------- */
.situation-card {
  display: block;
  border: 1px solid #dceaf7;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(31, 78, 121, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  border-radius: 1.6rem;
  padding: 1.55rem;
}

.situation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 78, 121, 0.35);
  box-shadow: 0 28px 70px rgba(31, 78, 121, 0.13);
}

.situation-emoji {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.situation-keyword {
  margin: 0.85rem 0 0;
  color: #08263f;
  font-size: 1.32rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.situation-sub {
  margin: 0.55rem 0 0;
  color: #7a93a8;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

/* ---------- 02 Risk cards ---------- */
.risk-card-bright {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid #dceaf7;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(31, 78, 121, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.risk-card-bright:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(31, 78, 121, 0.13);
}

.risk-card-top {
  padding: 1.25rem 1.35rem 1rem;
}

.risk-tag {
  display: inline-flex;
  border-radius: 999px;
  background: #fff3e4;
  padding: 0.3rem 0.7rem;
  color: #a85000;
  font-size: 0.74rem;
  font-weight: 950;
}

.risk-card-top h3 {
  margin: 0.75rem 0 0;
  color: #08263f;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.35;
}

.risk-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid #fde8cc;
  background: #fff7ef;
  padding: 0.85rem 1.35rem;
}

.risk-impact-icon {
  font-size: 1rem;
  line-height: 1;
}

.risk-card-bottom p {
  margin: 0;
  color: #8a4700;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.risk-callout {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid #fde8cc;
  background: #fff7ef;
  padding: 1.25rem;
  text-align: center;
}

.risk-callout p {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #a85000;
}

.btn-orange {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: #f28c28;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(242,140,40,0.25);
  transition: background 180ms ease;
}

.btn-orange:hover { background: #d97a1a; }

/* ---------- 03 Case cards ---------- */
.case-card {
  border: 1px solid #dceaf7;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(31, 78, 121, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  border-radius: 1.8rem;
  padding: 1.65rem;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 78, 121, 0.35);
  box-shadow: 0 28px 70px rgba(31, 78, 121, 0.13);
}

.case-avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  background: #e9f8f5;
  color: #0a8a73;
  font-weight: 950;
}

.case-card h3 {
  margin: 1rem 0 0;
  color: #08263f;
  font-size: 1.25rem;
  font-weight: 950;
}

.case-concern {
  margin: 0.8rem 0 0;
  color: #4f6b84;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.7;
}

.case-result {
  margin-top: 1.2rem;
  border-radius: 1.25rem;
  background: #f4f9fd;
  padding: 1rem;
}

.case-result span {
  color: #f28c28;
  font-size: 0.78rem;
  font-weight: 950;
}

.case-result p {
  margin: 0.35rem 0 0;
  color: #31526d;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.65;
}

/* ---------- 04 Diagnosis positioning ---------- */
.diagnosis-panel {
  display: grid;
  gap: 3rem;
  border-radius: 2.5rem;
  border: 1px solid #dbeaf6;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 40px 90px rgba(31, 78, 121, 0.08);
}

@media (min-width: 640px) { .diagnosis-panel { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .diagnosis-panel {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 3.5rem;
  }
}

.diagnosis-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.diagnosis-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1rem;
  background: #f4f9fd;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #31526d;
}

.diagnosis-list-item .icon {
  font-size: 1.125rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.diagnosis-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.diagnosis-step-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1rem;
}

.diagnosis-step-card .step-tag {
  flex: 0 0 auto;
  border-radius: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.diagnosis-step-card .step-title {
  font-size: 0.875rem;
  font-weight: 800;
}

.diagnosis-step-card .step-desc {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a738c;
}

/* ---------- 05 Process steps ---------- */
.step-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  padding: 1.65rem;
  border: 1px solid #dceaf7;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(31, 78, 121, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 78, 121, 0.35);
  box-shadow: 0 28px 70px rgba(31, 78, 121, 0.13);
}

.step-card::before {
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(17, 202, 160, 0.12);
  content: "";
}

.step-card .step-number {
  position: relative;
  color: #1f4e79;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.step-card h3 {
  position: relative;
  margin-top: 2.4rem;
  color: #08263f;
  font-size: 1.32rem;
  font-weight: 950;
}

.step-card p {
  position: relative;
  margin-top: 0.75rem;
  color: #607891;
  font-weight: 650;
  line-height: 1.7;
}

/* ---------- 06 Report ---------- */
.report-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .report-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}

.report-panel {
  border: 1px solid #dceaf7;
  border-radius: 2rem;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 80px rgba(31, 78, 121, 0.12);
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 1.55rem;
  background: #08263f;
  padding: 1.35rem;
  color: white;
}

.report-header p {
  margin: 0;
  color: #8fe3d2;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.report-header h3 {
  margin: 0.45rem 0 0;
  max-width: 32rem;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.report-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.report-score-label {
  color: #8fe3d2;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.report-score {
  display: grid;
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1.45rem;
  background: #fff;
  color: #005088;
  font-size: 2rem;
  font-weight: 950;
}

.report-score-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  font-weight: 700;
}

.report-metrics {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .report-metrics { grid-template-columns: repeat(3, 1fr); }
}

.report-metric {
  border: 1px solid #dceaf7;
  border-radius: 1.4rem;
  background: #fff;
  padding: 1.15rem;
}

.report-metric .metric-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  font-size: 0.74rem;
  font-weight: 950;
}

.report-metric .metric-status.safe { background: #e9f8f5; color: #0a8a73; }
.report-metric .metric-status.warn { background: #fff3e4; color: #b95d00; }
.report-metric .metric-status.check { background: #eef6fc; color: #1f4e79; }

.report-metric h4 {
  margin: 1rem 0 0;
  color: #08263f;
  font-weight: 950;
}

.report-metric p {
  margin: 0.35rem 0 0;
  color: #607891;
  font-size: 0.9rem;
  font-weight: 650;
}

.report-next {
  margin-top: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #dceaf7;
  background: #f8fbff;
  padding: 1.25rem;
}

.report-next-title {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 950;
  color: #1f4e79;
}

.report-next ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
  color: #4f6b84;
}

/* ---------- 07 AI planner ---------- */
.ai-panel {
  border-radius: 2.5rem;
  background: #0b314f;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 40px 90px rgba(8, 38, 63, 0.18);
}

@media (min-width: 640px) { .ai-panel { padding: 3rem; } }
@media (min-width: 1024px) { .ai-panel { padding: 4rem; } }

.ai-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.btn-teal {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background: #11caa0;
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17,202,160,0.25);
  transition: background 180ms ease;
}

.btn-teal:hover { background: #0ea88a; }

.ai-feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .ai-feature-grid { grid-template-columns: repeat(2, 1fr); } }

.ai-feature-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.ai-feature-card .icon {
  font-size: 1.5rem;
}

.ai-feature-card p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 950;
}

/* ---------- 08 Packages ---------- */
.package-card {
  display: flex;
  min-height: 29rem;
  flex-direction: column;
  border-radius: 2rem;
  padding: 1.7rem;
  border: 1px solid #dceaf7;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(31, 78, 121, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 78, 121, 0.35);
  box-shadow: 0 28px 70px rgba(31, 78, 121, 0.13);
}

.package-card.featured {
  border-color: rgba(17, 202, 160, 0.55);
  background: linear-gradient(180deg, #ffffff, #eefbf8);
}

.package-badge {
  width: fit-content;
  border-radius: 999px;
  background: #eef6fc;
  padding: 0.45rem 0.75rem;
  color: #1f4e79;
  font-size: 0.78rem;
  font-weight: 950;
}

.package-card.featured .package-badge {
  background: #11caa0;
  color: #fff;
}

.package-card h3 {
  margin: 1.1rem 0 0;
  color: #08263f;
  font-size: 1.45rem;
  font-weight: 950;
}

.package-card > p {
  margin: 0.7rem 0 0;
  color: #587189;
  font-weight: 700;
  line-height: 1.7;
}

.package-card ul {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.package-card li {
  display: flex;
  gap: 0.65rem;
  color: #365875;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
}

.check-mark {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #11caa0;
  margin-top: 0.15rem;
}

.check-mark::after {
  width: 0.38rem;
  height: 0.62rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.package-card a {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  border-radius: 1.2rem;
  background: #005088;
  padding: 0.95rem 1.2rem;
  color: white;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.package-card a:hover {
  transform: translateY(-2px);
  background: #003f6b;
}

/* ---------- 09 FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 0.75fr 1.25fr; }
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #d6e6f4;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 14px 34px rgba(31, 78, 121, 0.06);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: #08263f;
  font-weight: 950;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  float: right;
  color: #1f4e79;
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin: 0.9rem 0 0;
  color: #587189;
  font-weight: 650;
  line-height: 1.75;
}

/* ---------- 10 Final CTA ---------- */
.cta-panel {
  display: grid;
  gap: 2rem;
  border-radius: 2.75rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 40px 90px rgba(31, 78, 121, 0.1);
}

@media (min-width: 640px) { .cta-panel { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .cta-panel {
    grid-template-columns: 1fr 0.85fr;
    padding: 3.5rem;
  }
}

.cta-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #08263f;
  line-height: 1.2;
}

@media (min-width: 640px) { .cta-title { font-size: 3rem; } }

.assurance-pills {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4f6b84;
}

.assurance-pill {
  border-radius: 999px;
  border: 1px solid #dceaf7;
  background: #f4f9fd;
  padding: 0.55rem 0.85rem;
}

.cta-alt-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a93a8;
}

.cta-alt-link a,
.cta-alt-link-btn {
  font-weight: 900;
  color: #1f4e79;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-alt-link-btn {
  font-family: inherit;
  font-size: inherit;
}

.lead-form {
  display: grid;
  gap: 1rem;
  border: 1px solid #dceaf7;
  border-radius: 2rem;
  background: #f8fbff;
  padding: 1.35rem;
}

.lead-form label {
  display: grid;
  gap: 0.5rem;
  color: #31526d;
  font-size: 0.9rem;
  font-weight: 950;
}

.lead-form input,
.lead-form select {
  min-height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid #cfe2f0;
  background: #fff;
  padding: 0 1rem;
  color: #08263f;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #1f4e79;
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.lead-form button {
  min-height: 3.4rem;
  border-radius: 1.1rem;
  background: #005088;
  color: #fff;
  font-weight: 950;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 80, 136, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.lead-form button:hover {
  transform: translateY(-2px);
  background: #003f6b;
}

.lead-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lead-form > p {
  margin: 0;
  color: #758ba0;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.55;
}

.lead-form > p.success {
  color: #0a8a73;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #dceaf7;
  background: #fff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6d8296;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  font-weight: 700;
  color: #1f4e79;
}

.footer-inner a {
  color: #1f4e79;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   개인정보처리방침 페이지
   ========================================================================== */

.policy-main {
  min-height: calc(100vh - 5rem);
  padding: 2.5rem 0 5rem;
  background: #f8fbff;
}

.policy-container {
  max-width: 42rem;
}

.policy-updated {
  margin: 0.5rem 0 2rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #8098ac;
}

.policy-lead {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #31526d;
}

.policy-section {
  margin-bottom: 1.75rem;
}

.policy-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #08263f;
}

.policy-section p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #31526d;
}

.policy-section ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #31526d;
}

.policy-placeholder-note {
  color: #b95d00 !important;
  font-weight: 700;
}

/* ---------- 운영 매뉴얼 표/코드 참고 ---------- */
.manual-table-wrap {
  margin: 0.75rem 0;
  overflow-x: auto;
  border: 1px solid #dceaf7;
  border-radius: 0.9rem;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.manual-table th,
.manual-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #eef6fc;
  color: #31526d;
}

.manual-table th {
  background: #f4f9fd;
  font-weight: 900;
  color: #08263f;
}

.manual-table tr:last-child td {
  border-bottom: none;
}

.manual-code-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #8098ac;
}

.manual-code-note code {
  background: #eef6fc;
  border-radius: 0.4rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.78rem;
  color: #1f4e79;
}

/* ==========================================================================
   진단체크 / 결과 / 관리자 페이지 공용 — 신규 컴포넌트
   ========================================================================== */

/* ---------- shared header extras ---------- */
.nav-static-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a93a8;
}

.nav-cta-ghost {
  background: #eef6fc;
  border: 1px solid #b9d4e8;
  color: #1f4e79;
  font-weight: 800;
  box-shadow: none;
}

.nav-cta-ghost:hover {
  background: #dceaf7;
  border-color: #1f4e79;
  transform: translateY(-2px);
}

/* ---------- chip button (bulk actions) ---------- */
.chip-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cbddeb;
  background: #fff;
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1f4e79;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip-btn:hover {
  transform: translateY(-2px);
  border-color: #1f4e79;
  background: #f4f9fd;
}

.chip-btn-danger {
  color: #b3261e;
  border-color: #f3cfcb;
}

.chip-btn-danger:hover {
  background: #fdf1f0;
  border-color: #b3261e;
}

/* ---------- category badges (진단체크 / 결과 / 관리자 공용) ---------- */
.cat-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.cat-badge.cat-전필 { background: #fdeceb; color: #b3261e; }
.cat-badge.cat-전선 { background: #eef6fc; color: #1f4e79; }
.cat-badge.cat-교양 { background: #e9f8f5; color: #0a8a73; }
.cat-badge.cat-일반 { background: #f1f0fb; color: #4a4a9a; }

.transcript-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #e9f8f5;
  color: #0a8a73;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.manual-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f4f8;
  color: #6a8197;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- 성적증명서 업로드 패널 (진단체크 step 4) ---------- */
.transcript-upload-panel {
  margin-top: 1.75rem;
  border: 1px dashed #b9d3e6;
  border-radius: 1.4rem;
  background: #f4f9fd;
  padding: 1.25rem 1.35rem;
}

.transcript-upload-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  color: #08263f;
}

.opt-badge {
  display: inline-flex;
  margin-left: 0.5rem;
  border-radius: 999px;
  background: #dceaf7;
  color: #1f4e79;
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 900;
  vertical-align: middle;
}

.transcript-upload-head p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #587189;
}

.transcript-upload-body {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.transcript-upload-body input[type="file"] {
  flex: 1 1 14rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: #31526d;
  border: 1px solid #cfe2f0;
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.transcript-upload-body input[type="file"]::file-selector-button,
.transcript-upload-body input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.75rem;
  border: none;
  border-radius: 999px;
  background: #1f4e79;
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease;
}

.transcript-upload-body input[type="file"]:hover::file-selector-button,
.transcript-upload-body input[type="file"]:hover::-webkit-file-upload-button {
  background: #003f6b;
}

.transcript-upload-body .btn-secondary {
  flex: 0 0 auto;
  padding: 0.7rem 1.25rem;
  min-height: auto;
}

.transcript-upload-body .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.transcript-status {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f4e79;
}

.transcript-result {
  margin-top: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #dceaf7;
  padding: 1rem 1.1rem;
}

.transcript-result-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0a8a73;
}

.transcript-empty {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a85000;
}

.transcript-chip-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.transcript-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #e9f8f5;
  color: #0a8a73;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.transcript-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8098ac;
}

/* ==========================================================================
   진단체크 위저드
   ========================================================================== */

.wizard-main {
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 0 6rem;
  background: #f8fbff;
}

.wizard-container {
  max-width: 46rem;
}

.wizard-progress {
  margin-bottom: 2.5rem;
}

.wizard-progress-track {
  position: relative;
  height: 0.4rem;
  border-radius: 999px;
  background: #dceaf7;
  overflow: hidden;
}

.wizard-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4e79, #11caa0);
  transition: width 260ms ease;
}

.wizard-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #8fa5ba;
}

.wizard-progress-labels span[data-step] {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 0;
}

.wizard-progress-labels span.active {
  color: #1f4e79;
}

.wizard-progress-step-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-progress-step-value {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  border-radius: 999px;
  background: #e6f9f4;
  color: #0a8a73;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-progress-step-value:empty {
  display: none;
}

.wizard-step {
  animation: wizard-fade-in 220ms ease;
}

@keyframes wizard-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #b9d4e8;
  background: #eef6fc;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f4e79;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.wizard-back:hover {
  background: #dceaf7;
  border-color: #1f4e79;
  transform: translateY(-2px);
}

.wizard-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #f28c28;
}

.wizard-title {
  margin: 0.5rem 0 0;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #08263f;
  line-height: 1.3;
}

@media (min-width: 640px) { .wizard-title { font-size: 2.1rem; } }

.wizard-sub {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #587189;
}

.wizard-choice-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}

.wizard-choice-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .wizard-choice-grid { grid-template-columns: 1fr; }
}

.wizard-choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  border: 1px solid #dceaf7;
  border-radius: 1.4rem;
  background: #fff;
  padding: 1.35rem;
  text-align: left;
  box-shadow: 0 14px 34px rgba(31, 78, 121, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wizard-choice-card:hover {
  transform: translateY(-4px);
  border-color: #1f4e79;
  box-shadow: 0 22px 50px rgba(31, 78, 121, 0.12);
}

.wizard-choice-card-compact {
  padding: 1.1rem 1.25rem;
}

.wizard-choice-card-selected {
  border-color: #1f4e79;
  background: #eef5fc;
  box-shadow: 0 14px 34px rgba(31, 78, 121, 0.16);
}

.program-groups {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.program-group-heading {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 950;
  color: #1f4e79;
}

.wizard-auto-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: #eef5fc;
  color: #1f4e79;
  font-size: 0.9rem;
  font-weight: 700;
}

.wc-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.wc-title {
  font-size: 1.05rem;
  font-weight: 950;
  color: #08263f;
}

.wc-desc {
  font-size: 0.92rem;
  font-weight: 600;
  color: #7a93a8;
  line-height: 1.6;
}

/* ---------- step 4: 이수과목 체크리스트 ---------- */
.wizard-course-toolbar {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-progress-label {
  font-size: 0.9rem;
  font-weight: 900;
  color: #1f4e79;
}

.wizard-course-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.course-feedback-message {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a6a86;
}

.course-feedback-message-complete {
  color: #1c7c4f;
}

.wizard-course-list {
  margin-top: 1rem;
  display: grid;
  /* 실제 컬럼 수·폭 비율은 js/diagnosis.js가 그룹 개수에 맞춰 인라인 style로 지정한다. */
  gap: 0.85rem;
  align-items: start;
}

@media (max-width: 860px) {
  .wizard-course-list {
    grid-template-columns: 1fr !important;
  }
}

.course-cat-group {
  border: 1px solid #dceaf7;
  border-radius: 1.2rem;
  background: #fff;
  padding: 0.85rem 0.9rem 1rem;
}

.course-cat-heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 950;
  color: #1f4e79;
}

.course-cat-rows {
  display: grid;
  gap: 0.15rem;
}

.course-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0rem;
  border-radius: 0.75rem;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
  transition: background 140ms ease;
}

.course-row:hover { background: #f4f9fd; }

.course-row input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  accent-color: #1f4e79;
}

.course-row-name {
  flex: 1 1 auto;
  font-size: 0.98rem;
  font-weight: 750;
  color: #234;
}

.course-row-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.wizard-step4-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .wizard-step4-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.wizard-step4-actions .btn-primary,
.wizard-step4-actions .btn-secondary {
  min-height: 3.2rem;
}

.submit-diagnosis-note {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #6b7d8f;
  text-align: right;
}

@media (max-width: 640px) {
  .submit-diagnosis-note {
    text-align: center;
  }
}

/* ==========================================================================
   진단 결과 리포트
   ========================================================================== */

.result-main {
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 0 6rem;
  background: #f8fbff;
}

.result-container {
  max-width: 52rem;
}

.result-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.result-empty .btn-primary {
  display: inline-flex;
  margin-top: 1.5rem;
}

.result-report {
  display: grid;
  gap: 1.5rem;
}

.result-report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 1.75rem;
  background: #08263f;
  padding: 1.5rem 1.75rem;
  color: #fff;
}

.result-report-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #8fe3d2;
}

.result-report-title {
  margin: 0.5rem 0 0;
  max-width: 34rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.result-fit-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.result-fit-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9fc1dd;
}

.result-fit-score {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 950;
  color: #fff;
  line-height: 1;
}

.result-fit-score span {
  margin-left: 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9fc1dd;
}

.result-status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 950;
}

.result-status-badge.status-safe { background: #e9f8f5; color: #0a8a73; }
.result-status-badge.status-warn { background: #fff3e4; color: #b95d00; }
.result-status-badge.status-danger { background: #fdeceb; color: #b3261e; }

.result-score-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
  .result-score-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .result-score-row { grid-template-columns: 1fr; }
}

.result-confirm-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #f3b4ae;
  border-radius: 1.25rem;
  background: #fdeceb;
  box-shadow: 0 16px 40px rgba(179, 38, 30, 0.08);
}

.result-confirm-alert-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #fff;
  color: #b3261e;
  box-shadow: 0 4px 12px rgba(179, 38, 30, 0.18);
}

.result-confirm-alert-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.result-confirm-alert-body {
  flex: 1 1 auto;
  min-width: 0;
}

.result-confirm-alert-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #8a1d17;
}

.result-confirm-alert-title span {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.result-confirm-alert-desc {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: #9a4a44;
  line-height: 1.5;
}

.result-confirm-alert-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.result-confirm-alert-btn:hover {
  background: #921f19;
}

@media (max-width: 560px) {
  .result-confirm-alert {
    flex-wrap: wrap;
  }

  .result-confirm-alert-btn {
    width: 100%;
  }
}

.result-score-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: #1f4e79;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.result-score-card {
  border: 1px solid #dceaf7;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(31, 78, 121, 0.06);
}

.result-score-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #7a93a8;
}

.result-score-value {
  margin: 0.4rem 0 0;
  font-size: 2rem;
  font-weight: 950;
  color: #005088;
}

.result-score-value span {
  margin-left: 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #7a93a8;
}

.result-score-sub {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: #8098ac;
  line-height: 1.55;
}

.result-panel {
  border: 1px solid #dceaf7;
  border-radius: 1.75rem;
  background: #fff;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 16px 40px rgba(31, 78, 121, 0.06);
}

.result-panel-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 950;
  color: #08263f;
}

.result-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.result-panel-head-row .result-panel-title {
  margin-bottom: 0;
}

.needs-confirm-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fdeceb;
  color: #b3261e;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.3rem 0.75rem;
}

.result-panel-sub {
  margin: 0.3rem 0 1rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #7a93a8;
}

/* 진단 목적(설계검토추천/플래너 전환상담)별 추가 안내 블록 */
.result-purpose-panel {
  border-left: 4px solid #0d9488;
}

.purpose-point-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.purpose-point-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #31526d;
}

.purpose-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #0d9488;
}

.purpose-point-list li strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #08263f;
  font-weight: 900;
}

.cat-bar-track {
  height: 0.6rem;
  border-radius: 999px;
  background: #eef6fc;
  overflow: hidden;
}

.cat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #11caa0, #1f4e79);
}

.degree-req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .degree-req-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .degree-req-grid { grid-template-columns: 1fr; }
}

.degree-req-col {
  border: 1px solid #e5eef6;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #f8fbff;
}

.degree-req-label {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 900;
  color: #1f4e79;
}

.degree-req-count {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a738c;
}

.matched-cat-grid,
.remaining-cat-grid {
  display: grid;
  /* 실제 컬럼 수·폭 비율은 js/result.js가 그룹 개수에 맞춰 인라인 style로 지정한다. */
  gap: 1rem;
}

@media (max-width: 860px) {
  .matched-cat-grid,
  .remaining-cat-grid {
    grid-template-columns: 1fr !important;
  }
}

.matched-cat-heading {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  font-weight: 900;
  color: #1f4e79;
}

.needs-confirm-row {
  border-color: #f6c6c2 !important;
  background: #fff8f7 !important;
}

.flash-highlight {
  animation: flash-highlight-anim 1.6s ease;
}

@keyframes flash-highlight-anim {
  0%, 100% { box-shadow: none; }
  20% { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.25); }
}

.remain-course-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.remain-course-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #e5eef6;
  padding: 0.6rem 0.75rem;
}

.remain-course-row-extra {
  display: none;
}

.remaining-cat-col.is-expanded .remain-course-row-extra {
  display: flex;
}

.remain-toggle-btn {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0;
  width: 100%;
  border: none;
  background: none;
  color: #005088;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.remain-toggle-btn:hover {
  text-decoration: underline;
}

.remain-course-row .course-row-name {
  font-size: 0.95rem;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.remain-course-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.remain-course-meta-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.remain-course-price {
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 900;
  color: #1f4e79;
}

.sem-course-credit {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: #8098ac;
  white-space: nowrap;
}

.sem-course-check {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

.sem-course-check input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: #0a8a73;
  cursor: pointer;
}

.sem-course-check-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b95d00;
}

.sem-course-check input[type="checkbox"]:checked ~ .sem-course-check-label {
  color: #0a8a73;
}

.all-clear-msg {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a8a73;
}

.result-cost-panel {
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
}

.result-next-step-panel {
  border-left: 4px solid #1f4e79;
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
}

.result-next-step-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #31526d;
}

.result-cost-value {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 950;
  color: #005088;
}

.result-cost-desc {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #7a93a8;
}

.result-cost-highlight {
  margin: 0.85rem 0 0;
  display: inline-flex;
  border-radius: 0.9rem;
  background: #fff3e4;
  color: #a85000;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
  flex: 1 1 12rem;
  min-height: 3.2rem;
}

.result-actions #save-diagnosis-btn {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.25);
}

.result-actions #save-diagnosis-btn:hover {
  background: #0b7c72;
  border-color: #0b7c72;
}

.result-disclaimer {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #8098ac;
  text-align: center;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .result-main { padding: 0; }
}

/* ==========================================================================
   가격 관리자 페이지
   ========================================================================== */

.admin-excel-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #dceaf7;
  border-radius: 1.25rem;
  background: #f4f9fd;
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.75rem;
}

.admin-excel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #08263f;
}

.admin-excel-desc {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #5a738c;
  line-height: 1.6;
}

.admin-excel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.admin-excel-upload-label {
  cursor: pointer;
}

.admin-excel-status {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f4e79;
}

.admin-main {
  min-height: calc(100vh - 5rem);
  padding: 2rem 0 5rem;
  background: #f8fbff;
}

.admin-container {
  max-width: 72rem;
}

.admin-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-goal-tabs {
  display: flex;
  gap: 0.5rem;
}

.admin-goal-tab {
  border-radius: 999px;
  border: 1px solid #cbddeb;
  background: #fff;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 850;
  color: #5a738c;
}

.admin-goal-tab.active {
  background: #1f4e79;
  border-color: #1f4e79;
  color: #fff;
}

.admin-default-note {
  margin: 0;
  font-size: 0.82rem;
  color: #7a93a8;
}

.admin-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 15rem 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  border: 1px solid #dceaf7;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.25rem;
}

.admin-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: #1f4e79;
}

.admin-program-list {
  display: grid;
  gap: 0.4rem;
}

.admin-program-item {
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4d6680;
}

.admin-program-item:hover { background: #f4f9fd; }

.admin-program-item.active {
  background: #eef6fc;
  color: #1f4e79;
  font-weight: 900;
}

.admin-content {
  display: grid;
  gap: 1.25rem;
}

.admin-summary-card {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dceaf7;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.25rem;
}

@media (max-width: 640px) {
  .admin-summary-card { grid-template-columns: 1fr; }
}

.admin-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-summary-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #8098ac;
}

.admin-summary-value {
  font-size: 1.15rem;
  font-weight: 950;
  color: #08263f;
}

.admin-summary-final { color: #0a8a73; }

.admin-bulk-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.admin-bulk-discount {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-bulk-discount input {
  width: 6rem;
  min-height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid #cfe2f0;
  padding: 0 0.75rem;
  font-family: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #dceaf7;
  border-radius: 1.5rem;
  background: #fff;
}

.admin-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 46rem;
}

.admin-price-table th {
  text-align: left;
  padding: 0.9rem 1rem;
  background: #f4f9fd;
  color: #5a738c;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 1px solid #dceaf7;
}

.admin-price-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eef4fa;
  vertical-align: middle;
}

.admin-td-name {
  font-weight: 800;
  color: #234;
  white-space: nowrap;
}

.admin-td-name-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-td-credit {
  color: #7a93a8;
  font-weight: 700;
  white-space: nowrap;
}

.admin-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-input-wrap input {
  width: 6.5rem;
  min-height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid #cfe2f0;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.admin-input-wrap span {
  color: #7a93a8;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-td-final {
  font-weight: 950;
  color: #005088;
  white-space: nowrap;
}

.admin-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  border-radius: 0.9rem;
  background: #08263f;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  z-index: 60;
}

/* ==========================================================================
   메인페이지 — 모바일 sticky CTA
   ========================================================================== */

.sticky-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 30px rgba(8,38,63,0.12);
}

.sticky-mobile-cta a {
  display: flex;
  justify-content: center;
  min-height: 3.1rem;
  align-items: center;
  border-radius: 1rem;
  background: #005088;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* ==========================================================================
   무료 학점진단 전체화면 모달 (index.html에서 diagnosis.html/result.html을 iframe으로 표시)
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

.diagnosis-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #f8fbff;
  animation: diagnosis-modal-in 200ms ease;
}

.diagnosis-modal[hidden] {
  display: none;
}

@keyframes diagnosis-modal-in {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* 얇은 외부 바를 별도로 두어, iframe 안(진단체크/결과)의 자체 헤더·버튼과 겹치지 않게 한다 */
.diagnosis-modal-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #08263f;
}

.diagnosis-modal-bar-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #8fe3d2;
  letter-spacing: 0.04em;
}

.diagnosis-modal-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
}

.diagnosis-modal-close {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  transition: background 160ms ease;
}

.diagnosis-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   nav-auth (헤더 로그인 상태 영역)
   ========================================================================== */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-auth-email {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5a738c;
}

.nav-auth-link {
  color: #4b6680;
  font-weight: 700;
  white-space: nowrap;
}

.nav-auth-link:hover {
  color: #1f4e79;
}

.nav-auth-link-strong {
  color: #1f4e79;
  font-weight: 900;
}

/* ==========================================================================
   로그인/회원가입 모달
   ========================================================================== */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 38, 63, 0.55);
  backdrop-filter: blur(4px);
  animation: diagnosis-modal-in 160ms ease;
}

.auth-modal-overlay[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 24rem;
  border-radius: 1.75rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(8, 38, 63, 0.3);
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #7a93a8;
  font-size: 0.9rem;
  transition: background 140ms ease;
}

.auth-modal-close:hover {
  background: #f4f9fd;
}

.auth-modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-modal-tab {
  flex: 1 1 auto;
  border-radius: 999px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #7a93a8;
  background: #f4f9fd;
}

.auth-modal-tab.active {
  background: #1f4e79;
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #31526d;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]) {
  -webkit-appearance: none;
  appearance: none;
  height: 3rem;
  line-height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid #cfe2f0;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #08263f;
}

.auth-form input:focus {
  outline: none;
  border-color: #1f4e79;
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.auth-form-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b3261e;
}

.auth-form .btn-primary {
  min-height: 3.1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-modal-note {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8098ac;
  text-align: center;
}

/* ==========================================================================
   결과페이지 인라인 "더 궁금하면 물어볼래요" 질문 카드 (auth-form 스타일을 그대로 재사용)
   ========================================================================== */

.result-consult-panel {
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
}

.consult-inline-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0a8a73;
}

.consult-inline-title {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #08263f;
  line-height: 1.4;
}

.consult-inline-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a738c;
}

.consult-inline-faq-label {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #7a93a8;
}

.consult-inline-faq-hint {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: #8098ac;
}

.consult-faq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.consult-faq-loading {
  margin: 0;
  font-size: 0.82rem;
  color: #8098ac;
}

.consult-faq-chip {
  border: 1px solid #cfe2f0;
  border-radius: 999px;
  background: #f4f9fd;
  color: #1f4e79;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.consult-faq-chip:hover {
  background: #eaf3fb;
}

.consult-faq-chip.active {
  background: #1f4e79;
  border-color: #1f4e79;
  color: #fff;
}

.consult-faq-chip-write {
  background: #fff;
  border-style: dashed;
  color: #5a738c;
}

.consult-faq-chip-write.active {
  background: #1f4e79;
  border-style: solid;
  border-color: #1f4e79;
  color: #fff;
}

.consult-inline-send-section {
  padding-top: 1rem;
  border-top: 1px dashed #dbeaf6;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.consult-persuade {
  background: #f4f9fd;
  border: 1px solid #dbeaf6;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}

.consult-persuade-alert {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b3261e;
}

.consult-persuade-alert span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.consult-persuade-headline {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #08263f;
  line-height: 1.4;
}

.consult-persuade-desc {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #5a738c;
}

.consult-persuade-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.consult-persuade-bullets li {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f4e79;
}

.consult-persuade-bullets li::before {
  content: "●";
  margin-right: 0.35rem;
  color: #0a8a73;
  font-size: 0.6rem;
  vertical-align: middle;
}

.consult-inline-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .consult-inline-contact-row { grid-template-columns: 1fr; }
}

.auth-form textarea {
  min-height: 5rem;
  border-radius: 0.9rem;
  border: 1px solid #cfe2f0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #08263f;
  resize: vertical;
}

.auth-form textarea:focus {
  outline: none;
  border-color: #1f4e79;
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.consult-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #5a738c !important;
  line-height: 1.6;
}

.consult-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  accent-color: #1f4e79;
  border: 2px solid #1f4e79;
  border-radius: 0.3rem;
  cursor: pointer;
}

.consult-consent a {
  color: #1f4e79;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consult-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.consult-form-success[hidden] {
  display: none;
}

.consult-form-success p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a8a73;
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   나의 진단플랜 — 우측 슬라이드 드로어
   ========================================================================== */

.my-plans-drawer {
  position: fixed;
  inset: 0;
  z-index: 205;
}

.my-plans-drawer[hidden] {
  display: none;
}

.my-plans-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 38, 63, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.my-plans-drawer.open .my-plans-drawer-backdrop {
  opacity: 1;
}

.my-plans-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(26rem, 100%);
  background: #f8fbff;
  box-shadow: -20px 0 60px rgba(8, 38, 63, 0.25);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.my-plans-drawer.open .my-plans-drawer-panel {
  transform: translateX(0);
}

.my-plans-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-plans-drawer-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 950;
  color: #08263f;
}

.my-plans-drawer-close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #5a738c;
  font-size: 1rem;
  transition: background 140ms ease;
}

.my-plans-drawer-close:hover {
  background: #eef6fc;
}

.my-plans-drawer-desc {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #7a93a8;
}

.my-plans-drawer-list {
  display: grid;
  gap: 0.9rem;
}

.my-plans-status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8098ac;
  text-align: center;
  padding: 2rem 0;
}

.my-plans-item {
  border: 1px solid #dceaf7;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.1rem;
}

.my-plans-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.my-plans-item-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #08263f;
  line-height: 1.4;
}

.my-plans-favorite-btn {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  color: #cbddeb;
  transition: transform 140ms ease, color 140ms ease;
}

.my-plans-favorite-btn:hover {
  transform: scale(1.1);
}

.my-plans-favorite-btn.is-favorite {
  color: #f28c28;
}

.my-plans-item-sub {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #7a93a8;
}

.my-plans-item-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   Final CTA — 회원가입 유도 카드 (기존 상담 리드폼 대체)
   ========================================================================== */

.signup-benefit-card {
  border-radius: 1.75rem;
  border: 1px solid #dceaf7;
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(31, 78, 121, 0.1);
}

.signup-benefit-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0a8a73;
}

.signup-benefit-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.signup-benefit-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #365875;
  line-height: 1.5;
}

.signup-benefit-cta {
  width: 100%;
  margin-top: 1.5rem;
  min-height: 3.2rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.signup-benefit-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #7a93a8;
  text-align: center;
}

.signup-benefit-login-link {
  font-weight: 900;
  color: #1f4e79;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* result.html: 진단 저장 상태 문구 */
.save-diagnosis-status {
  margin: -0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f4e79;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-auth-email { display: none; }
}

/* ==========================================================================
   할인 이벤트 배너 (상단 공지 바) — index.html 실제 노출 + banner-admin.html 미리보기 공용
   ========================================================================== */

.banner-bar {
  background: #08263f;
  color: #fff;
  position: relative;
}

.banner-bar-close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  z-index: 2;
  color: #9fc1dd;
  font-size: 0.9rem;
  padding: 0.3rem;
}

.banner-bar-close:hover {
  color: #fff;
}

.banner-bar-viewport {
  position: relative;
  overflow: hidden;
}

.banner-bar-track {
  display: flex;
  transition: transform 450ms ease;
}

.banner-bar-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.banner-bar-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0 0.55rem;
}

.banner-bar-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 160ms ease, transform 160ms ease;
}

.banner-bar-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.banner-bar-dot.active {
  background: #f28c28;
  transform: scale(1.3);
}

/* ---- 배너 1개짜리 얇은 가로 바 (perPage=1, 결과페이지·미리보기 등) ---- */
.banner-bar-inner-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.65rem 2.75rem 0.65rem 1.25rem;
}

.banner-bar-inner-wrap .banner-grid-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.banner-bar-inner-wrap .banner-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  flex: 1 1 auto;
}

.banner-bar-inner-wrap .banner-card-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  flex: 1 1 auto;
  min-width: 10rem;
}

.banner-bar-inner-wrap .banner-bar-title {
  flex: 1 1 auto;
  min-width: 8rem;
}

/* ---- 한 줄에 4개 그리드 (perPage=4, 메인페이지 상단) — 로고 옆에 제목·가격을 붙여 카드 높이를 줄인다 ---- */
.banner-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 2.75rem 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.banner-grid .banner-grid-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.banner-grid .banner-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.banner-grid .banner-bar-brand {
  flex: 0 0 auto;
}

.banner-grid .banner-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.banner-grid .banner-bar-title {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-grid .banner-bar-price {
  flex-wrap: wrap;
}

.banner-grid .banner-bar-cta {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}

.banner-bar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.banner-bar-logo {
  height: 1.75rem;
  width: auto;
  max-width: 6rem;
  object-fit: contain;
  border-radius: 0.3rem;
  background: #fff;
  padding: 0.15rem 0.3rem;
}

.banner-bar-institution {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9fc1dd;
  white-space: nowrap;
}

.banner-bar-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.banner-bar-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.banner-bar-price-original {
  font-size: 0.78rem;
  color: #9fc1dd;
  text-decoration: line-through;
}

.banner-bar-price-discount {
  font-size: 1rem;
  font-weight: 950;
  color: #f28c28;
}

.banner-bar-cta {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f28c28;
  color: #08263f;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.banner-bar-cta:hover {
  background: #ffb066;
}

@media (max-width: 640px) {
  .banner-bar-inner-wrap .banner-grid-card {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 할인 배너 관리 페이지 ---------- */

.banner-admin-main {
  min-height: calc(100vh - 5rem);
  padding: 2.5rem 0 5rem;
  background: #f8fbff;
}

.banner-admin-container {
  max-width: 60rem;
}

.banner-admin-gate {
  text-align: center;
  padding: 4rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5a738c;
}

.banner-admin-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.banner-admin-layout[hidden] {
  display: none;
}

.banner-admin-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.banner-admin-list-head .btn-primary {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .banner-admin-list-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .banner-admin-layout { grid-template-columns: 1fr; }
}

.banner-form {
  display: grid;
  gap: 1rem;
  border: 1px solid #dceaf7;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.75rem;
}

.banner-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #31526d;
}

.banner-form input {
  min-height: 2.9rem;
  border-radius: 0.8rem;
  border: 1px solid #cfe2f0;
  padding: 0 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #08263f;
}

.banner-form input:focus {
  outline: none;
  border-color: #1f4e79;
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.banner-form-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.banner-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- 상담 신청 관리 페이지 ---------- */

.consult-admin-list {
  display: grid;
  gap: 0.9rem;
}

.consult-admin-item {
  border: 1px solid #dceaf7;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.1rem 1.25rem;
}

.consult-admin-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.consult-admin-item-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #08263f;
}

.consult-admin-item-time {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: #8098ac;
}

.consult-admin-status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.consult-admin-status-badge.status-new { background: #fff3e4; color: #b95d00; }
.consult-admin-status-badge.status-contacted { background: #e9f8f5; color: #0a8a73; }

.consult-admin-source-badge {
  display: inline-block;
  margin: 0.5rem 0 0;
  border-radius: 999px;
  background: #eef6fc;
  color: #1f4e79;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.consult-admin-item-body {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #31526d;
}

.consult-admin-item-body strong {
  color: #08263f;
  font-weight: 800;
}

.consult-admin-item-memo {
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  background: #f4f9fd;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #31526d;
  white-space: pre-wrap;
}

.consult-admin-item-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
}

.users-admin-diagnoses {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.users-admin-diagnoses[hidden] {
  display: none;
}

.users-admin-diagnosis-row {
  border: 1px solid #e5eef6;
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: #f9fbfd;
}

.users-admin-diagnosis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.users-admin-diagnosis-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #234;
}

.users-admin-diagnosis-meta {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #7a93a8;
}

.users-admin-stat-row + .users-admin-stat-row {
  margin-top: 0.6rem;
}

.users-admin-stat-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #31526d;
}

.users-admin-stat-row-top span:last-child {
  flex: 0 0 auto;
  color: #7a93a8;
  font-weight: 800;
}

.banner-form-actions .btn-primary {
  flex: 1 1 auto;
  min-height: 3rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.banner-preview-wrap {
  border: 1px dashed #cbddeb;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: #fff;
}

.banner-preview-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: #7a93a8;
}

.banner-preview-wrap .banner-bar {
  border-radius: 1rem;
  overflow: hidden;
}

.banner-preview-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #8098ac;
  text-align: center;
  padding: 2rem 0;
}
