/* Modern Colorlib-style applied to 6-step wizard */
body {
  background: #f6f8fb;
  font-family: 'Poppins', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at 20% 30%, rgba(255, 82, 82, 0.85), transparent 50%),
              radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.4), transparent 50%),
              radial-gradient(circle at 50% 70%, rgba(255, 82, 82, 0.5), transparent 50%),
              linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #cccccc 100%);
  background-blend-mode: screen, normal;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #f5f5f5;
}

/* Banner Container */
.form-banner {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: url('img/strap.jpg') no-repeat center center;
  background-size: cover;
  padding-left: 30px;
}

.form-banner img {
  max-height: 100px;
  width: auto;
  z-index: 2;
  position: relative;
}

.form-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.card {
  border-radius: 16px;
  border: none;
  padding: 20px;
}

.card-title {
  font-weight: 700;
  color: #2c3e50;
}

.progress {
  background-color: #e9eef7;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, #5b7df1, #2db4ff);
  font-size: 12px;
  font-weight: 600;
  transition: width .25s ease-in-out;
}

.wizard-headers .wizard-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9eef7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #333;
}

.wizard-headers .wizard-step.active {
  background: linear-gradient(135deg,#5b7df1,#2db4ff);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49,84,255,0.2);
}

.form-control, .form-select, textarea {
  border-radius: 10px;
  border: 1px solid #d8e1f3;
  padding: 10px 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus, .form-select:focus, textarea:focus {
  border-color: #5b7df1;
  box-shadow: 0 0 0 0.25rem rgba(91,125,241,0.25);
}

.btn-primary {
  background: linear-gradient(135deg,#5b7df1,#2db4ff);
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-weight: 600;
}

.btn-secondary {
  border-radius: 25px;
  padding: 10px 22px;
}

.btn-success {
  border-radius: 25px;
  padding: 10px 22px;
  font-weight: 600;
}

/* Step transitions */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn .3s ease-in-out;
}

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

/* 🚨 Validation Styles (Updated for skipped fields) */

/* Modern Colorlib-style applied to 6-step wizard */
body {
  background: #f6f8fb;
  font-family: 'Poppins', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at 20% 30%, rgba(255, 82, 82, 0.85), transparent 50%),
              radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.4), transparent 50%),
              radial-gradient(circle at 50% 70%, rgba(255, 82, 82, 0.5), transparent 50%),
              linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #cccccc 100%);
  background-blend-mode: screen, normal;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #f5f5f5;
}

/* Banner Container */
.form-banner {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: url('img/strap.jpg') no-repeat center center;
  background-size: cover;
  padding-left: 30px;
}

.form-banner img {
  max-height: 100px;
  width: auto;
  z-index: 2;
  position: relative;
}

.form-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.card {
  border-radius: 16px;
  border: none;
  padding: 20px;
}

.card-title {
  font-weight: 700;
  color: #2c3e50;
}

.progress {
  background-color: #e9eef7;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, #5b7df1, #2db4ff);
  font-size: 12px;
  font-weight: 600;
  transition: width .25s ease-in-out;
}

.wizard-headers .wizard-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9eef7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #333;
}

.wizard-headers .wizard-step.active {
  background: linear-gradient(135deg,#5b7df1,#2db4ff);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49,84,255,0.2);
}

.form-control, .form-select, textarea {
  border-radius: 10px;
  border: 1px solid #d8e1f3;
  padding: 10px 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus, .form-select:focus, textarea:focus {
  border-color: #5b7df1;
  box-shadow: 0 0 0 0.25rem rgba(91,125,241,0.25);
}

.btn-primary {
  background: linear-gradient(135deg,#5b7df1,#2db4ff);
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-weight: 600;
}

.btn-secondary {
  border-radius: 25px;
  padding: 10px 22px;
}

.btn-success {
  border-radius: 25px;
  padding: 10px 22px;
  font-weight: 600;
}

/* Step transitions */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn .3s ease-in-out;
}

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

/*  Validation Styles (Updated for skipped fields) */

/* Highlight only fields marked as invalid by JS */
.is-invalid {
  border: 2px solid #e74c3c;       /* Red outline */
  background-color: #fdecea;       /* Light red background */
  transition: border 0.3s, background-color 0.3s;
}

/* Remove highlight on focus */
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #5b7df1;           /* Blue outline on focus */
  background-color: #fff;          /* White background on focus */
  box-shadow: 0 0 0 0.25rem rgba(91,125,241,0.25);
}

/* Remove green outline for valid fields completely */
/* All inputs start neutral, only invalid ones get red */
input:valid,
select:valid,
textarea:valid {
  border-color: #d8e1f3;           /* Neutral border on load */
  box-shadow: none;
}

/* Optional error message (for inline messages) */
.error-message {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  display: none; /* Can toggle with JS if needed */
}

input, select, textarea {
  border: 1px solid #a8c6f0;  /* visible neutral border */
  border-radius: .375rem;      /* rounded edges like Bootstrap */
  padding: .375rem .75rem;     /* proper spacing inside input */
  background-color: #fff;       /* white background */
  box-shadow: none;             /* remove extra shadows */
  outline: none;                /* remove browser default outline */
  transition: border 0.3s, background-color 0.3s, box-shadow 0.3s;
}

/* Focus style for all fields */
input:focus, select:focus, textarea:focus {
  border-color: #5b7df1;       /* blue outline */
  box-shadow: 0 0 0 0.25rem rgba(91,125,241,0.25);
}

/* Invalid fields */
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border: 2px solid #e74c3c;
  background-color: #fdecea;
}