input.is-invalid,
select.is-invalid {
  border: 1px solid red !important;
}

.error-text{
  color: red;
  font-size: 0.9em;
  text-align: left;
}

#create-head{
  background: linear-gradient(to right, #1e90ff, #13125e);
  color: #fff;
  font-weight: bold;
  min-width: 50%;
  padding: 2em 1em;
  text-align: left;
  border-radius: 4px 4px 0 0;
  font-size: 1.1em;
  margin: -1em 0 2em 0;
}

.reg-dtls-section {
  padding: 0 1em;
  margin-bottom: 2rem;
}

.section-head {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: left;
  font-style: italic;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 0.85rem;
}

.checkbox-label {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reg-btn {
  width: 100%;
  flex: 1;
  padding: 0.75em 1em;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: #0d0d0d;
  font-size: 0.85rem;
  background-color: #32ff7e;
}

.reg-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #198754;
  color: #fff;
}

/* Desktop */
@media (min-width: 992px) {

  .input-container{
    display: flex;
    margin: 1.5em 0;
  }

  label{
    width:30%;
    margin-top:0;
    align-content: center;
  }

  .reg-btn {
    max-width: 40%;
    display: block;
    font-size: 0.95rem;
  }

  .section-head {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  select {
    width: 80%;
    margin-top: 0;
  }

  .checkbox-sec{
    display: flex;
    justify-content: center;
  }

  .checkbox-label{
    display: flex;
    justify-content: center;
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .reg-btn {
    max-width: 25%;
    display: block;
  }
  
  
}

/* Input wrapper to align error message above input on desktop */
.input-field-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Desktop-specific overrides */
@media (min-width: 992px) {
  .input-container {
    display: flex;
    margin: 1.5em 0;
    align-items: flex-start;
  }

  .input-container label {
    width: 30%;
    margin-top: 0.6rem;
  }

  .input-field-wrap {
    width: 70%;
    display: flex;
    flex-direction: column;
  }

  .input-field-wrap .error-text {
    margin-bottom: 0.3rem;
  }
}
