/* public/css/onboarding.css — shared styles for the onboarding flow */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Site header ─────────────────────────────────────────────────────────── */

.site-header {
  background: #1a1a2e;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-header__logo:hover { opacity: 0.85; }

/* ── Page centering wrapper ───────────────────────────────────────────────── */

.page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.page {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

/* ── Branding ─────────────────────────────────────────────────────────────── */

.brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.5px;
}

.brand p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Steps / headings ─────────────────────────────────────────────────────── */

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-hint {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

/* Inline row of form fields (e.g. expiry + CVC on the payment page) */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-col {
  flex: 1;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #333;
}

input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-size: 1rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s ease;
  appearance: none;
}

input:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.12);
}

input:disabled {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

/* OTP input — large and centered */
.otp-input {
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
}

/* Checkbox row */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #4a6cf7;
  color: #fff;
  width: 100%;
  text-align: center;
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover { background: #e4e4e4; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.alert-error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

.alert-info {
  background: #e6f4ff;
  border: 1px solid #91caff;
  color: #0958d9;
}

.alert-warning {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #874d00;
}

.alert-success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #135200;
}

/* ── Footer / links ───────────────────────────────────────────────────────── */

.page-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
}

.page-footer a {
  color: #4a6cf7;
  text-decoration: none;
}

.page-footer a:hover { text-decoration: underline; }

/* ── Site footer ─────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #ebebeb;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ── Success / welcome ────────────────────────────────────────────────────── */

.success-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin: 1.25rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li:last-child { border-bottom: none; }
