@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;500;600;700;800&display=swap");

:root {
  --primary-color: rgb(65, 29, 13);
  --secondary-color: rgb(255, 255, 255);
  --text-color: rgb(0, 0, 0);
}
body {
  width: 100%;
  height: auto;
  font-family: "Jost";
  position: relative;
}
main {
  width: 100%;
  min-height: 100vh;
  background-image: url(../images/bg.jpg);
  background-size: cover;
  display: flex;
  flex-direction: column;
}
.wrap {
  width: 100%;
  flex: 1;
  display: grid;
  padding: 0px 50px 0px 100px;
}
.steps {
  width: 59.5%;
  padding-top: 120px;
  padding-bottom: 50px;
}
.side {
  width: 39.5%;
}
.option {
  width: 235px;
  height: 235px;
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  --marginRight: 30px;
  margin-right: var(--marginRight);
  padding: 40px;
}
.option::before {
  content: "";
  background-color: transparent;
  width: calc(100% + var(--marginRight));
  height: 60px;

  position: absolute;
  bottom: -60px;
  left: 50%;
  border-left: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}
.option:last-child::before {
  border-bottom: 0;
}
.option:last-child {
  margin-right: 0;
}
.option input {
  -webkit-appearance: none;
  background-color: var(--secondary-color);
  width: 100%;
  height: 100%;
  border: solid 5px transparent;

  position: absolute;
  top: 0;
  left: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.5s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.option label {
  font-size: 32px;
  color: rgb(186, 186, 186);
  font-weight: bold;
  position: relative;
  pointer-events: none;
  transition: 0.5s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.option input:checked {
  border-color: var(--primary-color);
}
.option input:checked ~ label {
  color: var(--primary-color);
}
.option.selected::before {
  border-left-color: var(--primary-color);
}
.question {
  margin-top: 110px;
  border-radius: 16px;
  background-color: rgb(255, 255, 255);
  height: 258px;
  width: 100%;
  padding: 55px;
  padding-right: 0;
  font-size: 49px;
  color: rgb(0, 0, 0);
  font-weight: bold;
}

.question .stepNumber {
  font-size: 22px;
  color: rgb(3, 3, 3);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.nextPrev {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.nextPrev button {
  margin-top: 20px;
  border: solid 1px var(--secondary-color);
  font-size: 16px;
  color: rgb(124, 120, 120);
  font-weight: bold;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 2px 17px 0px rgba(0, 0, 0, 0.03);
  width: 206px;
  height: 63px;
  text-transform: uppercase;
}
.nextPrev button.next,
.nextPrev button.apply {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}
.nextPrev button i {
  margin-right: 10px;
  transition: 0.5s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nextPrev button:hover i {
  transform: translateX(-15px);
}
.nextPrev button.next:hover i,
.nextPrev button.apply:hover i {
  transform: translateX(15px);
}
.nextPrev button.next i,
.nextPrev button.apply i {
  margin-right: 0;
  margin-left: 10px;
}
.side img {
  padding-top: 120px;
  width: 80%;
  height: 100%;
  object-fit: cover;
  margin-left: 100px;
}
.side .stepBar {
  position: absolute;
  top: 0;
  right: 0;
  border: solid 2px var(--secondary-color);
  border-top: 0;
  border-bottom: 0;
  width: 30px;
  height: 100%;
  background-color: var(--primary-color);
}
.side .stepBar .fill {
  background-color: var(--secondary-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  width: 70%;
  margin: 0 auto;
  height: 100%;
  transition: 0.5s all cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
#error {
  position: fixed;
  top: 20px;
  left: 20px;
}
