* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, orange, white);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
  color: #fff;
}

.form-container {
  background: #1a1a1a;
  border-radius: 16px;
  border: 2px solid orange;
  box-shadow: 0 0 50px 20px rgb(0, 0, 0);
  width: 100%;
  max-width: 550px;
  overflow: hidden;
  padding: 2rem 2rem 2.5rem;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.form-slide {
  display: none;
  animation: fadeSlide 0.4s ease-in-out;
}

.form-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  text-align: center;
  color: #ffa500;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 30px;
}

input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 1rem;
  font-size: 16px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: #ccc;
}

input:focus {
  border-color: #ffa500;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.4);
  outline: none;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: orange;
  cursor: pointer;
  position: relative;
  top: 2px;
  right: 6px;
}

.step-progressbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 30px;
  max-width: 600px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.step .circle {
  height: 36px;
  width: 36px;
  border-radius: 30%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: bold;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.step.active .circle,
.step.completed .circle {
  background-color: #4caf50;
  color: white;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.line {
  height: 4px;
  flex: 1;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 0;
  position: relative;
  top: -12px;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.step.completed+.line {
  background-color: #4caf50;
}


.heading {
  font-size: 30px;
  margin-bottom: 20px;
}

.checkbox-label {
  margin: 10px;
}


#checkboxContainer input[type="checkbox"].glow {
  outline: 2px solid red;
  box-shadow: 0 0 10px red;
}

.error-message {
  color: red;
  font-size: 14px;
}


.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

#page2 label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

select#year {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  /* border: 2px solid #4f46e5; Indigo-600 */
  border-radius: 8px;
  background-color: #2a2a2a;
  /* Light gray */
  color: #ffffff;
  /* Dark gray text */
  margin-bottom: 4px;
}

select#year:focus {
  border-color: #6366f1;
  /* Indigo-500 */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}



button {
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
  color: #fff;
}

button[type="submit"] {
  background-color: #ff8c00;
}

button[type="submit"]:hover {
  background-color: #e67600;
}

button:not([type="submit"]) {
  background-color: #333;
}

button:not([type="submit"]):hover {
  background-color: #444;
}

button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.scan-pay-container {
  text-align: center;
  margin-bottom: 20px;
}

.scan-pay-img {
  max-width: 200px;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.scan-pay-text {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #b1b1b1;
}


/* Responsive Styles */
@media (max-width: 768px) {
  .form-slide {
    padding: 10px;
  }


  h3,
  h4 {
    font-size: 1rem;
  }

  .course-section p {
    font-size: 0.9rem;
  }

  #checkboxContainer {
    margin-bottom: 20px;
    text-align: center;
  }

  button {
    width: 100%;
    padding: 12px;
  }

  .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .heading {
    font-size: 1rem;
  }

  .form-container {
    padding: 1rem 1.5rem;
  }

  .step-progressbar {
    margin: 0px;
  }

  .step .circle {
    height: 1.9rem;
    width: 1.9rem;
  }
}

#loaderOverlay .loader-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* semi-transparent black */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: #fff;
}



/* Additional mobile-first styling */
/* @media (max-width: 480px) {
    h2 {
      font-size: 1.2rem;
    }
  
    h3 {
      font-size: 0.9rem;
    }
  
    .course-section p {
      font-size: 0.85rem;
    }
  
    button {
      font-size: 0.9rem;
    }
  } */