/* ============================================================
   AMAAN HR SYSTEM — Candidate Form Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0f2744;
  --navy-light:  #1a3a5c;
  --gold:        #c8a96e;
  --gold-light:  #e8c98e;
  --white:       #ffffff;
  --gray-bg:     #f8f9fa;
  --text-dark:   #212529;
  --text-muted:  #6c757d;
  --success:     #28a745;
  --error:       #dc3545;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(15,39,68,.08);
  --shadow-md:   0 6px 24px rgba(15,39,68,.13);
  --shadow-lg:   0 12px 40px rgba(15,39,68,.18);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Header / Logo ─────────────────────────────────────────── */
.app-header {
  background: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.logo {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-decoration: none;
  user-select: none;
}
.logo span { color: var(--white); font-weight: 300; font-size: 1rem; margin-left: 4px; }

.lang-switcher { display: flex; gap: 8px; }
.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(200,169,110,.35);
  color: var(--gold-light);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-wrapper {
  background: var(--navy-light);
  padding: 12px 24px 0;
  position: sticky;
  top: 57px;
  z-index: 99;
}
.progress-track {
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 0%;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 20px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: shimmer-progress 1.4s ease-in-out infinite;
}
@keyframes shimmer-progress {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}
.progress-label {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  text-align: right;
  padding: 5px 0 8px;
}

/* ── Main Container ────────────────────────────────────────── */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* ── Step Panel ────────────────────────────────────────────── */
.step {
  display: none;
  animation: stepIn .35s cubic-bezier(.4,0,.2,1) both;
}
.step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-18px); }
}
/* Loading state — hide all steps during init to prevent flash */
body.app-loading .step {
  display: none !important;
  animation: none !important;
}
body.app-loading .progress-wrapper {
  visibility: hidden;
}

.step.leaving {
  display: block;
  animation: stepOut .22s cubic-bezier(.4,0,.2,1) both;
  pointer-events: none;
}

/* ── Step Title ────────────────────────────────────────────── */
.step-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.step-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Cards (Branch / Position) ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,.08), transparent);
  opacity: 0;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.card:hover::before { opacity: 1; }
.card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(200,169,110,.1), rgba(200,169,110,.04));
  box-shadow: 0 0 0 3px rgba(200,169,110,.25);
}
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.card-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--navy);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.card.selected .card-check { opacity: 1; transform: scale(1); }

/* ── Job Description Box ───────────────────────────────────── */
.job-description-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
}
.job-description-box h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.job-description-box ul { padding-left: 20px; }
.job-description-box li { margin-bottom: 7px; font-size: .9rem; line-height: 1.55; color: var(--text-dark); }

/* ── Form Inputs ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .78rem;
  margin-left: 5px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dee2e6;
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,.2);
}
.form-input.error-field, .form-textarea.error-field {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,53,69,.15);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.form-input::placeholder, .form-textarea::placeholder { color: #adb5bd; }

/* AI-filled input style */
.form-input.ai-filled {
  border-color: var(--success);
  background: rgba(40,167,69,.04);
  animation: aiFillPulse .6s ease;
}
@keyframes aiFillPulse {
  0%  { box-shadow: 0 0 0 0 rgba(40,167,69,.4); }
  70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); }
  100%{ box-shadow: none; }
}

/* ── Error Messages ────────────────────────────────────────── */
.field-error {
  color: var(--error);
  font-size: .78rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-error::before { content: '⚠'; }

/* ── Gender Selector ───────────────────────────────────────── */
.gender-grid { display: flex; gap: 12px; }
.gender-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid #dee2e6;
  border-radius: var(--radius);
  background: var(--white);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition);
}
.gender-btn:hover { border-color: var(--gold-light); color: var(--navy); }
.gender-btn.selected {
  border-color: var(--gold);
  background: rgba(200,169,110,.1);
  color: var(--navy);
  font-weight: 600;
}
.gender-btn .gender-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }

/* ── Photo Upload ──────────────────────────────────────────── */
.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 2px dashed #dee2e6;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.photo-upload-area:hover { border-color: var(--gold); background: rgba(200,169,110,.04); }
.photo-upload-area.has-photo { border-style: solid; border-color: var(--gold); }

.photo-preview-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  object-fit: cover;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.photo-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.photo-placeholder {
  font-size: 2.8rem;
  color: #adb5bd;
}
.photo-change-btn {
  background: var(--navy);
  color: var(--gold);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}
.photo-change-btn:hover { background: var(--navy-light); }

/* ── Resume Upload ─────────────────────────────────────────── */
.resume-upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.resume-upload-zone:hover, .resume-upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(200,169,110,.05);
}
.resume-upload-zone.has-file { border-style: solid; border-color: var(--success); }
.resume-icon { font-size: 2.5rem; margin-bottom: 12px; }
.resume-upload-text { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.resume-upload-text strong { color: var(--navy); }
.resume-filename {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--success);
  font-weight: 600;
}

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-field {
  height: 46px;
  margin-bottom: 16px;
  border-radius: var(--radius);
}
.skeleton-label {
  height: 14px;
  width: 35%;
  margin-bottom: 8px;
  border-radius: 4px;
}
.ai-parsing-overlay {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.ai-parsing-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-parsing-title .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(200,169,110,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-parsing-subtitle { font-size: .82rem; color: var(--text-muted); margin-bottom: 20px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}
.btn:active::after { background: rgba(255,255,255,.15); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(200,169,110,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid #dee2e6;
}
.btn-secondary:hover {
  border-color: var(--gold-light);
  background: rgba(200,169,110,.06);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: rgba(200,169,110,.1); }

.btn-danger {
  background: var(--error);
  color: var(--white);
}
.btn-danger:hover { background: #c82333; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 14px;
  font-size: .85rem;
}
.btn-ghost:hover { color: var(--navy); }

.btn-full { width: 100%; }

.btn:disabled {
  opacity: .55;
  pointer-events: none;
}

/* ── Nav Buttons ───────────────────────────────────────────── */
.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.nav-buttons .btn { flex: 1; }
.nav-buttons .btn-secondary { flex: 0 0 auto; min-width: 90px; }

/* ── Language Selection ────────────────────────────────────── */
.lang-select-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0;
}
.lang-option {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.lang-option:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.lang-option.selected { border-color: var(--gold); background: rgba(200,169,110,.07); }
.lang-flag { font-size: 2.2rem; }
.lang-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.lang-native { font-size: .82rem; color: var(--text-muted); }

/* ── Summary / Review ──────────────────────────────────────── */
.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--gray-bg);
}
.summary-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold-light);
}
.summary-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  border: 2.5px solid var(--gold-light);
}
.summary-name { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.summary-role { font-size: .85rem; color: var(--gold); font-weight: 500; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.summary-item {}
.summary-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.summary-value { font-size: .9rem; color: var(--text-dark); word-break: break-word; }

/* ── Source Radio ──────────────────────────────────────────── */
.source-options { display: flex; flex-direction: column; gap: 10px; }
.source-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid #dee2e6;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: .92rem;
}
.source-option:hover { border-color: var(--gold-light); }
.source-option.selected { border-color: var(--gold); background: rgba(200,169,110,.07); font-weight: 500; }
.source-option input[type="radio"] { accent-color: var(--gold); width: 17px; height: 17px; flex-shrink: 0; }

/* ── Success Screen ────────────────────────────────────────── */
.success-screen {
  display: none;
  text-align: center;
  padding: 48px 24px;
  animation: successIn .6s cubic-bezier(.34,1.56,.64,1) both;
}
.success-screen.visible { display: block; }
@keyframes successIn {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: bounceIn .7s cubic-bezier(.34,1.56,.64,1) both .2s;
}
@keyframes bounceIn {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.success-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.success-subtitle { color: var(--text-muted); font-size: .95rem; line-height: 1.6; max-width: 380px; margin: 0 auto 28px; }
.success-ref {
  background: var(--navy);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 28px;
  letter-spacing: .08em;
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,39,68,.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-icon { font-size: 2.8rem; text-align: center; margin-bottom: 14px; }
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 8px; }
.modal-body { color: var(--text-muted); font-size: .9rem; text-align: center; line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ── Toast / Inline Alerts ─────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: rgba(220,53,69,.1); color: var(--error); border: 1px solid rgba(220,53,69,.25); }
.alert-success { background: rgba(40,167,69,.1); color: var(--success); border: 1px solid rgba(40,167,69,.25); }
.alert-info { background: rgba(200,169,110,.1); color: #7a5c2e; border: 1px solid rgba(200,169,110,.3); }

/* ── Divider ───────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-muted); font-size: .8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #dee2e6; }

/* ── Loading Spinner Full ──────────────────────────────────── */
.loading-btn {
  pointer-events: none;
  opacity: .75;
}
.loading-btn .btn-text { opacity: 0; }
.loading-btn::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(15,39,68,.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Step indicator dots ───────────────────────────────────── */
.step-info {
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  padding-bottom: 8px;
}

/* ── Highlight for skip links ──────────────────────────────── */
.skip-link {
  color: var(--text-muted);
  font-size: .82rem;
  text-align: center;
  margin-top: 12px;
}
.skip-link a, .skip-link button {
  color: var(--gold);
  background: none;
  border: none;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── Checkbox ──────────────────────────────────────────────── */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
  accent-color: var(--gold);
  width: 17px; height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Phone input with prefix ───────────────────────────────── */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #dee2e6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.phone-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,.2);
}
.phone-prefix {
  padding: 12px 14px;
  background: var(--gray-bg);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  border-right: 1.5px solid #dee2e6;
  user-select: none;
  flex-shrink: 0;
}
.phone-input-wrap .form-input {
  border: none;
  box-shadow: none !important;
  border-radius: 0;
  flex: 1;
}
.phone-input-wrap .form-input:focus { border: none; box-shadow: none !important; }

/* ── Interest section ──────────────────────────────────────── */
.interest-section { margin-top: 20px; }
.interest-label { font-size: .9rem; color: var(--navy); font-weight: 600; margin-bottom: 10px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-container { padding: 20px 12px 56px; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .step-title { font-size: 1.25rem; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .app-header { padding: 12px 16px; }
  .logo { font-size: 1.3rem; }
  .lang-btn { padding: 4px 10px; font-size: .72rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .nav-buttons { flex-direction: column-reverse; }
  .nav-buttons .btn-secondary { width: 100%; }
  .btn { padding: 12px 20px; }
  .modal-card { padding: 24px 18px; }
  .lang-select-grid { margin: 20px 0; }
}
