/* ===== Reservation — light theme + contract documents ===== */

/* Page-level light theme */
body[data-page="reservation"] {
  background: #f4f4f4;
  color: #1a1a1a;
  font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

/* Override global nav to white */
body[data-page="reservation"] #global-nav,
body[data-page="reservation"] #global-nav.solid,
body[data-page="reservation"] #global-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body[data-page="reservation"] .nav-link,
body[data-page="reservation"] .nav-search,
body[data-page="reservation"] .logo-double,
body[data-page="reservation"] .logo-graphy { color: #1a1a1a; }
body[data-page="reservation"] .nav-link { opacity: 0.85; }
body[data-page="reservation"] .nav-link.active { border-bottom-color: #1a1a1a; opacity: 1; }
body[data-page="reservation"] .nav-hamburger span { background: #1a1a1a; }

/* Footer light */
body[data-page="reservation"] #global-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body[data-page="reservation"] .footer-logo .logo-double,
body[data-page="reservation"] .footer-logo .logo-graphy { color: #1a1a1a; }
body[data-page="reservation"] .footer-label { color: #1a1a1a; }
body[data-page="reservation"] .footer-company,
body[data-page="reservation"] .footer-col a { color: rgba(0, 0, 0, 0.55); }
body[data-page="reservation"] .footer-col a:hover { color: #1a1a1a; }
body[data-page="reservation"] .footer-copy { color: rgba(0, 0, 0, 0.4); }
body[data-page="reservation"] .footer-totop { color: #1a1a1a; border-bottom-color: rgba(0,0,0,0.4); }

/* Mobile drawer light */
body[data-page="reservation"] .mobile-drawer { background: #ffffff; }
body[data-page="reservation"] .mobile-close { color: #1a1a1a; }
body[data-page="reservation"] .mobile-nav-list .nav-link {
  color: #1a1a1a;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body[data-page="reservation"] .mobile-secondary a { color: rgba(0, 0, 0, 0.55); }

/* ===== Page layout ===== */
.reservation-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.reservation-hero {
  text-align: center;
  margin-bottom: 40px;
}
.reservation-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #999;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.reservation-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 14px;
  font-family: inherit;
}
.reservation-sub {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Step indicator ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}
.step-item.active,
.step-item.done { opacity: 1; }
.step-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #999;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.step-item.active .step-dot { background: #111; border-color: #111; }
.step-item.done .step-dot { background: #111; border-color: #111; }
.step-label {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.step-item.active .step-label { color: #111; font-weight: 700; }
.step-bar {
  flex: 1;
  height: 1px;
  background: #d4d4d4;
  max-width: 80px;
}

/* ===== Form ===== */
.reservation-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 40px;
  border-radius: 4px;
}
.step {
  display: none;
  animation: fadeStep 0.4s ease;
}
.step.active { display: block; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}
.step-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #888;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.step-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.step-sub {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

/* Field grid */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
}
.field-label em {
  color: #d33;
  font-style: normal;
  margin-left: 2px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  color: #111;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #111;
  background: #fff;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #bbb; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 90px; }

/* Info callout in Step 3 */
.info-callout {
  background: #fafafa;
  border: 1px dashed #d8d8d8;
  padding: 16px 18px;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
  border-radius: 3px;
}
.info-callout strong { color: #111; font-weight: 700; }

/* ===== Package cards (Step 2) ===== */
.package-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pkg-card { cursor: pointer; }
.pkg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-card-inner {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, background 0.25s ease;
  border-radius: 3px;
}
.pkg-card:hover .pkg-card-inner { border-color: #999; background: #fff; }
.pkg-card input:checked + .pkg-card-inner {
  border-color: #111;
  background: #fff;
  box-shadow: inset 0 0 0 1px #111;
}
.pkg-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.pkg-card-inner ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pkg-card-inner ul li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.pkg-card-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #888;
}
.pkg-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* ===== Step actions ===== */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}
body[data-page="reservation"] .btn-primary {
  background: #111;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
body[data-page="reservation"] .btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}
body[data-page="reservation"] .btn-ghost {
  border: 1px solid #d0d0d0;
  color: #333;
  background: transparent;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 14px;
  border-radius: 999px;
}
body[data-page="reservation"] .btn-ghost:hover {
  border-color: #111;
  color: #111;
  background: transparent;
}

/* ===== Contract Documents (Step 4) ===== */
.contract-doc {
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 36px 32px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #222;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.doc-brand .doc-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.doc-brand .doc-phone {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.doc-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.doc-greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  color: #333;
}
.doc-greeting strong { color: #111; font-weight: 700; }

.doc-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
  font-size: 13px;
}
.doc-meta strong { color: #111; font-weight: 700; margin-left: 4px; }

.doc-section {
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}
.doc-section:last-of-type { border-bottom: none; }

.doc-row {
  display: grid;
  grid-template-columns: 100px 160px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
}
.doc-row > .doc-key:only-child {
  grid-column: 1 / -1;
}
.doc-key {
  font-weight: 700;
  color: #111;
  font-size: 13px;
  grid-column: 1;
}
.doc-sub {
  color: #555;
  font-weight: 600;
  font-size: 12px;
  grid-column: 2;
}
.doc-val {
  color: #222;
  font-size: 13px;
  grid-column: 3;
  word-break: keep-all;
}

.doc-product {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.doc-price { font-family: 'Inter', sans-serif; font-weight: 700; }
.krw {
  display: inline-block;
  font-weight: 500;
  color: #999;
  margin-right: 6px;
}

.doc-note { color: #444; font-size: 12.5px; margin: 6px 0; }
.doc-note.muted { color: #888; }

.doc-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}
.doc-totals .row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 6px 0;
  font-size: 13px;
  color: #333;
}
.doc-totals .row > :first-child { font-weight: 600; color: #444; }
.doc-totals .row > :last-child { font-family: 'Inter', sans-serif; font-weight: 600; color: #111; }
.doc-totals .row.total {
  font-weight: 700;
  font-size: 14px;
  border-top: 1px solid #d8d8d8;
  padding-top: 10px;
  margin-top: 4px;
}
.doc-totals .row.total > :first-child,
.doc-totals .row.total > :last-child { font-weight: 700; color: #111; }
.doc-totals .row.balance {
  font-weight: 700;
  font-size: 15px;
  border-top: 1px solid #d8d8d8;
  padding-top: 12px;
  margin-top: 4px;
}
.doc-totals .row.balance > :last-child { font-size: 16px; }

.doc-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  min-height: 60px;
}
.msg-label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
  text-align: center;
}
.msg-body {
  font-size: 13px;
  color: #333;
  white-space: pre-wrap;
  min-height: 30px;
}

/* Contract clauses */
.doc-clause-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 24px 0 14px;
}
.doc-clause-title.left { text-align: left; }

.doc-clauses {
  font-size: 12.5px;
  color: #333;
  line-height: 1.75;
}
.doc-clauses p {
  margin: 8px 0;
}
.doc-clauses p b { font-weight: 700; color: #111; }
.doc-clauses .muted { color: #777; font-size: 12px; margin-top: 14px; }
.doc-bullets {
  margin: 4px 0 8px 14px;
  list-style: none;
}
.doc-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
}
.doc-bullets li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: #888;
}

/* ===== Signature block ===== */
.signature-block {
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 24px;
  margin-bottom: 24px;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.6;
}
.agree input {
  width: 17px;
  height: 17px;
  accent-color: #111;
  flex-shrink: 0;
  margin-top: 2px;
}
.agree b { color: #111; font-weight: 700; }

.signature-area {
  border-top: 1px solid #ececec;
  padding-top: 20px;
}
.signature-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.sig-label strong { color: #111; font-weight: 700; }

.signature-pad {
  position: relative;
  border: 1px dashed #c0c0c0;
  background: #fafafa;
  border-radius: 3px;
  overflow: hidden;
  height: 160px;
}
#signatureCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c0c0;
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.signature-pad.has-ink .sig-placeholder { opacity: 0; }

.btn-clear {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  background: transparent;
  border: none;
  text-decoration: underline;
  padding: 4px 0;
}
.btn-clear:hover { color: #111; }

/* ===== Thank you ===== */
.thank-you { text-align: center; padding: 40px 0; }
.thank-mark {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: #111;
}
.thank-mark svg { width: 100%; height: 100%; }
.thank-you h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
  font-family: inherit;
}
.thank-you p {
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.thank-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Loading state on submit ===== */
#submitBtn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
#submitBtn.loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .package-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .reservation-page { padding: 40px 16px 80px; }
  .reservation-form { padding: 24px 18px; }
  .contract-doc { padding: 24px 18px; }
  .doc-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 0;
  }
  .doc-key { grid-column: 1; }
  .doc-sub { grid-column: 1; }
  .doc-val { grid-column: 1; padding-left: 8px; }

  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-bar { max-width: 24px; }
  .step-label { font-size: 10px; }
  .step-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .step-actions > * { width: 100%; }
  .doc-header { flex-direction: column; gap: 8px; }
  .doc-title { font-size: 18px; }
  .doc-meta { flex-direction: column; gap: 4px; }
  .signature-meta { flex-direction: column; gap: 4px; }
}
