.form-group {
  margin-bottom: 28px;
  position: relative;
}
.form-group label {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1E1A1A;
  display: block;
}
.form-group .form-control {
  border: 1px solid #1E1A1A4D;
  padding: 0 10px;
  height: 54px;
  width: 100%;
  display: block;
  border-radius: 4px;
}
.form-group textarea.form-control {
  padding-top: 10px;
}

/* Validation feedback */
/* Validation feedback - fixed layout breakage */
.error {
  color: #d9534f;
  font-size: 1rem;
  margin-top: 6px;
  display: block;
  font-weight: 500;
  position: static;
}
input.error,
select.error,
textarea.error {
  border-color: #d9534f;
  margin-bottom: 4px;
}
.form-group {
  margin-bottom: 34px;
}

/* Upload buttons */
.upload-button {
  cursor: pointer;
}
.profile-uploader {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: right;
}
.profile-pic {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
}
.p-image p {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  margin: 4px 0;
}
.p-image .note {
  font-size: 8px;
  color: #B3B3B3;
}
.file-upload {
  display: none;
}

/* Upload box for marksheet */
.upload-box {
  border: 2px dashed #ccc;
  padding: 40px;
  text-align: center;
  position: relative;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: 0.3s ease;
}
.upload-box:hover {
  background-color: #f0f0f0;
}
.upload-box input[type="file"] {
  opacity: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}
.upload-content p {
  margin: 10px 0 4px;
  font-weight: 500;
}
.upload-content small {
  color: #555;
}
.browse-btn {
  font-weight: bold;
  color: #000;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}

/* Buttons */
.submitbtn {
  background-color: #0D3486;
  color: #F2B94C;
  font-size: 18px;
  font-weight: 400;
  padding: 8px 26px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  width: 300px;
  text-align: center;
}
.submitbtn:focus:not(:focus-visible) {
  color: #F2B94C;
}
.text-end {
  text-align: right;
}
#studentForm .text-end{
  display: flex;
  justify-content: right;
}
#step2 .text-end{
  display: flex;
  justify-content: space-between;
}
/* Stepper UI */
.step-title {
  font-size: 32px;
  line-height: 150%;
  font-weight: 400;
  margin: 62px 0;
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.progress-steps ul {
  display: flex;
  justify-content: space-between;
  max-width: 250px;
  margin: auto;
  padding: 0;
  list-style: none;
}
.progress-steps li {
  position: relative;
}
.progress-steps li:first-child::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 3px;
  background-color: #F2B94C;
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
}
.progress-steps span {
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  height: 46px;
  width: 46px;
  color: #0D3486;
  border: 3px solid #0D3486;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-steps span.active {
  background-color: #0D3486;
  color: #FFF;
  border-color: #F2B94C;
}

/* Container */
.scholer-form {
  padding-top: 140px;
}
.scholer-form .inner-continer {
  max-width: 700px;
  margin: 58px auto;
  padding-inline: 15px;
}

/* Banner */
.form-banner-content {
  background-color: #0D3486;
  padding: 38px;
  margin-block: 48px;
}
.form-banner-content p {
  max-width: 900px;
  font-weight: 500;
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 1px;
  text-align: center;
  color: #FFF;
  margin: 0 auto;
}

/* Modal */
.modal-scholer.modal-static .modal-content {
  border: 1px solid red;
  animation: vibrate 0.5s infinite;
}
.modal-scholer .modal-content {
  padding: 28px 38px !important;
}
.modal-scholer .modal-body {
  border: 0;
}
.modal-scholer .modal-header {
  box-shadow: 0px 8px 12px #00000008;
  border: 0;
}
.modal-scholer.modal.show .modal-dialog {
  max-width: 900px;
  width: 100%;
}
.modal-scholer h5 {
  font-size: 32px;
  line-height: 1.8;
}
.modal-scholer ul li p {
  margin-bottom: 18px;
  font-size: 20px;
}
.modal-scholer ul li:last-child p {
  margin-bottom: 0;
}

@keyframes vibrate {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-1deg); }
  20% { transform: rotate(1deg); }
  30% { transform: rotate(0deg); }
  40% { transform: rotate(1deg); }
  50% { transform: rotate(-1deg); }
  60% { transform: rotate(0deg); }
  70% { transform: rotate(-1deg); }
  80% { transform: rotate(1deg); }
  90% { transform: rotate(0deg); }
  100% { transform: rotate(-1deg); }
}
.p-image{
  width: 50%;
}
.form-name{
  width: 80%;
  position: relative;
}
.step .form-group:first-child{
  display: flex;
}
/* Responsive */
@media screen and (max-width: 768px) {
  .scholer-form p {
    font-size: 16px !important;
  }
  .p-image {
    max-width: 100%;
    margin-top: 18px;
  }
}

.p-image .error {
    font-size: 11px;
}

#formOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
}

#formOverlay .loader {
  text-align: center;
  font-family: sans-serif;
}

#formOverlay .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0D3486;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

#formOverlay p {
  font-size: 16px;
  color: #0D3486;
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#formOverlay {
  z-index: 100000;
}

#exampleFormControlInput1{
  padding-left: 30px;
}