/* ==========================================================================
   /forecast/ 대화형 자산 시뮬레이션 랜딩
   베러웰스 웹 디자인 시스템(bw-homepage-design-system) 토큰 기반. 사이트 공통 style.css 는 로드하지 않는다.
   접두사: fc-  (캘린더 모듈 forecast-calendar.js 도 .fc-cal / .fc-day / .fc-slot 을 쓴다)
   ========================================================================== */

:root {
  /* Primary (Sky) */
  --primary-50: #F6FAFF;
  --primary-100: #EBF5FF;
  --primary-200: #D5EBFF;
  --primary-300: #9FD1FF;
  --primary-500: #2E9BFF;
  --primary-600: #2A8DE8;
  --primary-700: #216EB5;
  --primary: var(--primary-500);
  --primary-hover: var(--primary-600);
  /* Secondary */
  --secondary-500: #2E58FF;
  /* Gray — 표면·보더·아이콘 */
  --gray-50: #F8F9FA;
  --gray-100: #F4F5F7;
  --gray-200: #EFEFF0;
  --gray-300: #E6E6E7;
  --gray-400: #D6D7DB;
  --gray-500: #ADAFB8;
  --gray-600: #858794;
  --gray-800: #404351;
  --gray-900: #2A2C32;
  --white: #FFFFFF;
  /* Text */
  --text-200: #A4A4A8;
  --text-300: #909094;
  --text-500: #67676B;
  --text-600: #535357;
  --text-700: #3F3F43;
  --text-800: #2B2B2F;
  --text-900: #17171B;
  /* Utility */
  --red-100: #FFF3F1;
  --red-500: #FF5247;
  --green-100: #EFFBF8;
  --green-500: #3AD1A9;
  --green-dark: #2C9D7F;
  --yellow-100: #FFFAE9;
  --yellow-500: #FFC823;
  /* 수익률 색 (한국 관행: 상승 빨강 / 하락 파랑) */
  --up: #D13838;
  --down: var(--secondary-500);
  /* 시나리오 색 (차트 예외: Primary·Secondary 램프 + 상태색) */
  --scn-bad: var(--red-500);
  --scn-mid: var(--primary-500);
  --scn-good: var(--green-dark);
  /* Layout */
  --max-w: 1200px;
  --card-w: 640px;
  --header-h: 68px;
  --radius-input: 8px;
  --radius-btn: 12px;
  --radius-card: 20px;
  --t: .2s;
  --t-md: .3s;
  --shadow-card: 0 1px 2px rgba(23, 23, 27, .04), 0 4px 16px rgba(23, 23, 27, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fc-body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--text-900);
  background: var(--gray-50);
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: inline-block; }

/* ---------- 헤더 ---------- */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}
.fc-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fc-header__logo { display: inline-flex; align-items: center; }
.fc-header__logo img { height: 24px; width: auto; display: block; }
.fc-header__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-800);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  transition: background var(--t);
}
.fc-header__link:hover { background: var(--gray-100); }

/* ---------- 레이아웃 ---------- */
.fc-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: calc(100vh - var(--header-h));
}
.fc-screen { display: none; }
.fc-screen.is-active { display: block; }
/* 결과 링크로 진입: 계산이 끝날 때까지 첫 화면을 숨기고 안내만 보여 준다 (index.html head 스크립트가 .fc-from-url 부여, forecast-app.js 가 해제) */
.fc-url-loading { display: none; }
.fc-from-url .fc-url-loading { display: block; padding: 96px 16px; text-align: center; color: var(--text-muted, #6b7280); font-size: 16px; }
.fc-from-url #screen-intro { display: none; }
.fc-q .fc-card,
.fc-progress { max-width: var(--card-w); margin-left: auto; margin-right: auto; }
.fc-q--wide .fc-card { max-width: 860px; }

/* ---------- 카드 ---------- */
.fc-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.fc-card + .fc-card { margin-top: 16px; }
.fc-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.fc-card__title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--text-900); }
.fc-card__subtitle { font-size: 16px; font-weight: 700; margin-top: 24px; }
.fc-card__unit { font-size: 12px; font-weight: 400; color: var(--text-300); margin-left: 4px; }
.fc-card__sub { font-size: 13px; color: var(--text-500); margin-top: 4px; }
.fc-card__note { font-size: 12px; color: var(--text-600); margin-top: 12px; line-height: 1.6; }

/* ---------- 진행률 ---------- */
.fc-progress { margin-bottom: 16px; }
.fc-progress__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fc-progress__back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 6px 8px 6px 4px; margin-left: -4px;
  border-radius: 8px; color: var(--text-600); font-size: 14px; font-weight: 600; cursor: pointer;
}
.fc-progress__back svg { width: 18px; height: 18px; }
.fc-progress__back:hover { background: var(--gray-100); color: var(--text-900); }
.fc-progress__back[disabled] { visibility: hidden; }
.fc-progress__label { font-size: 13px; font-weight: 600; color: var(--text-500); font-variant-numeric: tabular-nums; }
.fc-progress__bar { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.fc-progress__fill { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width var(--t-md) ease; }

/* ---------- 인트로 ---------- */
.fc-intro { max-width: 720px; margin: 0 auto; padding: 40px 0 20px; text-align: center; }
.fc-intro__eyebrow { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .02em; margin-bottom: 12px; }
.fc-intro__title { font-size: clamp(28px, 6vw, 44px); font-weight: 700; line-height: 1.25; letter-spacing: -0.6px; color: var(--text-900); }
.fc-intro__sub { font-size: clamp(16px, 2.4vw, 18px); color: var(--text-600); margin-top: 16px; }
.fc-intro__meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; color: var(--text-500); }
.fc-intro__meta li { display: inline-flex; align-items: center; gap: 6px; }
.fc-intro__meta svg { width: 16px; height: 16px; color: var(--gray-600); }
.fc-intro__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

/* ---------- 버튼 ---------- */
.fc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 56px; padding: 0 24px;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.fc-btn svg { width: 18px; height: 18px; }
.fc-btn--primary { background: var(--primary); color: var(--white); }
.fc-btn--primary:hover { background: var(--primary-hover); }
.fc-btn--primary:disabled { background: var(--gray-400); cursor: not-allowed; }
.fc-btn--outline { background: var(--white); border-color: var(--gray-400); color: var(--text-800); }
.fc-btn--outline:hover { border-color: var(--text-800); }
.fc-btn--text { width: auto; height: 44px; padding: 0 12px; background: none; color: var(--text-600); font-size: 15px; font-weight: 600; }
.fc-btn--text:hover { color: var(--text-900); background: var(--gray-100); }
.fc-btn--sm { height: 44px; font-size: 15px; width: auto; padding: 0 18px; }

/* ---------- 질문 ---------- */
.fc-q__title { font-size: clamp(20px, 3.2vw, 24px); font-weight: 700; line-height: 1.4; letter-spacing: -0.3px; }
.fc-q__title strong { color: var(--primary); font-weight: 700; }
.fc-q__desc { font-size: 15px; color: var(--text-600); margin-top: 8px; }
.fc-name:not(:empty)::after { content: '님, '; }
.fc-label { display: block; font-size: 16px; font-weight: 600; color: var(--text-900); margin: 24px 0 6px; }
.fc-label__unit { font-weight: 400; color: var(--text-400, #7C7C80); font-size: 14px; }
.fc-input {
  width: 100%; padding: 12px; min-height: 52px;
  border: 1px solid var(--gray-400); border-radius: var(--radius-input);
  font-size: 18px; font-weight: 500; color: var(--text-900); background: var(--white);
  outline: none; transition: border-color var(--t);
}
.fc-input::placeholder { color: var(--text-200); font-weight: 400; }
.fc-input:focus { border-color: var(--primary); }
.fc-input.is-error { border-color: var(--red-500); }
.fc-input--num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 56px; }
.fc-input-wrap { position: relative; }
.fc-input-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--text-300); pointer-events: none; }
.fc-hint { font-size: 14px; color: var(--primary-700); margin-top: 8px; min-height: 21px; font-weight: 600; }
.fc-hint:empty { display: none; }
.fc-error { font-size: 14px; color: var(--red-500); margin-top: 6px; min-height: 0; }
.fc-error:empty { display: none; }
.fc-q__actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 24px; }
.fc-q__actions .fc-btn--text { margin-top: 4px; }

/* 모드 선택 */
.fc-choice { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.fc-choice__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; padding: 20px; background: var(--white);
  border: 1.5px solid var(--gray-400); border-radius: 16px; cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.fc-choice__btn:hover { border-color: var(--primary); background: var(--primary-50); }
.fc-choice__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-100); color: var(--primary-700); }
.fc-choice__icon svg { width: 22px; height: 22px; }
.fc-choice__title { font-size: 17px; font-weight: 700; color: var(--text-900); }
.fc-choice__desc { font-size: 14px; color: var(--text-500); }

/* 성향 카드 */
.fc-profiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; grid-auto-rows: 1fr; }
.fc-profile {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px; background: var(--white); border: 1.5px solid var(--gray-400); border-radius: 16px; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.fc-profile:hover, .fc-profile.is-on { border-color: var(--primary); background: var(--primary-50); }
.fc-profile__ring { flex: none; width: 48px; height: 48px; }
.fc-profile__body { min-width: 0; flex: 1; display: block; }
.fc-profile__name { display: block; font-size: 17px; font-weight: 700; color: var(--text-900); }
.fc-profile__alloc { display: block; font-size: 14px; color: var(--text-600); margin-top: 2px; }
.fc-profile__alloc b { color: var(--primary-700); font-weight: 600; }
/* 카드에는 고르는 데 필요한 두 숫자만 — 변동성은 결과 화면·리포트에 */
.fc-profile__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-200, #EEF0F3); }
.fc-stat { display: block; }
.fc-stat__k { display: block; font-size: 12px; color: var(--text-500); line-height: 1.4; }
.fc-stat__v { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fc-stat__v { color: var(--up); }
.fc-stat__v.fc-mdd { color: var(--down); }

/* ---------- 결과 ---------- */
.fc-result { max-width: 860px; margin: 0 auto; }
.fc-result__title { font-size: clamp(22px, 3.6vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -0.4px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: var(--white); border: 1px solid var(--gray-400); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-700); cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.fc-chip:hover { border-color: var(--primary); background: var(--primary-50); }
.fc-chip svg { width: 14px; height: 14px; color: var(--gray-600); }
/* 조건 바꿔 보기 (결과 화면 재시뮬레이션) */
.fc-tune { margin-bottom: 16px; }
.fc-tune__grid { display: grid; grid-template-columns: 1fr; gap: 14px 16px; margin-top: 14px; }
.fc-tune__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-tune__label { font-size: 13px; font-weight: 600; color: var(--text-600); }
.fc-input--tune, .fc-input--tune.fc-input { height: 48px; min-height: 48px; font-size: 16px; padding-right: 52px; }
.fc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-seg__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--gray-400); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-700); cursor: pointer; font-family: inherit;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.fc-seg__btn:hover { border-color: var(--primary); background: var(--primary-50); }
.fc-seg__btn.is-on { background: var(--primary); border-color: var(--primary); color: var(--white); }
.fc-seg__btn:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.fc-seg__sub { font-size: 12px; font-weight: 500; opacity: .8; }
.fc-tune__status { font-size: 13px; color: var(--text-500); margin-top: 8px; }
.fc-tune__status:empty, .fc-tune .fc-error:empty { display: none; }
.fc-tune .fc-error { margin-top: 10px; }
@media (min-width: 560px) {
  .fc-tune__grid { grid-template-columns: 1fr 1fr; }
  .fc-tune__field--wide { grid-column: 1 / -1; }
}
.fc-chart { min-height: 280px; }
.fc-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-500); }
.fc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fc-legend__dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.fc-legend__dot--band { background: var(--primary-200); }
.fc-legend__dot--median { background: var(--scn-mid); }
.fc-legend__dot--base { background: transparent; border-bottom: 2px dashed var(--gray-500); height: 0; border-radius: 0; }
.fc-notice { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--yellow-100); color: var(--text-700); margin-bottom: 16px; }
.fc-table-wrap { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.fc-table th, .fc-table td { padding: 12px 4px; border-bottom: 1px solid var(--gray-200); text-align: right; word-break: keep-all; }
.fc-table thead th { font-size: 12px; font-weight: 600; color: var(--text-600); border-bottom: 1px solid var(--gray-400); white-space: nowrap; }
.fc-table tbody th { text-align: left; font-weight: 600; color: var(--text-700); width: 26%; }
@media (min-width: 560px) {
  .fc-table { font-size: 14px; }
  .fc-table th, .fc-table td { padding: 12px 8px; white-space: nowrap; }
  .fc-table thead th { font-size: 13px; }
  .fc-table tbody th { width: auto; }
}
.fc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.fc-dot--bad { background: var(--scn-bad); }
.fc-dot--mid { background: var(--scn-mid); }
.fc-dot--good { background: var(--scn-good); }
.fc-val { font-weight: 600; color: var(--text-900); font-variant-numeric: tabular-nums; }
.fc-val--big { font-size: 15px; font-weight: 700; }
.fc-val.is-up { color: var(--up); }
.fc-val.is-down { color: var(--down); }
.fc-val.is-na { color: var(--text-500, #8b95a1); font-weight: 500; } /* 자산 소진 시 수익률 '산출 불가' — 부호 색 없음 */
.fc-scenario-note { font-size: 12px; color: var(--text-500); margin-top: 12px; line-height: 1.6; }
.fc-method { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-200, #E5E8EB); font-size: 12px; line-height: 1.7; color: var(--text-600); }
.fc-method p + p { margin-top: 6px; }
.fc-result__sustain { font-size: 15px; color: var(--text-700); margin-top: 8px; line-height: 1.6; }
.fc-result__sustain strong { color: var(--text-900); }
.fc-disclaimer { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--gray-100); font-size: 12px; line-height: 1.7; color: var(--text-600); }
.fc-disclaimer p + p { margin-top: 6px; }
.fc-disclaimer__lead { color: var(--text-700); }

/* CTA */
.fc-cta { margin-top: 24px; padding: 28px 20px; border-radius: var(--radius-card); background: var(--primary-100); text-align: center; }
.fc-cta__title { font-size: clamp(18px, 3vw, 22px); font-weight: 700; line-height: 1.4; }
.fc-cta__who { font-size: 15px; font-weight: 600; color: var(--primary-700); margin-top: 8px; }
.fc-cta__desc { font-size: 15px; color: var(--text-600); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.fc-cta__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.fc-cta .fc-btn--text { margin-top: 8px; }

/* ---------- 토스트 ---------- */
.fc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--gray-900); color: var(--white); font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 10px; z-index: 50; max-width: calc(100% - 40px);
}

/* ---------- 폼 패널 (forecast-forms.js) ---------- */
.fc-panel { margin-top: 16px; }
.fc-panel .fc-card { padding: 24px 20px; }
.fc-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fc-panel__title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.fc-panel__desc { font-size: 14px; color: var(--text-600); margin-top: 6px; }
/* 이메일 폼 '메일에 담기는 내용' */
.fc-mail-preview { margin: 16px 0 4px; padding: 14px 16px; background: var(--gray-50); border-radius: 10px; }
.fc-mail-preview__k { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.fc-mail-preview ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--gray-800); }
.fc-panel__close { flex: none; width: 36px; height: 36px; border: 0; background: var(--gray-100); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--gray-600); }
.fc-panel__close svg { width: 18px; height: 18px; }
.fc-panel__step { margin-top: 20px; }
.fc-panel__step-title { font-size: 15px; font-weight: 700; color: var(--text-800); display: flex; align-items: center; gap: 8px; }
.fc-panel__step-num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--text-900); color: var(--white); font-size: 12px; align-items: center; justify-content: center; }
.fc-form-group { margin-top: 20px; }
.fc-form-group .fc-label { margin-top: 0; }
.fc-required { color: var(--red-500); margin-left: 2px; }
.fc-input--form { font-size: 16px; font-weight: 400; min-height: 48px; }
.fc-notice-box { background: var(--gray-100); border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text-700); margin-top: 16px; line-height: 1.5; }
.fc-notice-box--ok { background: var(--green-100); color: var(--green-dark); }
.fc-consent { margin-top: 24px; border: 1px solid var(--gray-300); border-radius: 12px; padding: 4px 16px; }
.fc-consent__row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.fc-consent__row + .fc-consent__row { border-top: 1px solid var(--gray-200); }
.fc-consent__row--all { font-weight: 700; }
.fc-consent__text { font-size: 14px; color: var(--text-800); line-height: 1.5; flex: 1; }
.fc-consent__text a { color: var(--text-500); font-size: 13px; margin-left: 6px; }
.fc-consent__tag { font-weight: 600; color: var(--text-500); }
.fc-consent__tag--req { color: var(--red-500); }
.fc-check { position: relative; display: inline-flex; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.fc-check input[type="checkbox"] { position: absolute; inset: 0; width: 18px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.fc-check__box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid var(--gray-500); border-radius: 4px; background: var(--white); transition: background .15s, border-color .15s; }
.fc-check__box svg { width: 12px; height: 12px; color: var(--white); opacity: 0; transition: opacity .15s; }
.fc-check input:checked + .fc-check__box { background: var(--primary); border-color: var(--primary); }
.fc-check input:checked + .fc-check__box svg { opacity: 1; }
.fc-check input:focus-visible + .fc-check__box { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.fc-form-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fc-form-msg { font-size: 14px; margin-top: 12px; line-height: 1.5; }
.fc-form-msg:empty { display: none; }
.fc-form-msg.is-error { color: var(--red-500); }
.fc-form-msg.is-ok { color: var(--green-dark); }
.fc-done { text-align: center; padding: 16px 0; }
.fc-done__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-100); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fc-done__icon svg { width: 28px; height: 28px; }
.fc-done__title { font-size: 20px; font-weight: 700; }
.fc-done__desc { font-size: 15px; color: var(--text-600); margin-top: 8px; line-height: 1.6; }
.qb-recaptcha { min-height: 78px; margin-top: 16px; }

/* 캘린더 (forecast-calendar.js) */
.fc-cal { margin-top: 12px; }
.fc-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fc-cal__month { font-size: 16px; font-weight: 700; }
.fc-cal__nav { width: 36px; height: 36px; border: 1px solid var(--gray-400); background: var(--white); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--gray-600); }
.fc-cal__nav svg { width: 18px; height: 18px; }
.fc-cal__nav:disabled { opacity: .35; cursor: not-allowed; }
.fc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.fc-cal__dow { text-align: center; font-size: 12px; color: var(--text-400, #7C7C80); padding: 4px 0; font-weight: 600; }
.fc-cal__dow--sun { color: var(--red-500); }
.fc-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent; background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--text-800); cursor: pointer; font-variant-numeric: tabular-nums;
}
.fc-day--empty { background: transparent; cursor: default; }
.fc-day--off { color: var(--text-200); background: var(--gray-50); cursor: not-allowed; font-weight: 400; }
.fc-day--ok { border-color: var(--primary-300); background: var(--primary-50); color: var(--primary-700); }
.fc-day--ok:hover { border-color: var(--primary); }
.fc-day--on { background: var(--primary); border-color: var(--primary); color: var(--white); }
.fc-day--today { text-decoration: underline; text-underline-offset: 3px; }
.fc-cal__note { font-size: 12px; color: var(--text-500); margin-top: 8px; }
.fc-slots { margin-top: 16px; }
.fc-slots__label { font-size: 13px; font-weight: 600; color: var(--text-600); margin: 12px 0 6px; }
.fc-slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-slot {
  height: 44px; border: 1px solid var(--gray-400); border-radius: 10px; background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--text-800); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color var(--t), background var(--t);
}
.fc-slot:hover { border-color: var(--primary); }
.fc-slot--on { background: var(--primary); border-color: var(--primary); color: var(--white); }
.fc-slot--full { text-decoration: line-through; color: var(--text-200); background: var(--gray-50); cursor: not-allowed; }
.fc-slots__empty { font-size: 14px; color: var(--text-500); padding: 8px 0; }
.fc-slots__selected { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary-700); }

/* ---------- 휴대폰 인증 UI (js/consultation.js initPhoneVerify 가 생성, style.css 규칙 이식) ---------- */
.consult-form__input {
  padding: 12px; min-height: 48px; width: 100%;
  border: 1px solid var(--gray-400); border-radius: var(--radius-input);
  font-size: 16px; font-family: inherit; background: var(--white); color: var(--text-900);
  transition: border-color var(--t); outline: none;
}
.consult-form__input:focus { border-color: var(--primary); }
.consult-form__input.error { border-color: var(--red-500); }
.consult-form__input::placeholder { color: var(--text-200); }
.consult-form__error { color: var(--red-500); font-size: 14px; min-height: 0; display: block; margin-top: 6px; }
.consult-form__error:empty { display: none; }
.phone-verify__row { display: flex; gap: 8px; align-items: stretch; }
.phone-verify__row[hidden] { display: none; }
.phone-verify__row > .consult-form__input,
.phone-verify__field { flex: 1; min-width: 0; }
.phone-verify { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.phone-verify:has(.phone-verify__code[hidden]):has(.phone-verify__msg:empty):has(.phone-verify__hint[hidden]) { display: none; }
.phone-verify__btn {
  flex: none; min-width: 112px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--primary); border-radius: var(--radius-input);
  background: var(--primary); color: var(--white);
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.phone-verify__btn:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.phone-verify__btn:disabled { border-color: var(--gray-400); background: var(--gray-100); color: var(--text-200); cursor: not-allowed; font-variant-numeric: tabular-nums; }
.phone-verify__btn.is-loading, .phone-verify__btn.is-loading:disabled { border-color: var(--primary); background: var(--primary); color: var(--white); cursor: progress; }
.phone-verify__btn .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone-verify__field { position: relative; }
.phone-verify__input { padding-right: 72px; }
.phone-verify__input:not(:placeholder-shown) { letter-spacing: 0.25em; }
.phone-verify__timer { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--red-500); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.phone-verify__badge {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px;
  min-width: 112px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--green-500); border-radius: var(--radius-input);
  background: var(--green-100); color: var(--green-dark); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.phone-verify__badge[hidden] { display: none; }
.consult-form__input.is-verified { border-color: var(--green-500); background: var(--green-100); }
.phone-verify__msg { margin: 0; font-size: 14px; line-height: 1.5; }
.phone-verify__msg:empty { display: none; }
.phone-verify__msg.is-info { color: var(--text-600); }
.phone-verify__msg.is-error { color: var(--red-500); }
.phone-verify__msg.is-ok { color: var(--green-dark); }
.phone-verify__hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-600); font-size: 14px; line-height: 1.5; }
.phone-verify__hint[hidden] { display: none; }
.phone-verify__hint strong, .phone-verify__msg.is-kakao strong { color: var(--text-900); font-weight: 700; }
.phone-verify__kakao { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fee500; color: #191919; font-size: 12px; }
.phone-verify__msg.is-kakao { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #f5d800; border-radius: var(--radius-input); background: #fffbd6; color: var(--text-700); }
@media (max-width: 480px) {
  .phone-verify__btn, .phone-verify__badge { min-width: 96px; }
}

/* ---------- 푸터 ---------- */
.fc-footer { background: var(--white); border-top: 1px solid var(--gray-300); margin-top: 40px; }
.fc-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 32px 20px 40px; font-size: 13px; color: var(--text-500); }
.fc-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.fc-footer__links a { color: var(--text-700); font-weight: 600; text-decoration: none; }
.fc-footer__links a:hover { text-decoration: underline; }
.fc-footer__info p { margin: 2px 0; }
.fc-footer__copy { margin-top: 12px; color: var(--text-300); }

/* ---------- 전환 애니메이션 ---------- */
.fc-screen.is-enter { animation: fcSlideIn var(--t-md) ease both; }
@keyframes fcSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .fc-screen.is-enter { animation: none; }
  .fc-progress__fill, .fc-btn, .fc-choice__btn, .fc-profile, .fc-chip { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (min-width: 560px) {
  .fc-intro__actions, .fc-cta__actions { flex-direction: row; justify-content: center; }
  .fc-intro__actions .fc-btn, .fc-cta__actions .fc-btn { width: auto; min-width: 220px; padding: 0 32px; }
  .fc-q__actions .fc-btn--next { width: auto; min-width: 200px; }
}
@media (min-width: 768px) {
  .fc-header__inner { padding: 0 32px; }
  .fc-header__logo img { height: 28px; }
  .fc-main { padding: 40px 32px 80px; }
  .fc-card { padding: 32px 28px; }
  .fc-intro { padding-top: 60px; }
  .fc-btn { height: 60px; font-size: 20px; }
  .fc-choice { grid-template-columns: 1fr 1fr; }
  .fc-profiles { grid-template-columns: 1fr 1fr; }
  .fc-cta { padding: 40px 32px; }
  .fc-footer__inner { padding: 40px 32px 48px; }
  .fc-slots__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 리포트 모드 (상담전문위원 전용, html.fc-report — forecast-app.js enterReport) ---------- */
.fc-report-bar { padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--gray-100); font-size: 14px; color: var(--text-700); }
.fc-report-bar__lead { line-height: 1.6; }
.fc-report-bar__fields { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fc-report-bar__fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-600); }
.fc-report-bar__fields .fc-input { height: 40px; width: 150px; font-size: 14px; padding: 0 10px; }
.fc-report-bar__fields label:nth-of-type(3) .fc-input { width: 200px; }
.fc-report-bar .fc-btn { width: auto; min-width: 0; padding: 0 20px; height: 40px; font-size: 14px; }
.fc-report-cover { padding: 8px 0 20px; border-bottom: 2px solid var(--text-900); margin-bottom: 20px; }
.fc-report-cover__brand { font-size: 13px; font-weight: 600; color: var(--primary-700); }
.fc-report-cover__title { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; margin-top: 4px; }
.fc-report-cover__meta { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.fc-report-cover__meta div { display: flex; gap: 12px; }
.fc-report-cover__meta dt { flex: 0 0 72px; color: var(--text-500); }
.fc-report-cover__meta dd { color: var(--text-900); font-weight: 600; }
#report-name { display: inline-block; min-width: 2em; border-bottom: 1px dashed var(--gray-400); outline: none; }
.fc-table--compare tbody th { width: 34%; }
.fc-table--compare tr.is-pick th, .fc-table--compare tr.is-pick td { background: var(--primary-100); font-weight: 700; }
.fc-report-notice { margin-top: 16px; padding: 16px; border: 1px solid var(--gray-200); border-radius: 12px; font-size: 12px; line-height: 1.7; color: var(--text-600); }
.fc-report-notice__title { font-size: 14px; font-weight: 700; color: var(--text-900); margin-bottom: 6px; }
.fc-report-notice ul { padding-left: 16px; list-style: disc; }
.fc-report-notice__company { margin-top: 10px; color: var(--text-500); }
/* 리포트에서는 고객용 조작 요소를 뺀다 */
.fc-report .fc-header__link, .fc-report #result-title, .fc-report #result-chips, .fc-report #tune, .fc-report .fc-cta,
.fc-report .fc-panel, .fc-report #progress, .fc-report .fc-footer__links { display: none !important; }
.fc-report .fc-result { max-width: 760px; }

/* 신청 폼만 보기 (go=consult|email 로 들어온 경우) — 결과 카드는 숨기고 폼 패널만 */
.fc-formonly > :not(.fc-panel):not(.fc-formonly-bar) { display: none !important; }
.fc-formonly .fc-panel { margin-top: 8px; }
.fc-formonly-bar { display: none; }
.fc-formonly > .fc-formonly-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 8px 0 0; }
.fc-formonly-bar__who { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-900, #1B1B1F); }
