.form-container {
  min-height: 100vh;
  padding: 3rem 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ref-doctor-container-form */
.form-wrapper-controller .form-container {
  display: block;
}
.ref-doctor-container-form .form-wrapper header {
  padding-top: 3rem;
}
.form-wrapper header img {
  width: 250px;
}
.steps-area {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}
.steps-area img {
  display: none;
  pointer-events: none;
}
.steps-area img.active {
  display: block;
}
.form-container .form-wrapper {
  width: 90%;
  margin: 0rem auto;
  background: white;
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
  border-radius: 30px;
}

.form-wrapper header {
  display: flex;
  height: 80px;
  padding: 0px 2rem;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 0rem;
}

.form-wrapper header h1 {
  color: #00a3c8;
  font-size: 25px;

  word-wrap: break-word;
}
.form-wrapper .step > h1 {
  color: #00a3c8;
  font-size: 30px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
}

.form-wrapper .step {
  padding: 10px 20px;
}

.form-wrapper input,
.form-wrapper textarea {
  background: white;
  border-radius: 10px;
  border: 0.5px rgba(0, 0, 0, 0.15) solid;
  height: 60px;
  padding: 0rem 1rem;
}

.form-wrapper .grid-2 {
  grid-column: span 2;
}
.form-wrapper textarea {
  padding-top: 1rem;
  height: 204px;
  resize: none;
}
.form-wrapper label {
  color: #000;
  font-size: 16px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  top: 20px;
  left: 15px;
  background-color: #fff;
  width: unset;
  display: inline-block;
  right: unset;
  height: unset;
  bottom: unset;
  padding: 0px 5px;
}

.error {
  font-size: 15px;
  font-family: "interSemiBold";
  margin-bottom: 0px;
  background-color: #fcecee;
  color: #ee0000 !important;
  width: 100%;
  display: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 20px !important;
  margin-bottom: 2rem !important;
}
.error-final {
  font-size: 15px;
  margin-bottom: 0px;
  background-color: #fcecee;
  color: #ee0000 !important;
  padding: 0px 20px;
  border-radius: 5px;
  font-size: 20px !important;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-left: 1rem;
  margin-right: 1rem;
  font-family: "interSemiMedium";
  display: none;
}
.error-final.active {
  display: flex;
}

.error.active {
  display: block;
}
.form-wrapper input:focus + label,
.form-wrapper .mdl-textfield.is-dirty label,
.form-wrapper textarea:focus + label {
  bottom: unset;
  top: -8px !important;
  color: #00a3c8 !important;
  font-size: 12px;

  word-wrap: break-word;
}
.form-wrapper input:focus,
.form-wrapper .mdl-textfield.is-dirty input,
.form-wrapper textarea:focus {
  border-color: #00a3c8 !important;
}
.form-wrapper .input-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
}
.form-wrapper .input-container > * {
  width: 100%;
  padding-bottom: 0px;
  padding-top: 0px;
}

.form-wrapper .button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 25px;
}
.form-wrapper .justify-between {
  justify-content: space-between;
}
.form-wrapper .button-wrapper button,
.form-wrapper .button-wrapper a {
  color: white;
  font-size: 18px;

  word-wrap: break-word;
  background-color: #00a3c8;
  padding: 15px 20px;
  cursor: pointer;
  width: 160px;
  border-radius: 10px;
  border: none;
  outline: none;
}
.form-wrapper .button-wrapper .submit-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.form-wrapper .justify-between .back {
  color: #5a5a5a;
  background-color: #e1e1e1;
}

/* step2 */

.checkbox-wrapper {
  display: flex;
  align-items: center;
}
.checkbox-wrapper p {
  color: black;
  font-size: 18px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  margin-left: 1rem;
  margin-bottom: 0px;
}
.step2 .checkbox-wrapper {
  position: relative;
}
p.error-second {
  grid-column: span 2;
  font-size: 17px;
  font-family: "interSemiBold";
  color: #ee0000;
  margin-bottom: 0px;
  background-color: #fcecee;
  width: 100%;
  padding: 15px 20px !important;
  border-radius: 5px;

  display: none;
}
p.error-second.active {
  display: block;
}
.error-fourth {
  margin-bottom: 2rem !important;
}
.error-sixth {
  margin-bottom: 3rem !important;
}
.checkbox-wrapper input {
  display: none;
}
.checkbox-wrapper label {
  width: 25px;
  height: 25px;
  background: white;
  border-radius: 7px;
  border: 0.5px rgba(0, 0, 0, 0.15) solid;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.checkbox-wrapper input:checked + label {
  background-color: #00a3c8;
  border-color: transparent;
}
/* step3 */

.step3 .theets-image {
  max-width: 1451px;
  width: 85%;
  display: block;
  margin: 3rem auto;
}

/* step4 */

.step4 .selectDateWrapper {
  display: flex;
  align-items: center;
}
.step4 .selectDateWrapper > label {
  width: 166px;
  height: 41px;
  background-color: #f6f6f6;
  color: #626262;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;

  word-wrap: break-word;
  margin-left: 2rem;
  cursor: pointer;
}

.select-wrapper select {
  border-radius: 20px;
}

.step4 .uploader-area > h1 {
  color: #b3b3b3;
  font-size: 15px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  margin-top: 0px;
  margin-bottom: 20px;
}
.step4 .uploader-area > .files-wrapper {
  background: white;
  border-radius: 10px;
  min-height: 70px;
  padding: 10px 10px;
  border: 0.5px rgba(0, 0, 0, 0.15) solid;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}
.step4 .uploader-area > .files-wrapper input {
  display: none;
}
.step4 .uploader-area > .files-wrapper label {
  background: #e1e1e1;
  border-radius: 10px;
  border: 0.5px rgba(0, 0, 0, 0.15) solid;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 15px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  height: 50px;
  width: 130px;
  min-width: 130px;
  margin-right: 1rem;
  cursor: pointer;
}
.step4 .uploader-area > .files-wrapper > p {
  color: black;
  font-size: 16px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  margin: 0px;
  color: #b3b3b3;
}

/* step5 */
.step5 .input-container-inner .top-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 20%;
}
.step5 .input-container-inner .top-area h1 {
  color: black;
  font-size: 20px;
  font-family: Inter;
  font-family: "interSemiMedium";
  word-wrap: break-word;
  margin-right: 4rem;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.step5 .checkbox-inner-flex {
  display: flex;
  align-items: center;
}

.step5 .checkbox-inner-flex > * + * {
  margin-left: 2rem;
}

.step5 .input-container-inner .input-container {
  margin-top: 20px;
}

.step5 .input-container .blue {
  color: #00a3c8;
  font-size: 30px;
  font-family: Inter;
  font-family: "interSemiMedium";
  margin-bottom: 0rem;
}

.step:not(.active) {
  display: none;
}

/* teeths-wrapper */
.teeths-wrapper {
  width: 100%;
  margin: 0rem auto;
  display: grid;
  grid-gap: 3rem;
  grid-row-gap: 0px;
  margin-bottom: 3rem;
  grid-template-columns: 1fr;
}

.teeths-wrapper > h1 {
  color: #000;
  font-size: 25px;
  text-align: center;
  padding-left: 1rem;
}

.teeths-wrapper > div {
  flex: 1;
}
.teeths-wrapper .teeth-container-shadow {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;

  border-radius: 10px;
}
.teeths-wrapper *.left-teeth-areasone,
.teeths-wrapper .left-teeth-areasthree {
  border-bottom: none;
  padding-bottom: 3rem;
  padding-top: 2rem;
}

.teeths-wrapper .left-teeth-areastwo,
.teeths-wrapper .left-teeth-areasfour {
  border-top: none;
  padding-bottom: 3rem;
}

.teeth-boxes > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.teeth-boxes.reversing > div {
  justify-content: flex-start;
  gap: 5px;
}

.teeths-wrapper > div p {
  margin-top: 10px;
}
.teeths-wrapper > div img {
  width: 100%;
}
/* teeth-boxes */
.teeth-boxes {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0px 10px;
}
.teeth-boxes.teeth-boxes.reversing {
  align-items: flex-start;
}
.teeth-boxes input {
  display: none;
}
.teeth-boxes > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.teeth-boxes p {
  color: #000;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-family: "interSemiMedium";
  line-height: normal;
  margin: 0px;
}
.teeth-boxes label {
  width: 20px;
  height: 20px;
  margin-top: 10px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  padding: 0px;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}
.teeth-boxes input:checked + label {
  background-color: #00a3c8;
  border-color: transparent !important;
}
.teeth-boxes label img {
  width: 14px;
}
.teeths-wrapper > div:nth-child(2) {
  transform: translateY(0px) !important;
}
.step6 > h1 {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 4rem;
}
.form-wrapper .button-wrapper-6 {
  justify-content: center;
}
.form-wrapper .button-wrapper-6 a {
  width: unset;
  margin-bottom: 2rem;
}

.teeths-wrapper > .left-teeth-areas {
  margin-bottom: 0rem;
}
@media screen and (max-width: 1000px) {
  .form-wrapper header {
    display: flex !important;
    position: static !important;
    width: 100%;
  }
  .form-wrapper header img {
    width: 300px;
  }
  .form-wrapper header h1 {
    font-size: 18px;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
  }
  .steps-area img {
    width: 400px;
  }
  .form-wrapper .input-container {
    grid-gap: 10px;
  }
  .form-wrapper .button-wrapper button {
    font-size: 16px;
    padding: 12px 20px;
    width: 120px;
  }
  .form-wrapper .step > h1 {
    margin-top: 0px;
    font-size: 25px;
  }
  .step5 .input-container-inner .top-area {
    padding-right: 0px;
    margin-top: 2rem;
  }
  .step5 .input-container-inner .top-area h1 {
    font-size: 15px;
  }
  .step5 .input-container .blue {
    font-size: 25px;
  }
  .teeths-wrapper {
    grid-template-columns: 1fr;
  }

  .teeths-wrapper > h1 {
    margin-bottom: 1.5rem;
  }
  .teeth-boxes {
    margin-bottom: 0px;
  }
}

@media screen and (max-width: 1200px) {
  .left-teeth-areasthree > .teeth-boxes > * {
    transform: translateX(0px) !important;
  }

  .left-teeth-area-last > .teeth-boxes > * {
    transform: translateX(0px) !important;
  }
}
@media screen and (max-width: 800px) {
  .form-wrapper .input-container > * {
    grid-column: span 2;
  }
  .step4 .uploader-area > .files-wrapper {
    margin-bottom: 0px;
  }
  .step5 .input-container-inner .top-area {
    flex-direction: column;
    align-items: flex-start;
  }
  .step5 .input-container-inner .top-area > h1 {
    margin-bottom: 1rem !important;
    margin-right: 0px;
  }
  #antibioticsLabel {
    display: none;
  }
  .teeths-wrapper *.left-teeth-areasone,
  .teeths-wrapper .left-teeth-areasthree {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }
  .teeths-wrapper .left-teeth-areastwo,
  .teeths-wrapper .left-teeth-areasfour {
    padding-bottom: 1rem;
  }
}
@media screen and (max-width: 950px) {
  .referringDoctor .form-wrapper header {
    box-shadow: unset !important;
  }
}
@media screen and (max-width: 500px) {
  .referringDoctor .step1 .error-inner {
    position: static;
    margin-bottom: 0px;
  }
  .teeths-wrapper > div:nth-child(2) .teeth-boxes {
    padding-left: 5px;
    padding-right: 10px;
  }
  .teeths-wrapper > div:nth-child(3) .teeth-boxes {
    padding-left: 5px;
    padding-right: 10px;
  }
  .steps-area img {
    width: 300px;
  }
  .form-wrapper .step > h1,
  .step5 .input-container .blue {
    font-size: 20px;
  }
  .form-wrapper label {
    font-size: 14px;
  }
  .checkbox-wrapper p {
    font-size: 16px;
  }
  .step3 .theets-image {
    width: 100%;
  }
  .step4 .selectDateWrapper > label {
    font-size: 14px;
    width: 106px;
    height: 31px;
  }
  .step4 .uploader-area > .files-wrapper label {
    font-size: 14px;
    height: 40px;
    width: 100px;
  }
  .step4 .uploader-area > .files-wrapper > p {
    font-size: 14px;
  }
  .step4 .uploader-area > h1 {
    margin-bottom: 10px;
  }
  .step > *:last-child > *:last-child {
    margin-top: 3rem;
  }
  .form-wrapper header h1 {
    font-size: 14px;
  }
  .form-wrapper header img {
    width: 180px;
  }
  .form-wrapper header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .form-container .form-wrapper {
    width: 95%;
  }
  .teeths-wrapper {
    width: 100%;
  }
  .teeth-boxes p {
    font-size: 12px;
  }
  .teeth-boxes label {
    width: 12px;
    height: 12px;
  }

  .teeths-wrapper > div:nth-child(5) .teeth-boxes {
    padding-left: 10px;
    padding-right: 10px;
  }

  .teeths-wrapper > div:nth-child(6) .teeth-boxes {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.error-inner {
  display: none;
}
.form-wrapper .mdl-textfield.error-add input {
  border-color: #ee0000 !important;
}
.form-wrapper .mdl-textfield.error-add label {
  color: #ee0000 !important;
}
.error-add .error-inner {
  color: #ee0000;
  position: absolute;
  left: 15px;
  bottom: -45px;
  display: block;
}

.DateTakenWrapper > input:first-child {
  display: none;
}
.DateTakenWrapper > input:checked + div + input + label {
  background-color: #00a3c8;
  color: #fff !important;
  font-size: 18px !important;
}
.DateTakenWrapper > input:checked + div label {
  background-color: #00a3c8;
  border-color: transparent;
}
.DateTakenWrapper {
  position: relative;
}

.DateTakenWrapper > input[type="date"] {
  position: absolute;
  left: 165px;
  width: 166px;
  height: 41px;
  border-radius: 0px;
  background: transparent;
  outline: none;
  border: none;
  opacity: 0;
  display: none;
}
.DateTakenWrapper > input:checked + div + input {
  display: block;
}

.DateTakenWrapper input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}
