@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sen:wght@400;700;800&display=swap");

:root {
  --primary-color: rgb(12, 75, 129);
  --secondary-color: rgb(210, 210, 210);
  --text-color: rgb(255, 255, 255);
  --field-color: rgb(255, 255, 255);

  --field-text-color: rgb(62, 63, 94);
  --bg-color: rgb(255, 255, 255);
  --heading-color: rgb(255, 255, 255);
  --text-color-2: rgb(48, 47, 69);
  --label-color: rgb(175, 176, 192);
  --border-color: rgb(222, 222, 234);
}

body {
  font-family: "Jost";
  width: 100%;
}
main {
  background-image: url(../images/bg.png);
  background-color: rgb(26, 59, 137);
  background-size: cover;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-bar {
  display: flex;
  justify-content: space-between;
  height: auto;
  width: 100%;
  background-color: rgb(26, 59, 137);
}
.step-bar .bar {
  background-color: var(--secondary-color);
  width: 18%;
  height: 30px;
  overflow: hidden;
}
.step-bar .bar .fill {
  background-color: var(--primary-color);
  transition: 0.5s linear;
  width: 0;
  height: 100%;
}
form {
  display: grid;
  height: 100%;
}
.wrapper {
  padding: 150px 0 50px 0;
  width: 85%;
  margin: 0 auto;
  height: 100%;
}
.steps {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quiz-question {
  border: SOLID 2px var(--field-color);
  border-radius: 10px;
  background-color: transparent;
  width: 100%;
  height: 200px;
  position: relative;
  font-size: 50px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 0 40px 0 0;
}
.quiz-question::before {
  content: "";
  display: inline-block;
  height: 102%;
  min-width: 25px;
  border-radius: 20px;
  background-color: var(--field-color);
  position: relative;
  left: -2px;
  margin-right: 40px;
}
fieldset {
  margin-top: 70px;
  flex: 1;
  overflow: hidden;
}

.radio-field {
  width: 100%;
  height: 110px;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 20px;
}
.radio-field input {
  -webkit-appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: rgb(255, 255, 255);
  cursor: pointer;
  border: solid 2px transparent;
  transition: 0.5s;
}
.radio-field label {
  font-size: 30px;
  color: var(--secondary-color);
  font-weight: bold;
  position: relative;
  z-index: 10;
  pointer-events: none;
  display: flex;
  height: 100%;
  align-items: center;
  transition: 0.5s;
}
.radio-field label::before {
  content: "X";
  width: 120px;
  height: 100%;
  display: inline-block;
  background-color: var(--secondary-color);
  overflow: hidden;
  margin-right: 50px;
  font-size: 50px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  display: grid;
  place-items: center;
  transition: 0.5s;
}
.radio-field .op1::before {
  content: "A";
}
.radio-field .op2::before {
  content: "B";
}
.radio-field .op3::before {
  content: "C";
}
.radio-field .op4::before {
  content: "D";
}
.radio-field input:checked {
  border-color: var(--primary-color);
}
.radio-field input:checked::before {
  content: "";
  position: absolute;
  border-left: solid 3px var(--primary-color);
  border-bottom: solid 3px var(--primary-color);
  top: 50px;
  right: 30px;
  width: 25px;
  height: 15px;
  transform: rotate(-45deg);
  opacity: 0;
  z-index: 1000;
}
.radio-field input:checked ~ label {
  color: var(--primary-color);
}
.radio-field input:checked ~ label::before {
  background-color: var(--primary-color);
}

.next-prev {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}
.next-prev button {
  border: solid 1px var(--field-color);
  border-radius: 6px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
  min-width: 234px;
  height: 72px;
  font-size: 18px;
  color: rgb(124, 120, 120);
  font-weight: bold;
  text-transform: uppercase;
}
.next-prev .next,
.next-prev .apply {
  background-color: var(--primary-color);
  color: rgb(255, 255, 255);
  border-color: transparent;
}
.next-prev button i {
  margin: 0 10px;
  position: relative;
  top: 1;
}

.avatar {
  width: auto;
  margin-top: 70px;
}
#error div {
  position: fixed;
  top: 20px;
  left: 20px;
}

/* modifications */
.form {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 100000;
}
.form form {
  border-radius: 12px;
  background-color: var(--bg-color);
  box-shadow: 0px 0px 60px 0px rgba(94, 92, 154, 0.12);
  margin: 0 auto;
  padding: 65px;
  padding-bottom: 30px;
  width: 25%;
  height: max-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.form-title {
  font-size: 26px;
  color: var(--text-color-2);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}
.input-field {
  margin-bottom: 30px;
  transition: 0.4s;
  position: relative;
  display: grid;
  align-items: center;
  opacity: 0;
  width: 100%;
  height: 52px;
  min-height: 52px;
  background-color: var(--bg-color);
  z-index: 10;
}
.input-field input {
  border: solid 1px var(--border-color);
  border-radius: 12px;
  width: 100%;
  transition: 0.4s;
  height: 100%;
  padding-left: 20px;
  font-size: 20px;
  color: var(--field-text-color);
  font-weight: bold;
}
.input-field input:focus {
  outline: 0;
  border-color: var(--primary-color);
}
.input-field label {
  font-size: 20px;
  color: var(--label-color);
  position: absolute;
  left: 17px;
  transition: 0.4s;
  pointer-events: none;
  width: max-content;
  padding: 0 3px;
  background-color: var(--bg-color);
}
.input-field:focus-within label {
  transform: translatey(-24px);
  font-size: 15px !important;
}
.input-field input:valid + label {
  transform: translatey(-24px);
  font-size: 15px;
}
.input-field input:invalid + label {
  font-size: 20px;
}

.start-btn {
  width: 100%;
  height: auto;
}
.start-btn button {
  border-radius: 12px;
  background-color: var(--primary-color);
  width: 100%;
  transition: 0.4s;
  height: 54px;
  font-size: 20px;
  margin-bottom: 40px;
  border: 0;
  position: relative;
  color: var(--heading-color);
  font-weight: bold;
  overflow: hidden;
}

.start-btn button::before {
  content: "GO!";
  font-size: 20px;
  font-weight: bold;
  background-color: var(--field-text-color);
  color: var(--heading-color);
  line-height: 54px;
  display: block;
  transition: 0.4s;
  height: 100%;
  position: absolute;
  top: 0;
  left: -65px;
  width: 65px;
}
.start-btn button:hover::before {
  left: 0;
}
.start-btn button:hover {
  padding-left: 65px;
}
.invalid {
  border: solid 2px #ff4444 !important;
  position: relative;
}

#countdown {
  width: 143px;
  height: 68px;
  border-radius: 10px;
  background-color: rgb(3, 3, 3);
  font-size: 30px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
}
.result_msg img {
  width: 150px;
  margin-top: 20px;
}
