.container-rg {

  border-radius: 6px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-top: 5vh;
}

.container-rg header {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px; /* Adjusted margin */
}

.container-rg header::before {
  content: "";
  display: block;
  height: 3px;
  width: 27px;
  border-radius: 8px;
  background-color: #1294d3;
  margin-bottom: 16px; /* Adjusted margin */
}

.container-rg form {
  margin-top: 16px;
  background-color: #fff;
}

.form.first {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.form.first div {
  width: 100%;
}
.container-rg form .form {
  background-color: #fff;
  transition: 0.3s ease;
}

.container-rg form .form.second {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

form.secActive .form.second {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.container-rg form .title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.container-rg form .fields {
  display: flex;
  align-items:self-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

form .fields .input-field {
  display: flex;
  width: 48%;
  flex-direction: column;
  margin: 4px 0;
justify-content: baseline; 
}

.input-field label {
  font-size: 13px;
  font-weight: 500;
  color: #2e2e2e;
}


.input-field input, 
select {
  outline: none;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  border-radius: 3px;
  border: 1.8px solid #aaaaaa38;
  padding: 0 15px;
  height: 42px;
  margin: 8px 0;
}

.input-field input::placeholder, .input-field textarea::placeholder{
color: #aaaaaada;
 
}
.input-field textarea{
   outline: none;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  border-radius: 3px;
  border: 1.8px solid #aaaaaa38;
  padding: 10px 15px;
  margin: 8px 0;
}

.input-field input:focus,
.input-field textarea:focus
.input-field select:focus {

  border: 1.8px solid #3a7dd5;
}

.input-field select,
.input-field input[type="date"] {
  color: #4e4d4d;
}

.input-field input[type="date"]:valid {
  color: #333;
}

.container-rg form button.nextBtn,
.inquireBtn,
.backButton,
.submitBtn,
.cancelBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  max-width: 200px;
  width: 100%;
  border: none;
  outline: none;
  color: #fff;
  border-radius: 5px;
  margin: 25px 0;
  background-color: #3b7ed5;
  transition: all 0.3s linear;
  cursor: pointer;
}
.required{
  color: red;
 
}

.input-field_info_details{
  font-size: 12px;
  color: grey;
}
.backBtn {
  background-color: #06b51e;
}

.container-rg form button.nextBtn:hover,
.inquireBtn:hover,
.backButton:hover,
.submitBtn:hover,
.cancelBtn:hover {
background-color: #50859f !important;
}


.cancelBtn, .backButton {
  background-color: #8696a7;
}
.py-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

.py-buttons-py {
  display: flex;
  justify-content: space-between;margin: 0 auto;
  width: 50% !important;

}
.container-rg form .addBtn {
  color: #1294d3;
  margin: 25px 0;
  transition: all 0.3s linear;
  cursor: pointer;
}

.container-rg form .addBtn:hover {
  color: #000;
}

.container-rg form .btnText {
  font-size: 14px;
  font-weight: 400;
}

form button.nextBtn:hover,
.inquireBtn:hover {
  background-color: #265df2;
}

form button i,
form .backBtn i {
  margin: 0 6px;
}

form .backBtn i {
  transform: rotate(180deg);
}

form .buttons {
  display: flex;
  align-items: center;
}

form .buttons button,
.backBtn {
  margin-right: 14px;
}

@media (max-width: 750px) {
  .container-rg form {
    overflow-y: scroll;
  }
  .container-rg form::-webkit-scrollbar {
    display: none;
  }
  form .fields .input-field {
    width: calc(100% / 2 - 15px);
  }
}

@media (max-width: 550px) {
  form .fields .input-field {
    width: 100%;
  }
}
