/* AsiaSim 2026 Registration & Payment — 공통 스타일
   심사용 시안. 실제 적용 시 asiasim2026.org 기존 스타일과 통합하세요. */

:root {
  --navy: #12284c;
  --navy-light: #1e3c6e;
  --accent: #2f6fd0;
  --accent-soft: #eaf1fc;
  --silver: #8b95a5;
  --line: #dfe4ec;
  --bg: #f6f8fb;
  --text: #1c2430;
  --text-soft: #5a6472;
  --danger: #c0392b;
  --ok: #1a7f4b;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── 헤더 ───────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand strong { font-size: 20px; letter-spacing: -0.02em; }
.brand span { font-size: 12px; color: #a9bcd8; }
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: #d6e1f2; text-decoration: none; }
.site-nav a:hover, .site-nav a.on { color: #fff; text-decoration: underline; }
.site-nav a.lang { margin-left: 6px; padding-left: 18px; border-left: 1px solid #3d5a8a; color: #fff; font-weight: 600; }

/* ── 페이지 타이틀 ──────────────────────────────────── */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 34px 0 30px;
}
.page-head h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: #b8c9e2; font-size: 14px; }

/* ── 본문 ───────────────────────────────────────────── */
main { padding: 32px 0 60px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.card > h2 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.card > h2 + .sub { margin: 0 0 18px; color: var(--text-soft); font-size: 13.5px; }
h3 { font-size: 16px; margin: 22px 0 8px; }

.notice {
  background: var(--accent-soft);
  border: 1px solid #c6dafa;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.notice strong { color: var(--navy); }
.notice.warn { background: #fff6ed; border-color: #f5d3ae; }

/* ── 상품(등록 종류) 목록 ───────────────────────────── */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
}
.fee-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.fee-item.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.fee-thumb {
  height: 116px;
  background: var(--accent-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 34px;
}
.fee-body { padding: 14px 16px 0; flex: 1; }
.fee-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.fee-item .desc { margin: 0 0 10px; font-size: 13px; color: var(--text-soft); min-height: 56px; }
.fee-price { font-size: 19px; font-weight: 700; color: var(--navy); }
.fee-price small { display: block; font-weight: 400; font-size: 12px; color: var(--silver); }
.fee-item .pick { margin: 12px 16px 0; }

/* ── 폼 요소 ────────────────────────────────────────── */
label.field { display: block; margin-bottom: 14px; font-size: 13.5px; color: var(--text-soft); }
label.field span.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14.5px;
  font-family: inherit;
  margin-top: 5px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.qty {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.qty input { width: 74px; margin-top: 0; text-align: center; }

button, .btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { background: #2560b8; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f2f5fa; }
.btn-block { display: block; width: 100%; padding: 15px; font-size: 16.5px; }
button:disabled { background: #b7c2d2; cursor: not-allowed; }

/* ── 주문 요약 ──────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
.summary { position: sticky; top: 20px; }
.sum-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-soft); }
.sum-line.total {
  border-top: 1px solid var(--line);
  margin-top: 10px; padding-top: 14px;
  font-size: 18px; font-weight: 700; color: var(--navy);
}

/* ── 표 ─────────────────────────────────────────────── */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 6px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.tbl th { background: #f2f5fa; color: var(--navy); font-weight: 600; }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 약관 동의 ──────────────────────────────────────── */
.agree { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.agree label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.agree label:last-child { margin-bottom: 0; }
.agree .all { font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.agree input[type=checkbox] { margin-top: 4px; }

/* ── 푸터 (카드사 심사 필수 항목) ───────────────────── */
.site-footer {
  background: #eef1f6;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-links { margin-bottom: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.biz-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  border: 1px solid #d3dae5;
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
}
.biz-info dl { margin: 0; display: grid; grid-template-columns: 132px 1fr; row-gap: 5px; }
.biz-info dt { color: var(--silver); }
.biz-info dd { margin: 0; color: var(--text); }
.biz-info .cs strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.copyright { margin-top: 16px; color: var(--silver); font-size: 12px; }

.todo { color: var(--danger); font-weight: 600; }

@media (max-width: 860px) {
  .checkout-grid, .biz-info, .row2 { grid-template-columns: 1fr; }
  .summary { position: static; }
}
