/* STYLE.CSS — Accountant Resume Builder & Salary Funnel (Light Theme) */

/* ==========================================
   1. VARIABLES & SYSTEM DEFAULTS (LIGHT THEME)
   ========================================== */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Web App Palette (Clean Professional Light Theme) */
  --bg-app: #f4f6f9;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.08);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.1);
  
  --warning: #d97706; 
  --warning-glow: rgba(245, 158, 11, 0.1);
  
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.08);
  
  /* Resume Document Palette (Preserved for print template) */
  --doc-bg-dark: #111111;
  --doc-bg-light: #ffffff;
  --doc-primary-blue: #1c3d5a;
  --doc-text-dark: #222222;
  --doc-text-light: #ffffff;
  --doc-text-muted: #555555;
  --doc-timeline-dot: #1c3d5a;
  --doc-timeline-line: #cbd5e1;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-top: 110px; /* Space for brand header + sticky banner */
}

/* ==========================================
   2. OPTIMIZED UNIFIED STICKY HEADER
   ========================================== */
.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  font-size: 24px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--doc-primary-blue);
  letter-spacing: -0.5px;
}

/* Pulsing Certified CTA Pill */
.sticky-header-cta-pill {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease;
}

.sticky-header-cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.sticky-header-cta-pill::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #d97706, #b45309);
  z-index: -1;
  opacity: 0.5;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06, 1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* Language selector */
.lang-toggle-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--border-card);
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Responsive Stacking for Header on Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 125px; /* Fit stacked header */
  }
  .top-nav-bar {
    height: auto;
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }
  .nav-brand {
    width: 100%;
    justify-content: flex-start;
  }
  .sticky-header-cta-pill {
    width: 100%;
    text-align: center;
    order: 3;
    font-size: 12px;
    padding: 8px 10px;
    justify-content: center;
  }
  .lang-toggle-group {
    position: absolute;
    right: 15px;
    top: 10px;
  }
  
  /* Prevent horizontal scrolling and layout stretch */
  .main-layout, .wizard-section, .card, .wizard-steps, .wizard-step {
    min-width: 0 !important;
  }
  
  .card {
    padding: 20px 15px !important;
  }
  
  .action-buttons-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .landing-content h1 {
    font-size: 22px !important;
  }
  
  .seo-faq-section h3 {
    font-size: 18px !important;
  }
  
  .comparison-table {
    min-width: 500px !important;
  }
}

/* ==========================================
   3. APP CONTAINER & LAYOUTS
   ========================================== */
.app-container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 0 60px 0;
}

.main-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
  transition: all 0.3s ease;
}

.main-layout.landing-active {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   4. SHARABLE CARDS & FORMS
   ========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-number-icon {
  font-size: 24px;
}

.step-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--doc-primary-blue);
}

.step-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-vertical-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 30px; }

/* Photo upload controls */
.photo-upload-group {
  background: #f8fafc;
  border: 1px dashed var(--border-card);
  padding: 16px;
  border-radius: 8px;
}

.photo-upload-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.photo-preview-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
}

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

.photo-file-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-input-hidden {
  display: none;
}

/* Stepper Progress Bar */
.wizard-progress-bar-wrapper {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   5. WIZARD STEP & ANIMATIONS
   ========================================== */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepFadeIn 0.4s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-nav {
  min-width: 120px;
}

/* Support footer */
.support-footer {
  text-align: center;
  margin-top: 25px;
  border-top: 1px solid var(--border-card);
  padding-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

.support-footer p {
  color: var(--text-muted);
}

/* ==========================================
   6. LANDING PAGE & ILLUSTRATIONS
   ========================================== */
.landing-content {
  text-align: center;
  padding: 10px 0;
}

.header-badge {
  display: inline-block;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.landing-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--doc-primary-blue);
  line-height: 1.25;
  margin-bottom: 12px;
}

.landing-content .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.landing-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Certificate Mock */
.landing-illustration {
  position: relative;
  width: 280px;
  height: 180px;
  margin: 0 auto 30px auto;
}

.ill-resume-mock {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 180px;
  height: 150px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.ill-line-large { height: 6px; background: #e2e8f0; border-radius: 3px; width: 80%; }
.ill-line-medium { height: 4px; background: #f1f5f9; border-radius: 2px; width: 60%; }
.ill-line-small { height: 4px; background: #f1f5f9; border-radius: 2px; width: 40%; }
.ill-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ill-circle { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; }
.ill-lines-group { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ill-line-tiny { height: 4px; background: #f1f5f9; border-radius: 2px; }

.ill-cert-mock {
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 200px;
  height: 130px;
  background: white;
  border: 2px solid #b45309; 
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(180, 83, 9, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: rotate(3deg);
}

.ill-cert-seal {
  font-size: 24px;
  margin-bottom: 6px;
}

.ill-cert-title {
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.5px;
  text-align: center;
}

.ill-cert-line {
  height: 2px;
  background: #f1f5f9;
  width: 70%;
  margin-top: 10px;
}

/* ==========================================
   7. SEO/GEO COMPARISON TABLE & FAQ
   ========================================== */
/* GEO Table */
.geo-comparison-section {
  margin-top: 50px;
  text-align: left;
}

.geo-comparison-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--doc-primary-blue);
  margin-bottom: 15px;
  text-align: center;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: white;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  min-width: 600px;
}

.comparison-table th {
  background: #f8fafc;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px;
  border-bottom: 2px solid var(--border-card);
}

.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.feat-col {
  font-weight: 600;
  color: var(--doc-primary-blue) !important;
  background: #f8fafc;
  width: 25%;
}

.danger-col {
  color: var(--danger) !important;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.02);
}

.success-col {
  color: var(--success) !important;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.02);
}

/* SEO FAQs */
.seo-faq-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-card);
  text-align: left;
}

.seo-faq-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--doc-primary-blue);
  margin-bottom: 15px;
  text-align: center;
}

.faq-item-card {
  margin-bottom: 12px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  color: var(--text-main);
  user-select: none;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1); /* Smooth slide accordion */
  font-size: 13.5px;
  color: var(--text-muted);
}

.faq-answer p {
  padding: 14px 0;
}

/* Active FAQ states toggled by JS */
.faq-item-card.active {
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-item-card.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item-card.active .faq-answer {
  max-height: 1000px;
  transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================
   8. SKILLS CHECKLISTS
   ========================================== */
.skills-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-checkbox-card:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.skill-checkbox-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-checkbox-card input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.skill-checkbox-card input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.skill-card-body {
  flex: 1;
}

.skill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.skill-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--doc-primary-blue);
}

.salary-impact {
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.skill-checkbox-card input[type="checkbox"]:checked ~ .skill-card-body .salary-impact {
  display: none;
}

.skill-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   9. RESULTS PAGE & ESTIMATOR GAUGE
   ========================================== */
.estimator-card {
  background: white;
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 24px;
}

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

.estimator-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--doc-primary-blue);
}

.skills-counter {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
}

.salary-display {
  text-align: center;
  margin-bottom: 20px;
}

.salary-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.salary-value {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--success);
  transition: all 0.4s ease;
}

.salary-value.reduced {
  color: var(--warning);
}

.salary-value.severely-reduced {
  color: var(--danger);
}

.gauge-wrapper {
  margin-bottom: 24px;
}

.gauge-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.gauge-progress {
  height: 100%;
  background: linear-gradient(to right, var(--danger), var(--warning), var(--success));
  border-radius: 5px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.warnings-header-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.funnel-warnings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border-card);
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.funnel-warnings::-webkit-scrollbar {
  width: 4px;
}
.funnel-warnings::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.warning-item {
  display: flex;
  gap: 10px;
  background: white;
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}

.warning-item-title {
  font-weight: 700;
  color: var(--warning);
}

.warning-item-body {
  color: var(--text-muted);
  margin-top: 2px;
}

.warning-deduction {
  font-weight: 800;
  color: var(--danger);
  white-space: nowrap;
}

.promo-box {
  background: #f8fafc;
  border: 1px solid var(--primary);
  padding: 16px;
  border-radius: 12px;
}

.promo-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

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

.promo-success {
  background: var(--success-glow);
  border: 1px solid var(--success);
  color: #065f46;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
}

.action-buttons-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr;
  gap: 16px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background: #059669;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border: 1px solid var(--border-card);
  color: var(--text-main);
  background: white;
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ==========================================
   10. RESUME PREVIEW (A4 SCREEN WRAPPER)
   ========================================== */
.preview-section {
  position: relative;
}

.preview-sticky-container {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-preview-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--doc-primary-blue);
}

.preview-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.resume-preview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  max-height: 80vh;
  padding: 10px;
  border: 1px solid var(--border-card);
  background: #cbd5e1; 
  border-radius: 12px;
}

.resume-document-page {
  width: 794px;
  height: 1123px;
  background: var(--doc-bg-light);
  color: var(--doc-text-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  position: relative;
  flex-shrink: 0;
}

/* Two columns inside preview */
.resume-left-col {
  width: 32%;
  background: var(--doc-bg-dark);
  color: var(--doc-text-light);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.resume-right-col {
  width: 68%;
  background: var(--doc-bg-light);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  position: relative; /* Crucial for absolute footer positioning */
}

/* Left sidebar elements */
.resume-photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.resume-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #444;
}

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

.small-photo {
  width: 100px;
  height: 100px;
}

.sidebar-page2-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--doc-text-light);
}

.sidebar-page2-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  color: #cbd5e1;
}

.resume-section-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.left-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  color: white;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  word-break: break-all;
}

.contact-icon {
  font-size: 12px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.sidebar-skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-skills-list li {
  font-size: 11px;
  position: relative;
  padding-left: 12px;
}

.sidebar-skills-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--warning);
}

.sidebar-skills-list strong {
  color: #93c5fd;
}

/* Right body elements */
.resume-header-block {
  border-bottom: 3px solid var(--doc-primary-blue);
  padding-bottom: 15px;
}

.resume-header-block h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--doc-primary-blue);
  line-height: 1.1;
  text-transform: uppercase;
}

.resume-header-block h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--doc-text-muted);
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.resume-section-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-section-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--doc-primary-blue);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  text-transform: uppercase;
}

#previewProfile {
  font-size: 11px;
  color: var(--doc-text-dark);
  text-align: justify;
}

.qual-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qual-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  position: relative;
  padding-left: 16px;
}

.qual-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--doc-primary-blue);
}

.qual-school {
  font-weight: 700;
  color: var(--doc-text-dark);
}

.qual-degree {
  color: var(--doc-text-muted);
  margin-top: 2px;
}

.qual-year {
  font-weight: 600;
  color: var(--doc-text-muted);
  white-space: nowrap;
}

.course-lead {
  font-size: 12px;
  color: var(--doc-text-dark);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 20px;
}

.timeline-line {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--doc-timeline-line);
}

.timeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-node {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--doc-timeline-dot);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--doc-timeline-dot);
}

.timeline-node-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--doc-primary-blue);
}

.timeline-node-desc {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-node-desc li {
  font-size: 10.5px;
  color: var(--doc-text-muted);
  position: relative;
  padding-left: 10px;
}

.timeline-node-desc li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--doc-text-muted);
}

.page-2-timeline {
  margin-top: 0;
}

/* Page 2 printed footer text layout */
.resume-footer-text {
  position: absolute;
  bottom: 20px;
  right: 40px;
  font-size: 8px;
  color: var(--doc-text-muted);
  font-style: italic;
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  width: calc(100% - 80px);
  text-align: right;
  font-family: var(--font-body);
}

/* ==========================================
   11. GUIDE MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal {
  background: white;
  border: 1px solid var(--border-card);
  width: 90%;
  max-width: 550px;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-main);
}

@keyframes modalEnter {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--doc-primary-blue);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  font-size: 14px;
}

.modal-body p {
  margin-bottom: 12px;
}

.guide-steps {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.guide-steps li {
  margin-bottom: 4px;
}

.guide-steps ul {
  margin-left: 20px;
  margin-top: 4px;
  list-style-type: circle;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.text-success { color: var(--success); }

/* ==========================================
   12. PRINT MEDIA STYLES (A4)
   ========================================== */
@media print {
  html, body {
    background: none !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  .top-nav-bar,
  .wizard-section,
  .modal-overlay,
  .resume-preview-header,
  header,
  footer {
    display: none !important;
  }

  .app-container,
  .main-layout,
  .preview-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
  }

  .resume-preview-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
    display: block !important;
    overflow: visible !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .resume-document-page {
    width: 210mm !important;
    height: 296mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    display: flex !important;
    float: none !important;
  }

  #resumePage2 {
    page-break-after: avoid !important;
  }

  .resume-left-col {
    width: 32% !important;
    background: #111111 !important;
    color: #ffffff !important;
    padding: 40px 24px !important;
    box-sizing: border-box !important;
  }

  .resume-right-col {
    width: 68% !important;
    background: #ffffff !important;
    color: #222222 !important;
    padding: 50px 40px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================
   12. PDF GENERATION STYLING OVERRIDES
   ========================================== */
body.generating-pdf .resume-preview-container {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  gap: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 210mm !important;
}

body.generating-pdf .resume-document-page {
  box-shadow: none !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  width: 210mm !important;
  height: 296.8mm !important;
  page-break-after: always !important;
  page-break-inside: avoid !important;
  display: flex !important;
}

body.generating-pdf #resumePage2 {
  page-break-after: avoid !important;
}

