@import url('tokens.css');

/* ===== GLOBAL ===== */
body {
  font-family: var(--font-primary, 'Inter', sans-serif);
  color: var(--color-text, #222);
  background: var(--bg-page, #f5f6fa);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--color-primary, #0B1E75); }

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 99;
  flex-wrap: wrap;
}
nav .navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .navbar-logo img {
  height: 34px;
  width: auto;
}
nav .navbar-logo span {
  font-weight: 600;
  color: #0b1e75;
  font-size: 1.15rem;
}
nav .navbar-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
nav .navbar-links a {
  color: #0b1e75;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
nav .navbar-links a:hover { color: #2563EB; }
nav .navbar-links .contact-btn {
  background: linear-gradient(90deg, #2563EB, #0B1E75);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
  transition: all 0.25s ease;
}
nav .navbar-links .contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
@media (max-width: 768px) {
  nav { justify-content: center; padding: 12px 4%; }
  nav .navbar-links { flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 10px; }
}

/* ===== HERO ===== */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 90px 10%;
  background: linear-gradient(135deg, #eef3ff 0%, #f8fafc 100%);
  gap: 40px;
}
.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 520px;
}
.hero-content h1 {
  font-size: 40px;
  line-height: 1.2;
  color: #0B1E75;
  margin-bottom: 16px;
}
.hero-content p {
  color: #555;
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563EB, #0B1E75);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,99,235,0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,99,235,0.3);
}
.hero-image {
  flex: 1;
  min-width: 300px;
  max-width: 420px;
  background: linear-gradient(135deg, #f9faff 0%, #e9eefb 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(11,30,117,0.08);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 48px rgba(11,30,117,0.15);
}
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Prevent hero button overlap and mobile cutoff */
@media (max-width: 900px) {
  .hero-section { flex-direction: column; align-items: center; text-align: center; padding: 70px 6%; }
  .hero-content h1 { font-size: 32px; }
  .hero-btn { display: inline-block; margin: 10px auto; width: auto; }
  .hero-image { margin-top: 24px; max-width: 340px; }
}

/* ===== FORM CARD ===== */
.form-section {
  background: #f5f6fa;
  padding: 90px 16px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: hidden;
}

.form-card {
  background: #fff;
  max-width: 820px;
  width: 100%;
  padding: 48px 56px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(11, 30, 117, 0.08);
  box-sizing: border-box;
}

.form-card h2 {
  text-align: center;
  font-size: 24px;
  margin-top: 0;
}

.form-subtext {
  text-align: center;
  color: #666;
  margin-bottom: 36px;
  font-size: 14px;
}

.form-step-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #0B1E75;
  border-bottom: 2px solid #e9ecf5;
  padding-bottom: 4px;
}

/* =====================================================
   🔧 PRIVATE FIELDS POLISH — EVEN SPACING + VISUAL BALANCE
   ===================================================== */

/* General field block spacing consistency */
.form-card .field-block {
  margin-bottom: 28px;
  position: relative;
}

/* Progress line alignment fix for all input types */
.progress-field {
  position: relative;
  margin-top: 6px;
  height: 16px;
}

.progress-field small {
  position: absolute;
  right: 6px;
  top: -2px;
  font-size: 11px;
  color: #6b7280;
}

.progress-line {
  height: 3px;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #9cb8ff, #2563eb);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Even spacing for row pairs (Email/Phone, Lang/Hobby) */
.row.half-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.row.half-pair .half {
  flex: 1 1 48%;
  min-width: 220px;
}

/* Fix single-row spacing */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.row .half {
  flex: 1 1 calc(50% - 10px);
  min-width: 260px;
}

/* ======================================================
   🏷️ FIELD LABEL — Enforced Contrast & Layer Priority Fix
   ====================================================== */
.form-card .field-label,
.field-block .field-label,
.tone-theme-section .field-label {
  display: block;
  font-weight: 600;
  color: #1f2937 !important; /* ✅ Stronger gray-blue with forced priority */
  margin-bottom: 6px;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

/* Subtle highlight when input is active */
input:focus ~ .field-label,
textarea:focus ~ .field-label,
select:focus ~ .field-label {
  color: #0b1e75 !important;
}

/* Input fields — soft gradient and rounded edges */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: linear-gradient(135deg, #f9fbff 0%, #eef3ff 100%);
  border: 1.5px solid #d8def0;
  border-radius: 10px;
  color: #111827; /* darker text for clarity */
  box-shadow:
    inset 0 1px 3px rgba(11, 30, 117, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* Focus highlight — stay consistent & soft (no white flash) */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: linear-gradient(135deg, #f8fbff 0%, #edf2ff 100%); /* slightly tinted */
  border-color: #0b1e75; /* deep blue like logo */
  box-shadow:
    0 0 0 3px rgba(11, 30, 117, 0.15),
    inset 0 1px 3px rgba(11, 30, 117, 0.1);
  color: #0f172a; /* keeps text visible */
}

/* Placeholder tone — unified, readable */
::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}
/* ======================================================
   🩵 AI NEURAL GLOW — Gradient Pulse Animation
   ====================================================== */
@keyframes aiNeuralGlow {
  0% {
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    border-color: #2563EB;
  }
  33% {
    box-shadow: 0 0 10px rgba(91, 33, 182, 0.35);
    border-color: #6d28d9;
  }
  66% {
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.35);
    border-color: #9333ea;
  }
  100% {
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    border-color: #2563EB;
  }
}

/* Apply AI glow when typing */
input:focus:not(:placeholder-shown),
textarea:focus:not(:placeholder-shown) {
  animation: aiNeuralGlow 3s ease-in-out infinite;
}

/* ======================================================
   📊 PROGRESS LINE — Perfectly Unified for Input + Textarea
   ====================================================== */
.progress-field {
  position: relative;
  height: 8px; /* slightly slimmer for a refined look */
  margin-top: -4px;
  padding-bottom: 6px;
  box-sizing: border-box;
}

/* Dynamic progressive line — refined thickness + deep blue */
.progress-line {
  height: 1px; /* ✅ thinner, elegant professional line */
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #0B1E75, #2563EB, #0B1E75); /* Deep royal blue gradient */
  background-size: 200% 100%;
  animation: progressColorFlow 8s ease infinite;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Subtle, classy shimmer animation */
@keyframes progressColorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Character counter — unchanged alignment */
.progress-field small {
  position: absolute;
  right: 6px;
  top: -10px;
  font-size: 11px;
  color: #6b7280;
  pointer-events: none;
}

/* ======================================================
   🧠 TEXTAREA REFINEMENT — Consistent spacing and bar alignment
   ====================================================== */
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  padding: 14px;
  font-size: 15px;
  box-sizing: border-box;
}

/* When textarea has progress line below it */
textarea + .progress-field {
  margin-top: -6px;
}

/* 🌙 Dark Mode Harmony */
@media (prefers-color-scheme: dark) {
  .progress-line {
    background: linear-gradient(90deg, #1d4ed8, #2563eb, #1d4ed8);
  }

  .progress-field small {
    color: #94a3b8;
  }

  textarea {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    border: 1.5px solid #334155;
  }
}

/* ======================================================
   🧠 TEXTAREA REFINEMENT — Consistent spacing and bar alignment
   ====================================================== */
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  padding: 14px;
  font-size: 15px;
  box-sizing: border-box;
}

/* When textarea has progress line below it */
textarea + .progress-field {
  margin-top: -6px; /* ✅ brings progress line closer */
}

/* 🌙 Dark Mode Harmony */
@media (prefers-color-scheme: dark) {
  .progress-line {
    background: linear-gradient(90deg, #60a5fa, #8b5cf6, #a855f7, #60a5fa);
  }

  .progress-field small {
    color: #94a3b8;
  }

  textarea {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    border: 1.5px solid #334155;
  }
}

/* ======================================================
   🌙 DARK MODE — Synced Neon Pulse
   ====================================================== */
@media (prefers-color-scheme: dark) {
  input,
  textarea,
  select {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    border: 1.5px solid #334155;
  }

  ::placeholder {
    color: #94a3b8;
  }

  .field-label {
    color: #cbd5e1;
  }

  @keyframes aiNeuralGlowDark {
    0% { box-shadow: 0 0 10px rgba(37, 99, 235, 0.4); border-color: #2563EB; }
    33% { box-shadow: 0 0 12px rgba(91, 33, 182, 0.45); border-color: #6d28d9; }
    66% { box-shadow: 0 0 12px rgba(147, 51, 234, 0.45); border-color: #9333ea; }
    100% { box-shadow: 0 0 10px rgba(37, 99, 235, 0.4); border-color: #2563EB; }
  }

  input:focus:not(:placeholder-shown),
  textarea:focus:not(:placeholder-shown) {
    animation: aiNeuralGlowDark 3s ease-in-out infinite;
  }

  .progress-line {
    background: linear-gradient(90deg, #60a5fa, #8b5cf6, #a855f7, #60a5fa);
  }
}

/* ======================================================
   🖤 TONE & THEME — Premium Black Panel with Off-White Text
   ====================================================== */
select#tone,
select#theme {
  background: #0b0b0b; /* ✅ solid matte black background */
  border: 1.5px solid #1f2937; /* subtle border for definition */
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #f3f4f6; /* ✅ light gray text (off-white) */
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  appearance: none;
  background-image: linear-gradient(to bottom, #f3f4f6 40%, transparent 60%);
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  margin-top: 8px;
  margin-bottom: 20px;
}

/* Focus effect — subtle electric blue edge */
select#tone:focus,
select#theme:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.2),
    0 4px 12px rgba(37, 99, 235, 0.15);
  background: #111;
  color: #ffffff;
}

/* Labels — clean contrast */
.field-label[for="tone"],
.field-label[for="theme"] {
  font-weight: 700;
  color: #111111; /* pure black for clarity */
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

/* Dark mode adjustment — retain contrast */
@media (prefers-color-scheme: dark) {
  select#tone,
  select#theme {
    background: #111;
    border-color: #374151;
    color: #e5e7eb;
  }
  .field-label[for="tone"],
  .field-label[for="theme"] {
    color: #f9fafb;
  }
}

/* Mobile layout fix */
@media (max-width: 900px) {
  .row {
    flex-direction: column;
    gap: 14px;
  }

  .row .half {
    width: 100%;
    min-width: 100%;
  }

  .tone-theme-section {
    padding: 20px 16px;
    margin-top: 30px;
  }
}
/* ===== BUTTON ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563EB, #0B1E75);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 8px 30px rgba(37,99,235,0.12);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,99,235,0.25);
}

/* ===== WHY RESUMASTER AI ===== */
.features-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f6fa 100%);
  padding: 100px 8%;
  text-align: center;
  border-top: 1px solid rgba(11,30,117,0.08);
}
.features-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0B1E75;
  margin-bottom: 8px;
}
.features-sub {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  padding: 26px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(11,30,117,0.06);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11,30,117,0.12);
}
.feature-card h3 {
  color: #0B1E75;
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}
.feature-card p {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 768px) {
  .features-section { padding: 70px 6%; }
  .features-grid { gap: 20px; }
}

/* ===============================================
   FIELD PROGRESS BAR (Typing Character Indicator)
   =============================================== */
.progress-field {
  position: relative;
  height: 18px;
  margin-top: 6px;
}

.progress-field small {
  position: absolute;
  right: 8px;
  top: -2px;
  font-size: 11px;
  color: #6b7280;
}

.progress-line {
  height: 3px;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #9cb8ff, #2563eb);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.25);
}

/* ===============================================
   🌟 INTELLIGENT PROGRESS BAR SHIMMER ANIMATION
   =============================================== */

/* Add a soft gradient overlay to the progress bar */
.progress-line {
  position: relative;
  overflow: hidden;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(90deg, #9cb8ff, #2563eb);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animated shimmer overlay */
.progress-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmerMove 2.2s infinite linear;
  opacity: 0; /* inactive until typing */
}

/* When field is active (typing), shimmer turns on */
input:focus + .progress-field .progress-line::after,
textarea:focus + .progress-field .progress-line::after {
  opacity: 1;
}

/* Smooth shimmer movement */
@keyframes shimmerMove {
  0% {
    left: -50%;
  }
  100% {
    left: 120%;
  }
}

/* Optional: Dim shimmer on mobile for battery performance */
@media (max-width: 768px) {
  .progress-line::after {
    opacity: 0.7;
    animation-duration: 2.8s;
  }
}
/* Optional: glow effect when nearing limit */
.progress-line[data-progress='high'] {
  background: linear-gradient(90deg, #2563eb, #0b1e75);
  box-shadow: 0 0 8px rgba(11, 30, 117, 0.35);
}
/* ===========================================
   🔧 RESPONSIVE FIXES: Mobile width alignment
   =========================================== */

/* 1️⃣ Global rule to prevent horizontal scroll or right gap */
html, body {
  width: 100%;
  overflow-x: hidden !important;
}

/* 2️⃣ Ensure hero and form sections never exceed viewport */
.hero-section,
.form-section {
  max-width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 3️⃣ Fix Start Building Your Resume button overflow */
.hero-btn {
  width: 100%;
  max-width: 420px;
  display: block;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  white-space: normal;
}

/* 4️⃣ Fix mockup alignment (center + responsive scaling) */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-image img {
  max-width: 100%;
  height: auto;
}

/* 5️⃣ Extra mobile tuning */
@media (max-width: 768px) {
  nav, .hero-section, .form-section {
    padding-left: 4%;
    padding-right: 4%;
  }
  .hero-content, .hero-image {
    width: 100%;
  }
  .hero-btn {
    font-size: 15px;
    padding: 14px 18px;
  }
}

.help-text {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 6px;
}
/* ============================
   📱 MOBILE VIEW POLISH — FORM WIDTH FIX
   ============================ */
@media (max-width: 768px) {

  /* Slightly reduce overall form padding for tighter mobile layout */
  .form-card {
    padding: 32px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(11, 30, 117, 0.06);
  }

  /* Make input, textarea, select fully stretch inside form */
  input, textarea, select {
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    font-size: 15px;
  }

  /* Keep fields visually separated */
  .field-block {
    margin-bottom: 24px;
  }

  /* Fix half-row pairs like Email/Phone, Languages/Hobbies */
  .row.half-pair {
    flex-direction: column;
    gap: 14px;
  }
  .row.half-pair .half {
    width: 100%;
    min-width: 100%;
  }

  /* Center headings for a cleaner mobile look */
  .form-card h2,
  .form-step-title {
    text-align: center;
  }

  /* Tweak progress bar text size for small screens */
  .progress-field small {
    font-size: 10.5px;
  }

  /* Button width fix */
  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 10px;
    font-size: 16px;
  }
}

/* ==========================================
   💫 AI FIELD GLOW EFFECT — PREMIUM POLISH
   ========================================== */

/* Default state (unchanged) */
input, textarea, select {
  transition: all 0.25s ease;
}

/* Glow when focused */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2563EB;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.15),   /* soft blue outer halo */
    0 0 8px rgba(11, 30, 117, 0.15);     /* deeper royal tone inner glow */
}

/* Slight hover lift for interactivity */
input:hover, textarea:hover, select:hover {
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(11, 30, 117, 0.08);
}

/* Button hover synergy with field focus */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

/* On mobile, reduce glow intensity slightly */
@media (max-width: 768px) {
  input:focus, textarea:focus, select:focus {
    box-shadow:
      0 0 0 2px rgba(37, 99, 235, 0.12),
      0 0 6px rgba(11, 30, 117, 0.1);
  }
}
/* ======================================================
   🪶 PLACEHOLDER TEXT POLISH — RESUMASTER AI EDITION
   ====================================================== */

/* Default placeholder appearance */
::placeholder {
  color: #94a3b8;            /* soft gray-blue tone */
  font-weight: 500;          /* slightly bolder for readability */
  letter-spacing: 0.2px;     /* clean, modern spacing */
  opacity: 1;                /* ensures uniform tone across browsers */
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* Focused input — lighter placeholder tone (AI glow effect harmony) */
input:focus::placeholder,
textarea:focus::placeholder,
select:focus::placeholder {
  color: #cbd5e1;            /* subtle fade for "field awakening" feel */
  opacity: 0.9;
}

/* Hover soft fade (optional, gives polished interactivity) */
input:hover::placeholder,
textarea:hover::placeholder {
  color: #a5b4fc;            /* soft bluish tint when hovering */
}

/* Cross-browser compatibility */
::-webkit-input-placeholder { color: #94a3b8; font-weight: 500; letter-spacing: 0.2px; }
:-ms-input-placeholder { color: #94a3b8; font-weight: 500; letter-spacing: 0.2px; }
::-ms-input-placeholder { color: #94a3b8; font-weight: 500; letter-spacing: 0.2px; }

/* Responsive tweak — slightly larger placeholder on small screens */
@media (max-width: 600px) {
  ::placeholder {
    font-size: 15px;
    letter-spacing: 0.3px;
  }
}

/* ======================================================
   ✨ PLACEHOLDER TEXT — Unified across all input types
   ====================================================== */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #9ca3af !important; /* soft gray to match design */
  opacity: 1 !important;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1px;
}

/* For WebKit browsers (Chrome, Safari, mobile) */
::-webkit-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* For Firefox */
::-moz-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* For Edge / IE */
:-ms-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* For legacy Edge */
::-ms-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
/* ======================================================
   🩶 FORM TEXT VISIBILITY FIX — Ensure Non-Input Text Matches Theme
   ====================================================== */

/* Applies only inside the form card */
.form-card,
.form-section,
.form-step-title,
.form-card h3,
.form-card p {
  color: #1e293b !important; /* deep slate text — same as labels */
}

/* Keep secondary helper text (like “describe your summary”) softer but visible */
.form-card small,
.form-card .helper-text {
  color: #475569 !important; /* medium gray-blue for secondary info */
}

/* Headings like 'Personal Details' or 'Career Details' stay strong */
.form-step-title {
  color: #0b1e75 !important; /* your brand deep blue */
  font-weight: 700;
}

/* Force all field labels to match new tone globally */
.field-label { color: #1f2937 !important; }


.badge-retry {
  background: #fef9c3;
  color: #92400e;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.badge-retry:hover {
  background: #fde68a;
}

.credits-card {
  background: #e0f2fe;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: #0c4a6e;
  font-weight: 600;
  display: inline-block;
}

/* =========================
   EXECUTIVE EDGE — Polished
   ========================= */
.exec-edge {
  --bg: #ffffff;
  --accent: #2563eb;
  --dark: #0b1e75;
  --muted: #475569;
  --pill-bg: #eef2ff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--dark);
  max-width: 900px;
  margin: 28px auto;
  padding: 34px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(11,30,117,0.06);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.ee-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ee-name-block { flex: 1 1 auto; min-width: 220px; }

.ee-name {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: var(--dark);
}

.ee-role {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

/* Contact pills */
.ee-contact { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.ee-contact a { color: inherit; text-decoration: none; }
.ee-contact-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--pill-bg);
  color: var(--dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(11,30,117,0.04);
}

/* divider */
.ee-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 6%, var(--accent) 94%, transparent 100%);
  margin: 18px 0 22px;
}

/* Sections */
.ee-body { display:block; }
.ee-section { margin: 18px 0; }
.ee-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 10px 0;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.1px;
}
.ee-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0.95;
  transform-origin: left;
}

/* Content / text */
.ee-content { margin-top: 8px; }
.ee-paragraph { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Experience / Education items */
.ee-item { margin: 12px 0; padding-bottom: 6px; border-bottom: none; }
.ee-item-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.ee-item-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--dark); }
.ee-item-meta { text-align: right; min-width: 120px; color: var(--muted); font-size: 13px; line-height:1.2; }
.ee-company { display:block; margin-top:6px; color: var(--accent); font-weight:600; font-size:13px; }
.ee-duration { display:block; color: var(--muted); font-size:13px; }

/* Skills */
.ee-skill-list { display:flex; flex-wrap:wrap; gap:10px; margin: 8px 0 0; padding: 0; list-style: none; }
.ee-skill-pill {
  display:inline-block;
  background: #eef4ff;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(11,30,117,0.04);
}

/* Print friendliness */
@media print {
  .exec-edge { box-shadow:none; border-radius:0; margin:0; padding:18px; color:#000; }
  .ee-contact-pill { box-shadow:none; background:transparent; padding:0; color:#000; }
  a[href]:after { content: ""; } /* don't print URLs inline */
}

/* Responsive */
@media (max-width: 720px) {
  .exec-edge { padding:20px; margin:18px; }
  .ee-item-meta { text-align:left; width:100%; order:3; margin-top:6px; }
  .ee-item-header { flex-direction:column; align-items:flex-start; }
  .ee-contact { justify-content:flex-start; }
}

/*Tone and theme preview*/
.debug-theme-info {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  font-size: 12px;
  border-radius: 6px;
  z-index: 9999;
}
/* ======================================================
   PREVIEW — DOWNLOAD BUTTONS (ISOLATED & SAFE)
   ====================================================== */

.preview-actions .preview-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 14px;
  min-height: 34px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* PDF (primary) */
.preview-actions .preview-download-pdf {
  background: linear-gradient(90deg, #2563eb, #0b1e75);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

/* Word / Text (secondary) */
.preview-actions .preview-download-docx,
.preview-actions .preview-download-txt {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Hover */
.preview-actions .preview-download-btn:hover {
  transform: translateY(-1px);
}

/* Icon alignment */
.preview-actions .preview-download-btn span:first-child {
  font-size: 15px;
  display: flex;
  align-items: center;
}
/* =========================================
   UNIFIED BLUE — PDF / WORD / TEXT
   ========================================= */

/* Base for all download buttons */
.preview-actions .preview-download-btn {
  background: linear-gradient(90deg, #2563eb, #0b1e75);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.30);
}

/* Slight hierarchy (optional but nice) */
.preview-actions .preview-download-docx {
  opacity: 0.92;
}

.preview-actions .preview-download-txt {
  opacity: 0.88;
}

/* Hover polish */
.preview-actions .preview-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.45);
}
/* ======================================================
   PREVIEW ACTION BAR — CLEAN & ISOLATED
   ====================================================== */

/* Wrapper alignment (implicit via parent container) */
.preview-container {
  display: flex;
  flex-direction: column;
}

/* LEFT: Regenerate + Back */
.preview-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px;
}

/* Buttons (left actions) */
.btn-regenerate,
#btnBack {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-regenerate:hover,
#btnBack:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* RIGHT: Download buttons */
.preview-actions-downloads {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

/* Download button base */
.preview-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 14px;
  min-height: 34px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  background: linear-gradient(90deg, #2563eb, #0b1e75);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.30);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle hierarchy */
.preview-download-docx { opacity: 0.92; }
.preview-download-txt  { opacity: 0.88; }

/* Hover polish */
.preview-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.45);
}

/* Icon alignment */
.preview-download-btn span:first-child {
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* ===========================
   MOBILE STACKING
   =========================== */
@media (max-width: 768px) {
  .preview-actions,
  .preview-actions-downloads {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ================================
   TXT Download Toast (Preview only)
   ================================ */
.txt-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: #0b1e75;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(11, 30, 117, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.txt-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.tool-indicator-below {
  margin-top: 4px;
  font-size: 12px;
  color: #2563eb;
}

