/* -------------------- Stage 3: File Uploader -------------------- */
.upload-card {
  background-color: #dcf2f7; 
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.upload-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.upload-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.upload-group input[type="file"] {
  padding: 6px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

.upload-group input[type="file"]:hover {
  border-color: #88221B;
}

.upload-error {
  color: red;
  font-size: 0.85em;
  margin-top: 4px;
}

.stage-3 button {
  display: block;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  background: #88221B;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stage-3 button:hover {
  background: #a52b25;
}

/* Shared primary button styling for Stage 3, 4, and 5 */
.stage-3 button,
.stage-4 button,
.stage-5 button {
  display: block;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  background: #88221B;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stage-3 button:hover,
.stage-4 button:hover,
.stage-5 button:hover {
  background: #a52b25;
}

.stage-4-button {
  display: block;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  background: #88221B;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stage-4-button:hover {
  background: #a52b25;
}


/* -------------------- Main Container -------------------- */
body {
  font-family: Arial, sans-serif;
  background: #fff; /* brand gradient */
  color: black; /* font color white across stages */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* -------------------- Logo Header -------------------- */
.applicants-logo {
  text-align: center;
  margin: 0px 0;
  background: #88221B;  /* optional: brand color behind logo */
  padding: 0px 0;
}

.applicants-logo img {
  height: 150px;       /* adjust height */
  max-width: 100%;     /* responsive width */
  object-fit: contain; /* keep aspect ratio */
}


/* -------------------- Container -------------------- */
.applicants-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #f3f3f3;
}

/* -------------------- Headings -------------------- */
h2, h3 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 22px;
}

/* -------------------- Card Wrapper -------------------- */
.form-card {
  background-color: #eaf1fb; /* mild blue */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -------------------- Personal Information Wrapper -------------------- */
.form-card1 {
  background-color: #cbf5f4; /* mild blue */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -------------------- Educational Information Wrapper -------------------- */
.form-card2 {
  background-color: #d3f2c2; /* mild blue */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -------------------- Work Experience Wrapper -------------------- */
.form-card3 {
  background-color: #dfcbf5; /* mild blue */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -------------------- Referecnes Wrapper -------------------- */
.form-card4 {
  background-color: #f2f5cb; /* mild blue */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -------------------- Row Layout -------------------- */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;            /* space between columns */
  margin-bottom: 12px;  /* space between rows */
}

/* -------------------- Column Layout -------------------- */
.form-row .form-group {
  flex: 1 1 20%;        /* 3 per row, adjusts responsively */
  min-width: 220px;     /* control width */
  display: flex;
  flex-direction: column;
}

/* -------------------- Labels & Inputs -------------------- */
.form-group label {
  font-weight: 600;
  margin-bottom: 3px;   /* t*


/* Declaration box styling */
.declaration-box {
  background: #f8faff;
  border: 2px solid #004aad;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.declaration-label {
  font-weight: bold;
  display: flex;
  align-items: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.declaration-box input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.3);
}

.declaration-list {
  margin-left: 25px;
  list-style-type: disc;
  color: #333;
  font-size: 15px;
}

/* Centered full-screen overlay for logo animation */
.logo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  animation: fadeIn 0.5s ease-in;
}

/* Inner container for animation */
.logo-animation {
  text-align: center;
}

.logo-animation img.spin-logo {
  width: 140px;
  height: 140px;
  animation: spin 2.5s linear infinite, fadeInOut 3s ease-in-out infinite;
}

.submitting-text {
  margin-top: 15px;
  font-size: 18px;
  color: #004aad;
  font-weight: 500;
}

/* Fade + spin animations */
@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- STATUS BADGES ---------- */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
  text-transform: capitalize;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Applicants Status Colors */
.status-badge.new { background: #17a2b8; }           /* teal */
.status-badge.hr-approved { background: #E7B416; }   /* green */
.status-badge.hr-rejected { background: #B00020; }   /* red */
.status-badge.hod-approved { background: #007bff; }  /* blue */
.status-badge.hod-rejected { background: #B00020; }  /* red */
.status-badge.hos-approved { background: #228B22; color: #000; } /* amber */
.status-badge.hos-rejected { background: #a71d2a; }  /* maroon */
.status-badge.unknown { background: #ccc; color: #000; }
