* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
button,
select,
textarea {
  font-family: "Poppins", sans-serif;
}

body {
  background: #e5e5e5;
}

body::before {
  content: "";
  width: 100%;
  height: 23rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: #121214;
}

.page {
  width: 46rem;
  margin: auto;
}

header {
  width: 19.9rem;
  margin-top: 4.6rem;
}

header h1 {
  font-family: "Archivo", sans-serif;
  font-weight: bold;
  font-size: 2.2rem;
  line-height: 2.6rem;
  color: white;
  margin-bottom: 1.5rem;
}

header p {
  font-size: 1rem;
  line-height: 1.6rem;
  color: #42d3ff;
}

form {
  margin-top: 2.3rem;
  background: #fafafc;
  border-radius: 0.5rem 0.5rem 0 0;
  min-height: 18.7rem;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

fieldset {
  border: none;
}

.fieldset-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

fieldset legend {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2.1rem;
  width: 100%;
  border-bottom: 1px solid #e6e6f0;
  padding-bottom: 1rem;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.input-wrapper label,
.checkbox-wrapper label {
  font-size: 0.87rem;
  line-height: 1.5rem;
  color: #29272c;
  margin-bottom: 0.5rem;
}

.input-wrapper label span {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: #8f8d95;
}

.input-wrapper label span:hover {
  color: #6c6a71;
}

.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
  background: #fafafc;
  border: 1px solid #e6e6f0;
  border-radius: 0.5rem;
  height: 3.5rem;
  padding: 0 1.5rem;
  color: #6c6a71;
  font-size: 1rem;
  line-height: 1.625rem;
}

.input-wrapper textarea {
  padding: 0;
  height: 10.5rem;
}

.input-wrapper select {
  appearance: none;
  -webkit-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1_54)'%3E%3Cpath d='M8 10L12 14L16 10' stroke='%239C98A6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1_54'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: right 1.5rem top 50%;
}

.col-3 {
  display: flex;
  gap: 20px;
}

.col-3 > div:nth-child(1) {
  width: 100%;
}

.checkbox-wrapper {
  position: relative;
}

.checkbox-wrapper label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.checkbox-wrapper input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0;
}

.checkbox-wrapper label::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  border: 1px solid #e6e6f0;
  border-radius: 0.5rem;
}

.checkbox-wrapper input:checked + label::before {
  background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='24' height='24' rx='8' fill='%23FAFAFC' stroke='%23E6E6F0'/%3E%3Cg clip-path='url(%23clip0_2802_21)'%3E%3Cpath d='M10 17.17L5.83 13L4.41 14.41L10 20L22 8L20.59 6.59L10 17.17Z' fill='%2342D3FF'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2802_21'%3E%3Crect width='24' height='24' fill='white' transform='translate(1 1)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
}

.checkbox-wrapper input:focus + label::before {
  outline: 2px solid black;
}

footer {
  height: 8.5rem;
  display: flex;
  flex-direction: column;
  background: #f0f0f4;
  padding: 2.5rem 4rem;
  margin-bottom: 6.25rem;
  border-top: 1 px solid #d6d6d6;
  border-radius: 0 0 0.5rem 0.5rem;
}

footer .button {
  height: 3.5rem;
  background: #04d361;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  font-family: Archivo;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.625rem;
}

footer .button:hover {
  background: #08a04c;
}

input:invalid {
  border: 1px solid #FF1010;
}
