* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
select,
textarea {
  font-family: 'Poppins', sans-serif;
}

h3 {
  color: #535971;
  font-family: 'Staatliches', cursive;
  font-weight: normal;
  margin-bottom: 11px;
}

body {
  background: #e5e5e5;
}

body::before {
  content: '';
  width: 100%;
  height: 436px;

  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: #535971;
}

.page {
  width: 750px;
  margin: 0 auto;
}

header {
  width: 417px;

  margin-top: 100px;
}

header h1 {
  font-family: 'Staatliches', cursive;
  font-weight: bold;
  font-size: 48px;
  line-height: 60px;
  color: #ffffff;
}

header p {
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
}

form {
  margin-top: 58px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  min-height: 300px;

  padding: 64px;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

fieldset {
  border: none;
}

.fieldset-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

fieldset legend {
  font-family: 'Staatliches', cursive;
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  color: #535971;

  width: 100%;

  border-bottom: 1px solid #e6e6f0;
  padding-bottom: 16px;

  margin-bottom: 16px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.input-wrapper label {
  font-size: 14px;
  line-height: 24px;

  color: #4e4958;

  margin-bottom: 8px;
}

.input-wrapper label span {
  margin-left: 5px;
  font-size: 12px;
  line-height: 20px;

  color: #c1bccc;
}

.input-wrapper label span:hover {
  color: #807e86;
}

.col-2 {
  display: flex;
  gap: 22px;
  width: 100%;
}

.col-3 {
  display: flex;
  gap: 10px;
  margin-bottom: 58px;
}

.col-4 {
  display: flex;
  gap: 10px;
}

.input-wrapper input {
  background: #fafafc;

  border: 1px solid #e6e6f0;
  border-radius: 8px;

  height: 56px;

  padding: 0 24px;
}

footer {
  background: #535971;

  height: 160px;

  display: flex;
  flex-direction: column;
  border-radius: 0 0 20px 20px;

  padding: 52px 71px;

  margin-bottom: 130px;
}

footer .button {
  background: #ff5374;
  height: 55px;
  border-radius: 20px;
  border: 0;

  font-family: 'Staatliches';
  font-size: 20px;
  line-height: 26px;

  color: #ffffff;
}

footer .button:hover {
  background: #df4463;
}

input:focus {
  outline: none;
}

input:invalid:focus {
  border: 1px solid #ff1010;
  animation: shake 0.2s 2;
}

@keyframes shake {
  25% {
    translate: 6px 0;
  }
  50% {
    translate: -6px 0;
  }
  75% {
    translate: 6px 0;
  }
}
