/* =========================================================
   호텔어라운드 평창 — 수분양자 전용 예약
   축제 페이지(style.css)와 색감을 구분한 딥 네이비 + 웜 베이지 테마
   중장년 사용자를 고려해 기본 글자·버튼 크기를 키웠습니다.
   ========================================================= */

:root {
  --navy-deep: #16233A;
  --navy: #243754;
  --navy-mid: #24375A;
  --navy-soft: #4C5F80;
  --beige: #F6F1E7;
  --beige-2: #EDE5D6;
  --paper: #FFFFFF;
  --sand: #CBBC9E;
  --gold: #A8834B;
  --ink: #18202F;
  --ink-2: #59627A;
  --line: rgba(24, 32, 47, .14);
  --ok: #2E6B4F;
  --warn: #A8601F;
  --danger: #A23F3F;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  --f-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-serif: 'Noto Serif KR', serif;
  --f-en: 'Cormorant Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--beige);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; object-fit: cover; background: var(--beige-2); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1.05rem; color: inherit; }
::selection { background: var(--navy-mid); color: #fff; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------
   헤더
   --------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.25; color: #fff; }
.brand b { font-family: var(--f-en); font-size: 1.36rem; letter-spacing: .13em; font-weight: 500; }
.brand span { font-size: .6rem; letter-spacing: .22em; color: rgba(255, 255, 255, .58); }
.hdr-tag {
  font-size: .82rem; letter-spacing: .04em; color: var(--sand);
  border: 1px solid rgba(203, 188, 158, .45); border-radius: 999px; padding: 6px 15px;
  white-space: nowrap;
}
.hdr-tel { color: #fff; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.hdr-tel small { display: block; font-size: .66rem; color: rgba(255, 255, 255, .55); letter-spacing: .1em; font-weight: 400; }

/* ---------------------------------------------------------
   히어로 — 차분하게
   --------------------------------------------------------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; opacity: .28; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 58, .78) 0%, rgba(22, 35, 58, .92) 100%);
}
.hero-in { position: relative; z-index: 2; padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 70px); }
.hero-eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .16em; color: var(--sand);
  border-bottom: 1px solid rgba(203, 188, 158, .4); padding-bottom: 7px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.34; letter-spacing: -.01em;
}
.hero h1 b { display: block; font-weight: 600; color: #fff; }
.hero h1 .light { color: rgba(255, 255, 255, .82); font-weight: 400; }
.hero p {
  margin-top: 22px; font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, .8); font-weight: 300; line-height: 1.95;
}

/* ---------------------------------------------------------
   진행 단계
   --------------------------------------------------------- */
.steps-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.steps-list { display: flex; gap: 0; padding: 16px 0; }
.step-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; text-align: center;
}
.step-item::before {
  content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px;
  background: var(--beige-2);
}
.step-item:first-child::before { display: none; }
.step-item.done::before, .step-item.on::before { background: var(--navy-soft); }
.step-no {
  position: relative; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--beige-2); color: var(--ink-2);
  font-size: .95rem; font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.step-item.on .step-no { background: var(--navy-deep); color: #fff; }
.step-item.done .step-no { background: var(--navy-soft); color: #fff; }
.step-label { font-size: .84rem; color: var(--ink-2); letter-spacing: -.01em; }
.step-item.on .step-label { color: var(--navy-deep); font-weight: 600; }

/* ---------------------------------------------------------
   섹션 / 카드
   --------------------------------------------------------- */
.sec { padding: clamp(36px, 6vw, 64px) 0; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 10px 40px rgba(24, 32, 47, .05);
}
.panel + .panel { margin-top: 20px; }

.h-step {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.32rem, 3.2vw, 1.68rem); line-height: 1.45;
}
.h-step-sub { margin-top: 10px; font-size: 1rem; color: var(--ink-2); font-weight: 300; line-height: 1.8; }
.rule { width: 44px; height: 2px; background: var(--sand); margin: 18px 0 26px; }

/* ---------------------------------------------------------
   버튼 — 크게
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 58px; padding: 0 30px;
  font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em;
  border-radius: 6px; border: 1.5px solid transparent;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--navy-deep); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:not(:disabled):hover { background: #96743F; transform: translateY(-2px); }
.btn-line { background: var(--paper); color: var(--navy-deep); border-color: var(--navy-soft); }
.btn-line:not(:disabled):hover { background: var(--beige); }
.btn-quiet { background: var(--beige-2); color: var(--ink-2); }
.btn-quiet:not(:disabled):hover { background: var(--sand); color: var(--navy-deep); }
.btn-block { width: 100%; }
.btn-lg { min-height: 64px; font-size: 1.14rem; }
.btn .arw { transition: transform .28s var(--ease); }
.btn:not(:disabled):hover .arw { transform: translateX(4px); }

.btn-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 150px; }

/* ---------------------------------------------------------
   폼 — 크게
   --------------------------------------------------------- */
.field { margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field label {
  display: block; margin-bottom: 9px;
  font-size: 1rem; font-weight: 600; color: var(--navy-deep); letter-spacing: -.01em;
}
.field .req { color: var(--danger); margin-left: 3px; }
.field .hint { display: block; margin-top: 7px; font-size: .88rem; color: var(--ink-2); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 58px; padding: 14px 16px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
  font-size: 1.06rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(76, 95, 128, .16);
}
.field input[readonly] { background: var(--beige-2); color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .field { margin-top: 0; }

.err-msg {
  display: none; margin-top: 18px; padding: 14px 16px;
  background: #FBF0EF; border: 1px solid rgba(162, 63, 63, .3); border-radius: 6px;
  color: var(--danger); font-size: .96rem; line-height: 1.7; white-space: pre-line;
}
.err-msg.on { display: block; }

/* ---------------------------------------------------------
   숙박 요약 바
   --------------------------------------------------------- */
.stay-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  margin-bottom: 24px; padding: 16px 20px;
  background: var(--navy-deep); border-radius: 6px; color: #fff;
}
.stay-bar .lbl { font-size: .82rem; color: rgba(255, 255, 255, .6); letter-spacing: .06em; }
.stay-bar .val { font-size: 1.06rem; font-weight: 600; }
.stay-bar .sep { color: rgba(255, 255, 255, .35); }
.stay-bar .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; margin-left: auto; }

/* ---------------------------------------------------------
   객실 카드
   --------------------------------------------------------- */
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rcard {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.rcard:not(.sold):hover { border-color: var(--navy-soft); transform: translateY(-3px); box-shadow: 0 16px 44px rgba(24, 32, 47, .1); }
.rcard.sold { opacity: .68; }
.rcard figure { position: relative; }
.rcard figure img { width: 100%; height: clamp(180px, 21vw, 230px); }
.rcard-state {
  position: absolute; top: 12px; left: 12px;
  font-size: .84rem; font-weight: 600; letter-spacing: -.01em;
  padding: 7px 14px; border-radius: 999px; color: #fff;
}
.rcard-state.ok { background: var(--ok); }
.rcard-state.few { background: var(--warn); }
.rcard-state.no { background: #6B7280; }
.rcard-sold-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(24, 32, 47, .55); color: #fff;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .06em;
}
.rcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.rcard h3 { font-size: 1.24rem; font-weight: 600; letter-spacing: -.015em; }
.rcard-meta {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: .98rem; color: var(--ink-2);
}
.rcard-meta b { color: var(--navy-deep); font-weight: 600; }
.rcard-bed { margin-top: 8px; font-size: .95rem; color: var(--ink-2); }
.rcard-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.rcard-foot .btn { width: 100%; }

.empty-box {
  padding: 48px 24px; text-align: center;
  background: var(--paper); border: 1.5px dashed var(--line); border-radius: 8px;
  color: var(--ink-2); font-size: 1.04rem; line-height: 1.85;
}

/* ---------------------------------------------------------
   확인 / 완료
   --------------------------------------------------------- */
.sum-list { display: grid; grid-template-columns: 132px 1fr; gap: 0; border-top: 1px solid var(--line); }
.sum-list dt, .sum-list dd {
  padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.sum-list dt { color: var(--ink-2); font-weight: 500; }
.sum-list dd { font-weight: 600; color: var(--navy-deep); word-break: break-word; }

.notice-box {
  margin-top: 22px; padding: 18px 20px;
  background: var(--beige-2); border-radius: 6px;
  font-size: .98rem; color: var(--ink-2); line-height: 1.85;
}
.notice-box b { color: var(--navy-deep); }

.done-head { text-align: center; padding: 10px 0 4px; }
.done-mark {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.1rem;
}
.done-head h2 { font-family: var(--f-serif); font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 600; }
.done-head p { margin-top: 14px; font-size: 1.06rem; color: var(--ink-2); line-height: 1.9; }
.done-no {
  margin: 26px auto 0; padding: 20px; max-width: 420px;
  background: var(--navy-deep); border-radius: 8px; text-align: center; color: #fff;
}
.done-no span { display: block; font-size: .84rem; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.done-no b { display: block; margin-top: 8px; font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; }
.pay-notice {
  margin-top: 24px; padding: 20px;
  background: #FDF7EC; border: 1.5px solid var(--sand); border-radius: 8px;
  text-align: center; font-size: 1.08rem; font-weight: 600; color: var(--gold); line-height: 1.85;
}

/* ---------------------------------------------------------
   푸터
   --------------------------------------------------------- */
.ftr { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: clamp(40px, 6vw, 64px) 0 32px; }
.ftr-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ftr-brand b { display: block; font-family: var(--f-en); font-size: 1.3rem; letter-spacing: .13em; color: #fff; }
.ftr-brand span { display: block; margin-top: 5px; font-size: .6rem; letter-spacing: .22em; color: rgba(255, 255, 255, .5); }
.ftr-brand p { margin-top: 18px; font-size: .95rem; font-weight: 300; line-height: 1.9; max-width: 24em; }
.ftr-contact { font-size: .98rem; line-height: 2; }
.ftr-contact b { color: #fff; font-size: 1.24rem; font-weight: 600; }
.ftr-contact span { display: block; font-size: .8rem; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }
.ftr-bot {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem; color: rgba(255, 255, 255, .45); font-weight: 300; line-height: 1.9;
}

/* ---------------------------------------------------------
   토스트
   --------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  z-index: 200; max-width: calc(100vw - 32px);
  padding: 15px 22px; border-radius: 6px;
  background: var(--navy-deep); color: #fff; font-size: 1rem;
  opacity: 0; pointer-events: none; white-space: pre-line;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* ---------------------------------------------------------
   반응형
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .room-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .hdr-tag { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .grid-2 .field { margin-top: 0; }
  .step-label { font-size: .74rem; }
  .step-no { width: 32px; height: 32px; font-size: .88rem; }
  .step-item::before { top: 15px; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row .btn { width: 100%; }
  .stay-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stay-bar .btn { margin-left: 0; width: 100%; }
  .sum-list { grid-template-columns: 100px 1fr; }
  .sum-list dt, .sum-list dd { font-size: .96rem; padding: 13px 2px; }
  .ftr-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
