/* 인플루픽 정식 접수 — 랜딩페이지 디자인 토큰 공유 */
:root {
  --accent: #ff4d6d;
  --accent-dark: #e63a5b;
  --accent-soft: #fff0f3;
  --ink: #1c1c1e;
  --ink-sub: #6b6b70;
  --ink-faint: #9a9aa0;
  --line: #ececef;
  --bg: #ffffff;
  --bg-soft: #f8f8fa;
  --radius: 16px;
  --good-bg: #e9f7ef;
  --good-ink: #1d7a4f;
  --bad-ink: #c0394f;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 24px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #ff4d6d, #ff7a8e);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(255, 77, 109, 0.45); transform: translateY(-1px); }
.btn-lg { font-size: 17px; padding: 16px 36px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo::first-letter { color: var(--accent); }
.header-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #ffd6de;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 20px 8px;
  text-align: center;
}
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #ffd6de;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(14px, 2.6vw, 17px);
  color: var(--ink-sub);
}

/* ---------- form layout ---------- */
.apply-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 0;
}
.form-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 10px;
  margin-bottom: 16px;
}
.consent-card { padding-bottom: 20px; }
.form-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d6d, #ff7a8e);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

/* ---------- fields ---------- */
.field { margin-bottom: 18px; flex: 1; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.label-optional { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239a9aa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
}
.field input.invalid,
.field textarea.invalid { border-color: var(--bad-ink); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { min-width: 200px; }
.field-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 5px;
  line-height: 1.5;
}
.error-msg {
  font-size: 12px;
  color: var(--bad-ink);
  margin-top: 4px;
  min-height: 0;
}

/* ---------- checkbox groups ---------- */
.group-field { border: none; }
.group-field legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.legend-hint { font-weight: 400; color: var(--ink-faint); font-size: 12px; margin-left: 4px; }
.check-grid { display: grid; gap: 10px; }
@media (min-width: 560px) {
  .check-grid.two { grid-template-columns: 1fr 1fr; }
}
label.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 0;
}
.check-item:hover { border-color: #ffb3c1; }
.field .check-item input[type="checkbox"],
.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.check-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.check-text { display: flex; flex-direction: column; line-height: 1.45; }
.check-text strong { font-size: 15px; font-weight: 700; }
.check-text small { font-size: 12px; color: var(--ink-sub); margin-top: 1px; }
.check-item.consent { align-items: flex-start; padding: 14px; }
.check-item.consent input[type="checkbox"] { margin-top: 2px; }
.check-item.consent .check-text small { margin-top: 4px; line-height: 1.6; }

/* ---------- submit ---------- */
.form-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 12px;
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer a { color: var(--ink-sub); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  animation: pop 0.25s ease;
}
@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good-ink);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal-body { font-size: 14px; color: var(--ink-sub); margin-bottom: 20px; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- misc ---------- */
.mobile-br { display: none; }
@media (max-width: 560px) {
  .mobile-br { display: inline; }
  .hero { padding-top: 40px; }
  .field-row { flex-direction: column; gap: 0; }
  .field-row .field { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .check-item { transition: none; }
}
