/* /0live/assets/css/signup.css — Pelanos Agiron theme */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --olive:       #4a6741;
  --olive-dark:  #2d4229;
  --olive-light: #6b8f5e;
  --olive-mist:  #eef3ec;
  --sand:        #c9a96e;
  --sand-light:  #f0e3c8;
  --cream:       #faf8f4;
  --white:       #ffffff;
  --text:        #1e1e1e;
  --text-muted:  #6b6b6b;
  --border:      #e0dbd2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: linear-gradient(150deg, var(--olive-dark) 0%, var(--olive) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  color: var(--text);
}

.signup-container {
  width: 100%;
  max-width: 820px;
}

/* ── Progress bar ── */
.progress-container {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8e3dc;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.progress-step.active .step-circle {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
  box-shadow: 0 4px 14px rgba(74,103,65,0.35);
}

.progress-step.completed .step-circle {
  background: var(--olive-light);
  color: var(--white);
  border-color: var(--olive-light);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.progress-step.active .step-label {
  color: var(--olive);
  font-weight: 600;
}

.progress-line {
  height: 2px;
  background: #e8e3dc;
  flex: 1;
  margin: 0 -8px;
  margin-bottom: 20px;
}

/* ── Form container ── */
.form-container {
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 36px 40px 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-header h1 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}

.form-header p { font-size: 14px; color: var(--text-muted); }
.form-header strong { color: var(--olive); }

/* ── Steps ── */
.form-step { display: none; }
.form-step.active {
  display: block;
  animation: fadeUp 0.28s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}

.step-description { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* ── User type cards ── */
.user-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.user-type-card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-type-card:hover {
  border-color: var(--olive-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74,103,65,0.15);
}

.user-type-card.selected {
  border-color: var(--olive);
  background: var(--olive-mist);
  box-shadow: 0 4px 16px rgba(74,103,65,0.2);
}

.card-icon { font-size: 40px; margin-bottom: 12px; }

.user-type-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}

.user-type-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Form groups ── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74,103,65,0.1);
}

.form-group .hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.error-message {
  display: block;
  color: #c0392b;
  font-size: 13px;
  margin-top: 5px;
}

/* ── Review box ── */
.review-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.review-item:last-child { border-bottom: none; }
.review-item strong { color: var(--text-muted); font-weight: 500; }

/* ── Terms box ── */
.terms-box {
  background: var(--olive-mist);
  border: 1px solid #c8dac4;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.checkbox-label:last-child { margin-bottom: 0; }

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--olive);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a { color: var(--olive); font-weight: 600; }

/* ── Navigation buttons ── */
.form-navigation {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

.btn {
  padding: 11px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,103,65,0.3);
}

.btn-secondary {
  background: var(--cream);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-secondary:hover { background: var(--sand-light); }

.btn-next {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-next:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
}

.btn-next:disabled {
  background: #c8d5c6;
  border-color: #c8d5c6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}

.btn-back:hover {
  background: var(--olive-mist);
}

/* ── Success state ── */
.success-container { text-align: center; }

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--olive);
  color: var(--white);
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(74,103,65,0.3);
}

.success-container h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.info-box {
  background: var(--olive-mist);
  border: 1px solid #c8dac4;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0;
  text-align: left;
}

.info-box > p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.next-steps h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

.next-steps ol { padding-left: 18px; }
.next-steps li { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Loading overlay ── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--sand-light);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay p {
  color: var(--white);
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-container { padding: 24px 20px 28px; }
  .progress-container { padding: 20px; }
  .user-type-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .form-navigation { flex-direction: column-reverse; }
  .btn { width: 100%; text-align: center; }
  .action-buttons { flex-direction: column; }
}
