/* ================================================
   PORTAL DE CANDIDATOS — INELCO & TABLESA
   Diseño Profesional v2.0
   ================================================ */

/* ===== VARIABLES ===== */
:root {
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #06b6d4;
  --accent-light: #e0f9ff;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #2563eb;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

.header-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ===== HERO WRAPPER (fondo bancentral) ===== */
.hero-bg-wrapper {
  position: relative;
  background: url('img/bancentral.jpg') center center / cover no-repeat;
  width: 100%;
}

.hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,20,45,0.85) 0%, rgba(10,40,80,0.78) 60%, rgba(5,30,60,0.88) 100%);
  z-index: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  gap: 60px;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(125,211,252,0.4);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(220,235,255,0.9);
  line-height: 1.8;
  margin-bottom: 36px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-item strong {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.stat-item span {
  font-size: 12px;
  color: rgba(200,220,255,0.8);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.25);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}

/* Hero visual cards */
.hero-visual {
  flex-shrink: 0;
  width: 320px;
  position: relative;
  height: 320px;
}

.visual-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.vc-1 { top: 0; left: 0; animation-delay: 0s; }
.vc-2 { top: 40%; right: 0; animation-delay: 2s; }
.vc-3 { bottom: 0; left: 20%; animation-delay: 4s; }

.vc-icon { font-size: 28px; }
.vc-text { font-size: 13px; line-height: 1.4; color: var(--text); }
.vc-text strong { display: block; font-weight: 700; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== FORM CONTAINER ===== */
.form-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* Progress Bar */
.progress-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.progress-steps {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  overflow-x: auto;
  gap: 0;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.prog-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  transition: var(--transition);
}

.prog-step.active .prog-dot,
.prog-step.completed .prog-dot {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
}

.prog-step.completed .prog-dot {
  background: var(--success);
  border-color: var(--success);
}

.prog-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.prog-step.active .prog-label,
.prog-step.completed .prog-label {
  color: var(--primary-light);
  font-weight: 600;
}

.prog-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
  transition: var(--transition);
  min-width: 20px;
}

.prog-line.completed { background: var(--primary-light); }

.progress-bar-track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Form Steps */
.form-step {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: none;
  animation: stepIn 0.3s ease;
}

.form-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Step Header */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light);
}

.step-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.step-subtitle { font-size: 14px; color: var(--text-muted); }

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field-full { grid-column: 1 / -1; }

/* Field Groups */
.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}

.field-label.required::after {
  content: ' *';
  color: var(--danger);
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.field-input::placeholder { color: var(--text-light); }

.field-input.error { border-color: var(--danger); background: var(--danger-light); }

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
  display: none;
}
.field-error.visible { display: block; }

.field-hint { font-size: 12px; color: var(--text-muted); }

/* Input with icon */
.input-with-icon { position: relative; }
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-with-icon .field-input { padding-left: 38px; }

/* Photo Upload */
.photo-upload-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
}

.photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.btn-upload-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-upload-photo:hover { border-color: var(--primary-light); color: var(--primary-light); background: #eff6ff; }

.photo-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Dynamic Sections */
.dynamic-section {
  margin-top: 28px;
}

.dynamic-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dynamic-title { font-size: 15px; font-weight: 700; color: var(--primary); }

.btn-add-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--primary-light);
  border: 1.5px solid #bfdbfe;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-entry:hover { background: #dbeafe; }

.dynamic-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.entry-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-remove-entry {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-remove-entry:hover { background: var(--danger); color: white; }

/* Section Divider */
.section-divider {
  text-align: center;
  position: relative;
  margin: 28px 0 20px;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  position: relative;
  background: white;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Radio Groups */
.radio-group-inline { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

/* Checkbox inline */
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}
.mt-1 { margin-top: 6px; }

/* Idiomas grid */
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Skills Section */
.skills-section { margin-top: 4px; }
.section-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-tag {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.skill-tag:hover { border-color: var(--primary-light); color: var(--primary-light); }
.skill-tag.selected {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
}
.skill-tag.custom-skill {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.skill-tag.custom-skill.selected {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 28px; }

/* Personality Questions */
.personality-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #1d4ed8;
  line-height: 1.5;
}

.personality-questions { display: flex; flex-direction: column; gap: 20px; }

.pq-item {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.pq-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pq-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-light);
  opacity: 0.6;
  letter-spacing: 1px;
  white-space: nowrap;
  padding-top: 2px;
}

.pq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: default;
  line-height: 1.4;
}

.pq-question.required::after {
  content: ' *';
  color: var(--danger);
}

.pq-textarea { background: white; }

.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  margin-bottom: 8px;
}

.upload-zone:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
}

.upload-zone.file-selected {
  border-color: var(--success);
  background: #f0fdf4;
}

.upload-icon { margin-bottom: 16px; }

.upload-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.upload-text span { font-size: 14px; color: var(--text-muted); }

.upload-formats {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.upload-file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  background: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* Docs optional */
.docs-optional {
  margin-top: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.field-input-file {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
}

/* Summary Box */
.summary-box {
  margin-top: 28px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.summary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); font-weight: 500; }
.summary-value { color: var(--text); font-weight: 600; text-align: right; max-width: 60%; }

/* ===== POLÍTICA DE DATOS 1581 ===== */
.politica-1581-box {
  margin-top: 28px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.politica-1581-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.politica-1581-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.politica-1581-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.politica-1581-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.politica-1581-texto {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.politica-1581-lista {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.politica-1581-lista li {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.politica-1581-lista li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.politica-aceptacion {
  background: white;
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 12px;
}

.politica-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.politica-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--primary-light);
  cursor: pointer;
}

.politica-check-texto {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.politica-check-texto strong {
  color: var(--primary);
}

.politica-check-texto .ley-link {
  color: var(--primary-light);
  text-decoration: underline;
  cursor: pointer;
}

.politica-aceptacion .field-error {
  margin-top: 8px;
  padding-left: 32px;
}

/* Privacy */
.privacy-section { margin-top: 24px; }

.checkbox-privacy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-light);
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-text { font-size: 13px; color: var(--text-muted); }
.privacy-link { color: var(--primary-light); text-decoration: underline; }

/* Navigation */
.form-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
}

.btn-prev {
  background: white;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-prev:hover { background: var(--bg); color: var(--text); }

.btn-next {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-next:hover { box-shadow: 0 6px 20px rgba(37,99,235,0.4); transform: translateY(-1px); }

.btn-submit {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.btn-submit:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.4); transform: translateY(-1px); }

.step-indicator-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Success Screen */
.success-screen {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.success-animation {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
}

.checkmark-anim {
  width: 80px;
  height: 80px;
  animation: scaleIn 0.5s ease;
}

.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeDraw 0.6s ease 0.1s forwards;
}

.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: strokeDraw 0.4s ease 0.6s forwards;
}

@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.success-msg {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.success-code {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 15px;
  color: var(--success);
  margin-bottom: 8px;
}

.success-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn-back-home {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.loading-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content p { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.loading-content small { color: var(--text-muted); }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--primary); }

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.modal-body h4 { font-weight: 700; margin: 16px 0 6px; color: var(--primary); }
.modal-body ul { padding-left: 20px; }
.modal-body li { margin-bottom: 4px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.btn-modal-accept {
  background: var(--primary-light);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 20px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 40px 20px; min-height: auto; }
  .hero-visual { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .form-step { padding: 24px 20px; }
  .progress-steps { gap: 2px; }
  .prog-label { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .form-navigation { flex-wrap: wrap; }
  .step-indicator-text { order: -1; width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .progress-wrapper { padding: 20px 16px 14px; }
  .form-container { padding: 16px 12px 40px; }
  .upload-zone { padding: 32px 20px; }
  .success-content { padding: 40px 24px; }
}
