/* Core Form Styling */


#driver-form {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

#driver-form h2 {
  font-size: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #0073aa;
  padding-left: 10px;
  color: #333;
}

#driver-form label {
  display: block;
  margin: 10px 0;
}

#driver-form input[type="text"],
#driver-form input[type="number"],
#driver-form input[type="email"],
#driver-form input[type="tel"],
#driver-form input[type="date"],
#driver-form select,
#driver-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 3px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


/* ===== Progress Container (Sticky Header) ===== */

.progress-container {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
  max-width: 1000px;
  margin: 16px auto;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

/* === Progress Steps Wrapper === */
#progress-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* === Individual Step Box === */
.step {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}

/* === Step Number Circle === */
.step .step-number {
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  background: #6c757d;
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  position: relative;
}

/* === Step Label === */
.step .step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Active Step === */
.step.active {
  border-color: #0d6efd;
  background: #e9f4ff;
}
.step.active .step-number {
  background-color: #0d6efd;
}

/* === Completed Step === */
.step.completed {
  border-color: #198754;
  background: #e8f8f0;
}
.step.completed .step-number {
  background-color: #198754;
  position: relative;
}

/* === ✔ Tick Mark with Animation === */
.step.completed .step-number::after {
  content: '✔';
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #28a745;
  color: #ffffff !important; /* ✅ Forcefully white */
  font-size: 12px;
  font-weight: bold;
  font-family: Arial, sans-serif; /* ✅ নিশ্চিত করুন সাধারন ফন্ট */
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.5);
  animation: tickPop 0.3s ease-out forwards;
}


/* === Tick Pop Animation === */
@keyframes tickPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Mobile Responsive === */
@media (max-width: 600px) {
  .step {
    font-size: 12px;
    padding: 6px 8px;
    min-width: 45%;
  }

  .step .step-number {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
  }

  .step .step-label {
    font-size: 11px;
  }
}


/* Step Form */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.next-btn,
.prev-btn,
.submit-btn {
  background: #0073aa;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 3px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.next-btn:hover,
.prev-btn:hover,
.submit-btn:hover {
  background: #005d8c;
}

#form-loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#form-loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#form-loader .spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 10px rgba(0, 115, 170, 0.3);
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


#form-success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-in-out;
  max-width: 400px;
  width: 90%;
  color: #fff;
  text-align: center;
}

.message-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-box p {
  font-size: 16px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}


#review-summary {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 16px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #444;
  max-width: 100%;
  word-break: break-word;
}

#review-summary img {
  display: block;
  margin: 0 auto 15px;
  border-radius: 8px;
  max-width: 120px;
  height: auto;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

#review-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#review-summary li {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

#review-summary strong {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}






@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}



