/* --- Variables --- */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #005fbf;
  --accent-hover: #004a99;
  --accent-soft: #e0efff;
  --border: #e2e8f0;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --footer-bg: var(--accent);
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-link: #fff;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 95, 191, 0.06), transparent),
                    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(0, 95, 191, 0.04), transparent);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header --- */
.header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
.header-inner {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.header .header-inner {
  max-width: 560px;
  margin: 0 auto;
  display: block;
}
.logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 400px;
  margin: 0 auto;
  object-fit: contain;
}
.tagline-wrap {
  max-width: 480px;
  margin: 1.25rem auto 0;
}
.tagline {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 600;
  padding: 1rem 1.35rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(224, 239, 255, 0.6) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 95, 191, 0.12);
  box-shadow: 0 2px 8px rgba(0, 95, 191, 0.06);
}
.tagline-wrap .tagline {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* --- Main --- */
.main {
  flex: 1;
  padding: 0 1.5rem 3rem;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid var(--border);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.card-desc {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Multi-step --- */
.step-indicator {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.step-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.step-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}
.step-dot.done {
  background: var(--accent);
}
.step-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.step-label-desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.step-panel {
  display: none;
  animation: stepIn 0.25s ease-out;
}
.step-panel.active {
  display: block;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.step-nav .btn-primary { min-width: 100px; }
.step-nav .btn-secondary { min-width: 80px; }

.review-summary {
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.5rem;
}
.review-summary p { margin: 0 0 0.35rem; }
.review-summary p:last-child { margin-bottom: 0; }
.review-summary strong { color: var(--text-muted); font-weight: 500; }

/* --- Thank you --- */
.thank-you-card {
  text-align: center;
}
.thank-you-content {
  padding: 0.5rem 0;
}
.thank-you-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}
.thank-you-text {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}
.thank-you-note {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.thank-you-content .btn-primary {
  padding: 0.75rem 1.5rem;
}

/* --- Form --- */
.form-section {
  margin-bottom: 2rem;
}
.form-section:last-of-type { margin-bottom: 1.5rem; }

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.section-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.label span { color: var(--text); }
.label input {
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.label input::placeholder { color: var(--text-muted); opacity: 0.8; }
.label input:hover { border-color: #c4c8cf; }
.label input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Rewards --- */
.rewards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reward-option {
  cursor: pointer;
  display: block;
}
.reward-option input { display: none; }
.reward-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.reward-option:hover .reward-card {
  border-color: #c4c8cf;
  background: var(--bg);
}
.reward-option input:checked + .reward-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.reward-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.reward-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Video --- */
.video-block { margin-top: 0.5rem; }
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  background: #0f1116;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.preview, .playback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.video-status {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:not(:disabled):active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: var(--border);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) { background: #d1d5db; }

.btn-record {
  background: var(--danger);
  color: #fff;
}
.btn-record:hover:not(:disabled) { background: var(--danger-hover); }
.btn-record.recording {
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.btn-danger {
  background: var(--text);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #2d3139; }

/* --- Submit --- */
.submit-wrap {
  margin-top: 0.5rem;
}
.submit-wrap .btn-primary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
}
.form-message {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}
.form-message.success { color: var(--accent); }
.form-message.error { color: var(--danger); }

/* --- Footer --- */
.footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  background: linear-gradient(180deg, rgba(0, 95, 191, 0.97) 0%, var(--footer-bg) 12%);
  color: var(--footer-text);
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}
.footer-inner {
  max-width: 560px;
  margin: 0 auto;
}
.footer p { margin: 0; }
.footer-thanks {
  margin-bottom: 0.75rem;
  color: var(--footer-link);
  font-weight: 500;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--footer-text);
  opacity: 0.85;
}
