/* =====================================================
   코스트코 대행 서비스 — 공통 스타일
   ===================================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --primary:   #2563EB;
  --primary-dark: #1D4ED8;
  --red:       #0F2B57;
  --red-dark:  #0A1F3F;
  --bg:        #F8FAFC;
  --card:      #FFFFFF;
  --text:      #0F172A;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --shadow:    0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 1px 2px rgba(15,23,42,.04), 0 16px 40px rgba(15,23,42,.10);
  --radius:    16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── 인라인 아이콘 (SVG, 이모지 대체) ── */
.icon {
  width: 1em; height: 1em; display: inline-block;
  vertical-align: -0.14em; flex-shrink: 0;
}

/* ── 인터랙션·접근성 폴리시 ── */
a, button, .btn, .filter-btn, .page-btn, .faq-q, [onclick], input[type=checkbox], input[type=submit], label[for] {
  cursor: pointer;
}
a, button, .btn { transition: all .2s ease; }
:focus-visible {
  outline: 3px solid #93C5FD;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── 버튼 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: all .18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(15,43,87,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ── 네비게이션 ───────────────────────── */
nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 900; color: #0F2B57;
}
.nav-logo span { color: #2563EB; }
.nav-logo .icon { font-size: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: #334155; padding: 8px 14px;
  border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { background: #F1F5F9; color: #0F172A; }
.nav-cta { background: var(--primary); color: #fff !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }
.cart-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px;
  background: #2563EB; color: #fff; border-radius: 10px;
  font-size: 12px; font-weight: 900;
}
.nav-cart { font-size: 20px; display: inline-flex; align-items: center; gap: 4px; color: #0F2B57; }

/* ── 페이지 헤더 ──────────────────────── */
.page-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  color: #0F172A; padding: 56px 24px 48px; text-align: center;
  border-bottom: 1px solid #E2E8F0;
}
.page-header h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; margin-bottom: 10px; letter-spacing: -0.02em; }
.page-header p { font-size: 16px; color: #64748B; }

/* ── 섹션 컨테이너 ────────────────────── */
.section { padding: 64px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 28px; font-weight: 900; color: #0F172A; margin-bottom: 8px; letter-spacing: -0.02em; }
.section-sub  { color: var(--muted); margin-bottom: 40px; }

/* ── 카드 ─────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
}

/* ── 배지 ─────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge-red   { background: #E0F2FE; color: #0369A1; }
.margin-chip { font-size: 11px; font-weight: 700; background: #E0F2FE; color: #0369A1; padding: 2px 8px; border-radius: 4px; }
.badge-blue  { background: #DBEAFE; color: #1D4ED8; }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-cold  { background: #EEF2FF; color: #4338CA; }

/* ── 알림 박스 ────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.alert-blue  { background: #EFF6FF; color: #1E40AF; border-left: 4px solid #2563EB; }
.alert-red   { background: #FFF1F2; color: #9B1C1C; border-left: 4px solid var(--red); }
.alert-green { background: #F0FDF4; color: #14532D; border-left: 4px solid #16A34A; }
.alert-yellow { background: #FFFBEB; color: #78350F; border-left: 4px solid #F59E0B; }

/* ── 폼 ───────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px;
}
.form-group label .required { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── 카운트다운 ───────────────────────── */
.countdown-bar {
  background: #FFF3CD; border: 1px solid #FFC107;
  border-radius: 8px; padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: #78350F;
}
#countdown-timer { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--red); }

/* ── 푸터 ─────────────────────────────── */
footer {
  background: #0A1F3F; color: #9CA3AF;
  padding: 40px 24px; text-align: center; font-size: 13px;
}
footer strong { color: #E5E7EB; }
footer a { color: #9CA3AF; }
footer .footer-links { display: flex; justify-content: center; gap: 20px; margin: 12px 0; flex-wrap: wrap; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta):not(.nav-cart) { display: none; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; }
}
