/**
 * Candidate Portal & CV Submission Stylesheet
 * Theme: Recrute - Modern Recruitment Agency
 */

:root {
  --portal-primary: #4f46e5;
  --portal-primary-dark: #3730a3;
  --portal-primary-light: #e0e7ff;
  --portal-secondary: #7c3aed;
  --portal-accent: #f59e0b;
  --portal-accent-light: #fef3c7;
  --portal-success: #10b981;
  --portal-success-light: #d1fae5;
  --portal-danger: #ef4444;
  --portal-danger-light: #fee2e2;
  --portal-info: #0284c7;
  --portal-info-light: #e0f2fe;
  --portal-dark: #081120;
  --portal-dark-muted: #334155;
  --portal-gray-100: #f8fafc;
  --portal-gray-200: #e2e8f0;
  --portal-gray-300: #cbd5e1;
  --portal-gray-400: #94a3b8;
  --portal-gray-500: #64748b;
  --portal-radius: 16px;
  --portal-radius-sm: 8px;
  --portal-radius-lg: 24px;
  --portal-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --portal-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  --portal-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --portal-gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --portal-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --portal-gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --portal-gradient-badge: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* Base resets & typography */
.cv-page-wrapper {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* ==========================================================================
   TALENTFORGE BRAND LOGO (UNIVERSAL)
   ========================================================================== */
.tf-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  text-decoration: none !important;
  font-family: 'Figtree', Arial, Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #06284d !important;
}

.tf-logo.tf-logo-light {
  color: #ffffff !important;
}

.tf-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #06284d 0%, #0c4778 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(6, 40, 77, 0.15);
  flex-shrink: 0;
}

.tf-logo-light .tf-logo-mark {
  background: linear-gradient(135deg, #0b3764 0%, #1467b8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.tf-logo-mark::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 20px;
  background: #0062eb;
  border-radius: 90% 10% 90% 10%;
  transform: rotate(45deg);
  top: 3px;
  right: 5px;
  opacity: 0.9;
}

.tf-logo-mark span {
  position: relative;
  z-index: 2;
}

.tf-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-block;
}

.tf-logo-text b,
.tf-logo-text em {
  font-style: normal;
  color: #0062eb !important;
}

.tf-logo-light .tf-logo-text b,
.tf-logo-light .tf-logo-text em {
  color: #2684ff !important;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.cv-hero-section {
  position: relative;
  background: var(--portal-gradient-hero);
  color: #ffffff;
  padding: 90px 0 120px;
  overflow: hidden;
}

.cv-hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(79, 70, 229, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.cv-hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(234, 88, 12, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}

.cv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cv-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cv-hero-title .gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cv-hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 35px;
  font-weight: 400;
}

.cv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.cv-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--portal-gradient-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.cv-btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
  color: #ffffff !important;
}

.cv-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.cv-btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-3px);
}

.cv-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatUpDown 4s ease-in-out infinite;
}

.cv-floating-card.card-1 {
  top: 15%;
  left: -10px;
  animation-delay: 0s;
}

.cv-floating-card.card-2 {
  bottom: 12%;
  right: -10px;
  animation-delay: 2s;
}

.cv-floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.cv-floating-icon.icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cv-floating-icon.icon-green { background: linear-gradient(135deg, #10b981, #047857); }

.cv-floating-text h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.cv-floating-text p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

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

/* Trust Indicators Strip */
.cv-trust-strip {
  background: #ffffff;
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  padding: 24px 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--portal-gray-200);
}

.cv-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cv-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cv-trust-icon.trust-1 { background: var(--portal-primary-light); color: var(--portal-primary); }
.cv-trust-icon.trust-2 { background: var(--portal-success-light); color: var(--portal-success); }
.cv-trust-icon.trust-3 { background: var(--portal-accent-light); color: var(--portal-accent); }
.cv-trust-icon.trust-4 { background: var(--portal-info-light); color: var(--portal-info); }

.cv-trust-details h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
}

.cv-trust-details p {
  margin: 0;
  font-size: 12px;
  color: var(--portal-gray-500);
}

/* ==========================================================================
   2. Job Specific Application Banner (if arriving via ?job=...)
   ========================================================================== */
.job-context-banner {
  display: none;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 5px solid var(--portal-primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  animation: slideInDown 0.4s ease;
}

.job-context-banner.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-context-info h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin: 0 0 4px;
}

.job-context-info p {
  margin: 0;
  font-size: 13px;
  color: var(--portal-dark-muted);
}

.job-context-tag {
  background: var(--portal-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   3. Main Application Container & Step Progress
   ========================================================================== */
.cv-application-section {
  padding: 70px 0 100px;
}

.cv-form-card {
  background: #ffffff;
  border-radius: var(--portal-radius-lg);
  box-shadow: var(--portal-shadow);
  border: 1px solid var(--portal-gray-200);
  padding: 45px 50px;
  position: relative;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .cv-form-card {
    padding: 25px 20px;
    border-radius: var(--portal-radius);
  }
}

/* Step Timeline / Progress Bar */
.cv-stepper-wrapper {
  margin-bottom: 45px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--portal-gray-200);
}

.cv-stepper-list {
  display: flex;
  justify-content: space-between;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-stepper-list::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--portal-gray-200);
  z-index: 1;
}

.cv-stepper-progress-bar {
  position: absolute;
  top: 24px;
  left: 30px;
  height: 4px;
  background: var(--portal-gradient-primary);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-step-item {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
  cursor: pointer;
}

.cv-step-bullet {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--portal-gray-300);
  color: var(--portal-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px #ffffff;
}

.cv-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-gray-500);
  display: block;
  transition: all 0.3s ease;
}

.cv-step-sublabel {
  font-size: 11px;
  color: var(--portal-gray-400);
  display: block;
}

/* Step Active & Completed States */
.cv-step-item.active .cv-step-bullet {
  background: var(--portal-gradient-primary);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.25), 0 8px 16px rgba(79, 70, 229, 0.3);
  transform: scale(1.08);
}

.cv-step-item.active .cv-step-label {
  color: var(--portal-primary);
  font-weight: 700;
}

.cv-step-item.completed .cv-step-bullet {
  background: var(--portal-success);
  border-color: var(--portal-success);
  color: #ffffff;
}

.cv-step-item.completed .cv-step-label {
  color: var(--portal-dark);
}

/* Mobile Stepper compact badge */
.cv-mobile-step-indicator {
  display: none;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 25px;
  align-items: center;
  justify-content: space-between;
}

.cv-mobile-step-indicator .step-badge {
  background: var(--portal-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .cv-stepper-wrapper {
    display: none;
  }
  .cv-mobile-step-indicator {
    display: flex;
  }
}

/* ==========================================================================
   4. Form Step Content & Elements
   ========================================================================== */
.cv-step-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.cv-step-panel.active {
  display: block;
}

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

.cv-panel-header {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--portal-gray-200);
}

.cv-panel-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--portal-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-panel-header h3 i {
  color: var(--portal-primary);
  font-size: 22px;
}

.cv-panel-header p {
  color: var(--portal-gray-500);
  margin: 0;
  font-size: 14px;
}

/* Form Controls */
.cv-form-group {
  margin-bottom: 24px;
  position: relative;
}

.cv-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.cv-label .required-star {
  color: var(--portal-danger);
  font-weight: 700;
  margin-left: 3px;
}

.cv-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cv-input-icon {
  position: absolute;
  left: 16px;
  color: var(--portal-gray-400);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.cv-input,
.cv-select,
.cv-textarea {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--portal-gray-200);
  border-radius: var(--portal-radius-sm);
  background-color: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.cv-input.no-icon,
.cv-select.no-icon {
  padding-left: 16px;
}

.cv-textarea {
  padding: 14px 16px;
  min-height: 120px;
  resize: vertical;
}

.cv-input:hover,
.cv-select:hover,
.cv-textarea:hover {
  border-color: #cbd5e1;
}

.cv-input:focus,
.cv-select:focus,
.cv-textarea:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  background-color: #ffffff;
}

.cv-input:focus + .cv-input-icon,
.cv-input-wrapper:focus-within .cv-input-icon {
  color: var(--portal-primary);
}

/* Form Validation Styling */
.cv-form-group.has-error .cv-input,
.cv-form-group.has-error .cv-select,
.cv-form-group.has-error .cv-textarea {
  border-color: var(--portal-danger) !important;
  background-color: #fffafb;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.cv-form-group.has-error .cv-input-icon {
  color: var(--portal-danger) !important;
}

.cv-error-feedback {
  display: none;
  font-size: 12px;
  color: var(--portal-danger);
  font-weight: 500;
  margin-top: 6px;
  align-items: center;
  gap: 5px;
}

.cv-form-group.has-error .cv-error-feedback {
  display: flex;
}

/* Phone input group with country code */
.cv-phone-group {
  display: flex;
  gap: 8px;
}

.cv-country-code {
  width: 110px;
  flex-shrink: 0;
  padding: 13px 12px;
  border: 1.5px solid var(--portal-gray-200);
  border-radius: var(--portal-radius-sm);
  background-color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  outline: none;
}

/* ==========================================================================
   5. Dynamic Skills Tag System
   ========================================================================== */
.cv-skills-box {
  background: #f8fafc;
  border: 1.5px dashed var(--portal-gray-300);
  border-radius: 12px;
  padding: 20px;
}

.cv-skills-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.cv-btn-add-skill {
  background: var(--portal-gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--portal-radius-sm);
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cv-btn-add-skill:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.cv-skills-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 16px;
}

.cv-skill-tag {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--portal-primary-dark);
  border: 1px solid #c7d2fe;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: scaleIn 0.2s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.08);
}

.cv-skill-tag .remove-skill {
  cursor: pointer;
  color: #6366f1;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.cv-skill-tag .remove-skill:hover {
  background: var(--portal-danger);
  color: #ffffff;
}

.cv-popular-skills {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--portal-gray-200);
}

.cv-popular-skills-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--portal-gray-500);
  margin-bottom: 8px;
}

.cv-quick-skill-pill {
  background: #ffffff;
  border: 1px solid var(--portal-gray-300);
  color: var(--portal-dark-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 6px 0;
  transition: all 0.2s;
}

.cv-quick-skill-pill:hover {
  background: var(--portal-primary-light);
  border-color: var(--portal-primary);
  color: var(--portal-primary);
}

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

/* ==========================================================================
   6. Dynamic Languages Matrix
   ========================================================================== */
.cv-languages-wrapper {
  background: #f8fafc;
  border: 1px solid var(--portal-gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.cv-lang-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.cv-lang-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--portal-gray-500);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--portal-gray-200);
}

.cv-lang-table td {
  padding: 10px 8px;
}

.cv-lang-table select,
.cv-lang-table input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--portal-gray-200);
  font-size: 13px;
  width: 100%;
  background: #fff;
}

.cv-btn-delete-row {
  background: transparent;
  color: var(--portal-danger);
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.cv-btn-delete-row:hover {
  background: var(--portal-danger-light);
}

.cv-btn-add-lang {
  background: #ffffff;
  border: 1px dashed var(--portal-primary);
  color: var(--portal-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.cv-btn-add-lang:hover {
  background: var(--portal-primary-light);
}

/* ==========================================================================
   7. Multi-Select Badges & Job Preferences
   ========================================================================== */
.cv-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.cv-pill-item {
  position: relative;
}

.cv-pill-item input[type="checkbox"],
.cv-pill-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cv-pill-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--portal-gray-200);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--portal-dark-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cv-pill-label i {
  color: var(--portal-gray-400);
  font-size: 15px;
  transition: color 0.2s;
}

.cv-pill-item input:checked + .cv-pill-label {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: var(--portal-primary);
  color: var(--portal-primary-dark);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.cv-pill-item input:checked + .cv-pill-label i {
  color: var(--portal-primary);
}

.cv-pill-label:hover {
  border-color: var(--portal-primary);
  background: #f8fafc;
}

/* ==========================================================================
   8. Drag & Drop CV & Document Upload Area
   ========================================================================== */
.cv-upload-dropzone {
  border: 2px dashed #a5b4fc;
  background: linear-gradient(180deg, #fbfcfe 0%, #f0f4ff 100%);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 24px;
}

.cv-upload-dropzone:hover,
.cv-upload-dropzone.dragover {
  border-color: var(--portal-primary);
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.cv-dropzone-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
  transition: all 0.3s ease;
}

.cv-upload-dropzone:hover .cv-dropzone-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--portal-gradient-primary);
  color: #fff;
}

.cv-dropzone-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 6px;
}

.cv-dropzone-sub {
  font-size: 13.5px;
  color: var(--portal-gray-500);
  margin-bottom: 16px;
}

.cv-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--portal-gradient-primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s;
}

.cv-dropzone-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--portal-gray-400);
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Uploaded file preview card */
.cv-file-preview-card {
  display: none;
  background: #ffffff;
  border: 1px solid var(--portal-gray-200);
  border-left: 4px solid var(--portal-success);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s ease;
}

.cv-file-preview-card.active {
  display: flex;
}

.cv-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cv-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cv-file-details h6 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
}

.cv-file-details p {
  margin: 0;
  font-size: 12px;
  color: var(--portal-gray-400);
}

.cv-file-actions {
  display: flex;
  gap: 10px;
}

.cv-btn-file-action {
  background: #f8fafc;
  border: 1px solid var(--portal-gray-200);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--portal-dark-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.cv-btn-file-action.btn-remove {
  color: var(--portal-danger);
  border-color: #fecaca;
  background: #fff5f5;
}

.cv-btn-file-action:hover {
  background: #e2e8f0;
}

.cv-btn-file-action.btn-remove:hover {
  background: var(--portal-danger);
  color: #ffffff;
}

/* Optional document upload boxes */
.cv-opt-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cv-opt-doc-item {
  background: #f8fafc;
  border: 1px dashed var(--portal-gray-300);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.cv-opt-doc-item:hover {
  border-color: var(--portal-primary);
  background: #ffffff;
}

.cv-opt-doc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-opt-doc-info i {
  color: var(--portal-primary);
  font-size: 18px;
}

.cv-opt-doc-info h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-dark);
}

.cv-opt-doc-info p {
  margin: 0;
  font-size: 11px;
  color: var(--portal-gray-400);
}

/* Character Counter */
.cv-char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--portal-gray-400);
  margin-top: 4px;
}

/* ==========================================================================
   9. Step 6 - Review Application Summary
   ========================================================================== */
.cv-review-box {
  background: #f8fafc;
  border: 1px solid var(--portal-gray-200);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.cv-review-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--portal-gray-200);
}

.cv-review-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cv-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cv-review-head h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-review-head h5 i {
  color: var(--portal-primary);
}

.cv-btn-edit-step {
  background: #ffffff;
  border: 1px solid var(--portal-gray-300);
  color: var(--portal-primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.cv-btn-edit-step:hover {
  background: var(--portal-primary);
  color: #ffffff;
  border-color: var(--portal-primary);
}

.cv-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.cv-review-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--portal-gray-400);
  margin-bottom: 2px;
}

.cv-review-item span {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* Consent checkboxes */
.cv-consent-group {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.cv-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cv-consent-item:last-child {
  margin-bottom: 0;
}

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

.cv-consent-item label {
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.45;
  cursor: pointer;
}

.cv-consent-item a {
  color: var(--portal-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Anti-spam math challenge */
.cv-antispam-box {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cv-antispam-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   10. Form Navigation Buttons (Next / Prev / Submit)
   ========================================================================== */
.cv-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--portal-gray-200);
  margin-top: 30px;
}

.cv-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-btn-prev {
  background: #f1f5f9;
  color: #475569;
}

.cv-btn-prev:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cv-btn-next {
  background: var(--portal-gradient-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
  margin-left: auto;
}

.cv-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.cv-btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  font-size: 16px;
  padding: 16px 36px;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.cv-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.cv-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   11. Success Screen (Application Submitted)
   ========================================================================== */
.cv-success-screen {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.4s ease;
}

.cv-success-screen.active {
  display: block;
}

.cv-success-icon-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 24px;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.cv-success-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--portal-dark);
  margin-bottom: 12px;
}

.cv-success-message {
  font-size: 16px;
  color: var(--portal-gray-500);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cv-ref-box {
  display: inline-block;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px 32px;
  margin-bottom: 35px;
}

.cv-ref-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--portal-gray-400);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.cv-ref-code {
  font-size: 24px;
  font-weight: 800;
  color: var(--portal-primary);
  letter-spacing: 1px;
  font-family: monospace;
}

.cv-success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   12. FAQ Section
   ========================================================================== */
.cv-faq-section {
  background: #ffffff;
  padding: 90px 0;
  border-top: 1px solid var(--portal-gray-200);
}

.cv-section-badge {
  display: inline-block;
  background: var(--portal-primary-light);
  color: var(--portal-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.cv-section-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--portal-dark);
  margin-bottom: 16px;
}

.cv-accordion-item {
  border: 1px solid var(--portal-gray-200);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #ffffff;
  transition: all 0.25s ease;
  overflow: hidden;
}

.cv-accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cv-accordion-header {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.cv-accordion-header i {
  color: var(--portal-primary);
  transition: transform 0.3s ease;
}

.cv-accordion-item.open .cv-accordion-header i {
  transform: rotate(180deg);
}

.cv-accordion-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--portal-gray-500);
  font-size: 14.5px;
  line-height: 1.6;
}

.cv-accordion-item.open .cv-accordion-body {
  display: block;
}

/* ==========================================================================
   13. Bottom CTA Section
   ========================================================================== */
.cv-cta-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border-radius: var(--portal-radius-lg);
  padding: 60px 50px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--portal-shadow);
  margin-top: 30px;
}

.cv-cta-banner h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cv-cta-banner p {
  color: #c7d2fe;
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 30px;
}

/* ==========================================================================
   14. Admin Candidate Management Portal
   ========================================================================== */
.admin-portal-wrapper {
  background: #f1f5f9;
  min-height: 100vh;
  padding: 30px 0 60px;
  font-family: 'Figtree', sans-serif;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.admin-header-title p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}

/* Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.admin-stat-info h6 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin: 0 0 6px;
}

.admin-stat-info h3 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-stat-icon.card-total { background: #e0e7ff; color: #4338ca; }
.admin-stat-icon.card-new { background: #dbeafe; color: #1d4ed8; }
.admin-stat-icon.card-review { background: #fef3c7; color: #d97706; }
.admin-stat-icon.card-shortlist { background: #fae8ff; color: #a21caf; }
.admin-stat-icon.card-interview { background: #ffedd5; color: #c2410c; }
.admin-stat-icon.card-selected { background: #d1fae5; color: #047857; }
.admin-stat-icon.card-placed { background: #ccfbf1; color: #0f766e; }
.admin-stat-icon.card-rejected { background: #fee2e2; color: #b91c1c; }

/* Filter & Search Bar */
.admin-filter-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.admin-search-input {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.admin-search-input input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.admin-search-input i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.admin-filter-select {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
  color: #334155;
  outline: none;
  font-weight: 500;
}

/* Candidate Table */
.admin-table-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid #e2e8f0;
  text-align: left;
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fbfcfe;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.new { background: #dbeafe; color: #1e40af; }
.status-badge.under-review { background: #fef3c7; color: #92400e; }
.status-badge.shortlisted { background: #fae8ff; color: #86198f; }
.status-badge.interview { background: #ffedd5; color: #9a3412; }
.status-badge.selected { background: #d1fae5; color: #065f46; }
.status-badge.placed { background: #ccfbf1; color: #115e59; }
.status-badge.rejected { background: #fee2e2; color: #991b1b; }
.status-badge.on-hold { background: #f1f5f9; color: #475569; }

/* Candidate Profile Modal */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

.admin-modal-header {
  padding: 20px 28px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.admin-modal-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Quick Communication Action Buttons */
.admin-comm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
}

.admin-comm-btn.btn-email { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.admin-comm-btn.btn-whatsapp { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.admin-comm-btn.btn-call { background: #f8fafc; color: #334155; border: 1px solid #cbd5e1; }
.admin-comm-btn.btn-cv { background: #4f46e5; color: #ffffff; border: none; }

.admin-comm-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

/* Internal Recruitment Notes section */
.internal-notes-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
}

.notes-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.note-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #6366f1;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}

.note-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* ==========================================================================
   MOBILE STEPPER PROGRESS INDICATOR (SUBMIT-CV.HTML)
   ========================================================================== */
.cv-mobile-step-indicator {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.cv-mobile-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.cv-mobile-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.cv-mobile-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.2;
}

.cv-mobile-step-subtitle {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.cv-mobile-step-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.cv-mobile-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.cv-mobile-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 10px;
  transition: width 0.35s ease;
}

.cv-mobile-dots {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.cv-mobile-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #cbd5e1;
  transition: all 0.3s ease;
}

.cv-mobile-dot.active {
  background: #4f46e5;
  height: 5px;
}

.cv-mobile-dot.completed {
  background: #10b981;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLETS & MOBILE DEVICES)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tablets & Medium Screens (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Hero */
  .cv-hero-section {
    padding: 60px 0 80px;
    text-align: center;
  }

  .cv-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }

  .cv-hero-actions {
    justify-content: center;
  }

  /* Trust Strip */
  .cv-trust-strip {
    margin-top: -40px;
    padding: 20px 24px;
  }

  /* Admin Header */
  .admin-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .admin-header-bar .d-flex {
    width: 100%;
  }

  .admin-header-bar .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   2. Mobile Landscape & Standard Mobile Screens (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Global Resets */
  .cv-page-wrapper {
    overflow-x: hidden;
  }

  /* Hero Section */
  .cv-hero-section {
    padding: 45px 0 70px;
  }

  .cv-hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .cv-hero-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin-bottom: 14px;
  }

  .cv-hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .cv-hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;
  }

  .cv-btn-hero-primary,
  .cv-btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14.5px;
  }

  /* Hide floating cards on mobile to avoid overflow */
  .cv-floating-card {
    display: none !important;
  }

  /* Trust Indicators Strip */
  .cv-trust-strip {
    margin-top: -30px;
    padding: 16px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .cv-trust-strip .row {
    --bs-gutter-y: 12px;
    --bs-gutter-x: 10px;
  }

  .cv-trust-item {
    gap: 10px;
  }

  .cv-trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }

  .cv-trust-details h6 {
    font-size: 13px;
    line-height: 1.2;
  }

  .cv-trust-details p {
    font-size: 11px;
  }

  /* Stepper on Mobile: Switch from desktop multi-circle line to compact smart indicator */
  .cv-stepper-wrapper {
    display: none !important;
  }

  .cv-mobile-step-indicator {
    display: block !important;
  }

  /* Form Card */
  .cv-application-section {
    padding: 30px 0 60px;
  }

  .cv-form-card {
    padding: 20px 14px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .cv-panel-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .cv-panel-header h3 {
    font-size: 18px !important;
    margin-bottom: 4px;
  }

  .cv-panel-header p {
    font-size: 12.5px !important;
  }

  /* Form Inputs & Controls */
  .cv-form-label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .cv-form-control,
  .cv-form-select,
  .form-control,
  .form-select {
    padding: 11px 13px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Buttons & Action Bars */
  .cv-form-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 25px;
    padding-top: 18px;
  }

  .cv-form-actions button,
  .cv-form-actions a {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 14.5px;
    border-radius: 8px;
  }

  /* Skills & Tag Manager */
  .cv-skills-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .cv-skills-input-wrapper button {
    width: 100%;
  }

  .cv-skill-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Dropzone File Upload */
  .cv-dropzone {
    padding: 24px 14px;
    border-radius: 12px;
  }

  .cv-dropzone-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Summary Step (Review) */
  .cv-review-card {
    padding: 14px;
    border-radius: 10px;
  }

  .cv-review-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* =========================================================================
     ADMIN PORTAL (CANDIDATE-PORTAL.HTML) MOBILE STYLES
     ========================================================================= */

  /* Top Navigation */
  .admin-top-nav {
    padding: 10px 0;
  }

  .admin-top-nav .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-top-nav .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-brand {
    gap: 8px;
  }

  .admin-brand img {
    max-height: 28px;
  }

  .admin-brand span {
    font-size: 10.5px;
    padding: 2px 6px;
  }

  .admin-nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 4px;
  }

  .admin-nav-links a {
    margin-left: 0 !important;
    font-size: 12px;
  }

  .admin-nav-links .btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    margin-left: 0 !important;
  }

  /* Admin Wrapper */
  .admin-portal-wrapper {
    padding: 18px 0 40px;
  }

  .admin-portal-wrapper .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Header Bar */
  .admin-header-title h2 {
    font-size: 20px !important;
    line-height: 1.25;
  }

  .admin-header-title p {
    font-size: 12.5px;
  }

  .admin-header-bar .d-flex.gap-2 {
    flex-direction: column;
    gap: 8px !important;
    width: 100%;
  }

  .admin-header-bar .d-flex.gap-2 .btn {
    width: 100%;
    padding: 11px;
    font-size: 13px;
  }

  /* Stats Grid: 2 Columns on Mobile */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 20px;
  }

  .admin-stat-card {
    padding: 12px 10px !important;
    border-radius: 10px;
  }

  .admin-stat-info h6 {
    font-size: 10.5px !important;
    margin-bottom: 3px;
  }

  .admin-stat-info h3 {
    font-size: 20px !important;
  }

  .admin-stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  /* Filter & Search Bar */
  .admin-filter-bar {
    padding: 12px !important;
    border-radius: 12px;
    gap: 8px !important;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-input {
    min-width: 100% !important;
    width: 100% !important;
  }

  .admin-search-input input {
    font-size: 13.5px;
    padding: 9px 12px 9px 34px;
  }

  .admin-filter-select {
    width: 100% !important;
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Candidate Table Card */
  .admin-table-card {
    border-radius: 12px;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .admin-table {
    min-width: 720px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 10px;
    font-size: 12.5px;
  }

  /* Candidate Detail Modal */
  .admin-modal-overlay {
    padding: 8px !important;
  }

  .admin-modal-box {
    max-height: 96vh !important;
    border-radius: 14px !important;
  }

  .admin-modal-header {
    padding: 14px 16px !important;
  }

  .admin-modal-header h4 {
    font-size: 15px !important;
  }

  .admin-modal-body {
    padding: 16px 12px !important;
  }

  .admin-modal-footer {
    padding: 12px 14px !important;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .admin-modal-footer button {
    width: 100%;
  }

  /* Communication Buttons in Modal */
  .admin-comm-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  /* Email Dispatch Logs Panel */
  #emailLogsPanel > div {
    margin: 10px auto !important;
    padding: 0 6px 30px !important;
  }

  #emailLogsPanel .d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  #emailLogsPanel .d-flex.gap-2,
  #emailLogsPanel div[style*="display:flex; gap:10px;"] {
    flex-wrap: wrap;
    width: 100%;
  }

  #emailLogsPanel button {
    flex: 1;
    text-align: center;
    padding: 8px 10px !important;
  }

  #emailLogsContent {
    padding: 14px 12px !important;
  }

  /* Email Preview Modal */
  #emailPreviewModal > div {
    margin: 10px auto !important;
    padding: 0 6px 20px !important;
  }

  #emailPreviewFrame {
    height: 480px !important;
  }

  /* Auth Screen */
  .auth-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
  }

  .auth-title {
    font-size: 19px !important;
  }

  .auth-subtitle {
    font-size: 12.5px !important;
  }
}

/* --------------------------------------------------------------------------
   3. Small Mobile Devices (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .cv-hero-title {
    font-size: 27px !important;
  }

  .cv-trust-strip .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .admin-stat-card {
    padding: 10px 8px !important;
  }

  .admin-stat-info h6 {
    font-size: 9.5px !important;
  }

  .admin-stat-info h3 {
    font-size: 18px !important;
  }

  .admin-comm-btn {
    flex: 1 1 100%;
  }
}

