/* General Styling */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
}

.form-container {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/B.png");
  background-size: cover;
  background-position: center;
  margin: auto;
  padding: 20px;
height: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 100px;
  width: 100%;
 
}


.form-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
}

hr {
  width: 30%;
  margin: 20px auto;
  border: 1px solid white;
}

/* Form Layout */
.registration-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}

.form-group {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-bottom: 50px;
}

.form-group label {
  font-weight: bold;
  color: black;
  margin-bottom: 5px;
  text-align: left;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
}

/* Responsive Grid for Date of Birth Selection */
.dob-group {
  display: flex;
  gap: 10px;
}

.dob-group select {
  flex: 1;
}

/* Step Navigation Timeline */
.cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;

}

.timeline {
  display: flex;
  justify-content: space-between;
  width: 70%;
  max-width: 300px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 4px;
  background: #ddd;
  top: 50%;
  left: 0;
  z-index: 0;
}

.step {
  background: #ddd;
  padding: 8px 14px;
  border-radius: 50%;
  font-weight: bold;
  color: #555;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.step.active {
  background: #00ADEF;
  color: white;
}

/* Buttons */
.next-btn,
.prev-btn,
.submit-btn,
.verify-otp,
.send-otp {
  background-color: #00ADEF;
  color: white;
  padding: 5px;
  font-size: 16px;
  border: none;
  margin: 10px auto;
  text-align: center;
  justify-content: space-between;
  border-radius: 50px;
  cursor: pointer;
  width: fit-content;
  min-width: 100px;
  margin-bottom: 10px;
}

.next-btn:hover,
.prev-btn:hover,
.verify-otp:hover,
.submit-btn:hover {
  background-color: #007acc;
}

.send-otp {
  background: #28a745;
}


.send-otp:hover {
  background: #1e7e34;
}

/* OTP Section */
.otp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-group.step-2, .form-group.step-3 {
  display: none;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .form-container {
      width: 95%;
      padding: 15px;
      margin-bottom: 50px;
  }

  .form-title {
    font-size: 24px;
    margin-top: 20px;
    color: white;
  }
  
  hr {
    width: 30%;
    margin: 20px auto;
    border: 1px solid white;
  }
/* Form Layout */
.registration-form {
  display: flex;
  flex-direction: column;
  align-items: center;
 
  margin: 0 auto;
}
  .timeline {
      width: 90%;
  }

  .form-group {
      width: 90%;
      margin-bottom: 80px;
      margin-top: 20px;
  }
  .form-group.step-2, .form-group.step-3 {
    display: none;
}

}

@media screen and (max-width: 480px) {
  .form-container {
    width: 95%;
    padding: 15px;
    margin-bottom: 50px;
}
  .timeline {
      width: 100%;
  }
  .form-group.step-2, .form-group.step-3 {
    display: none;
}
/* Form Layout */
.registration-form {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0 auto;
}
  .step {
      padding: 6px 10px;
  }

  .form-title {
      font-size: 20px;
  }

  .form-group {
      width: 100%;
      margin-bottom: 80px;
      margin-top: 80px;
  }
}
