/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form .form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form .form-heading {
  font-family: Ubuntu;
  font-size: 24px;
  font-weight: 400;
  line-height: 31.2px;
  text-align: left;
  color: var(--main-color);
}

.form .form-description {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 300;
  line-height: 20.8px;
  text-align: left;
  color: var(--main-color);
  padding-top: 10px;
}

.form-fieldset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: none;
}

.form .form-input {
  min-width: 288px;
  width: 100%;
  height: 56px;
  padding: 5px 16px 5px 16px;
  border-radius: var(--border-radius);
  border: 1px solid #bfc0c5;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 300;
  line-height: 20.8px;
  text-align: left;
  color: var(--main-color);
  outline: 1px solid #bfc0c5;
}

.form .form-input:focus {
  outline: 1px solid var(--main-color);
}

.form .form-input::placeholder {
  color: #bfc0c5;
}

.form .form-label {
  font-family: Ubuntu;
  font-size: 14px;
  font-weight: 300;
  line-height: 18.2px;
  text-align: left;
  color: var(--main-color);
}

.form .form-label span {
  color: #df0611;
}

.form .form-input.error {
  border-color: #df0611;
  outline: 0.5px solid #df0611;
}

.form .form-label.error {
  color: #df0611;
}

.form .filled {
  border: 1px solid #353535;
  color: var(--main-color);
}

.form .form-button {
  min-width: 288px;
  width: 100%;
  height: var(--btn-height-mobile);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-radius: var(--border-radius);
  border: 1px solid #df0611;
  background-color: #ffffff;
  color: #df0611;
  margin-top: 14px;
}

.form .active {
  border: none;
  background-color: #df0611;
  color: #ffffff;
}

.form button span {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  text-align: left;
}

.form .readonly-fieldset {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border: none;
  border-bottom: 1px solid #bfc0c5;
  padding-bottom: 8px;
}

.form .form-label-readonly {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 300;
  line-height: 20.8px;
  text-align: left;
  color: var(--main-color);
  margin-left: 12px;
}

.form .form-input-readonly {
  width: auto;
  border: none;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  text-align: right;
  color: var(--main-color);
}

@media (min-width: 1280px) {
  .form {
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
  }

  .form .form-description {
    font-size: 16px;
    font-weight: 300;
    line-height: 20.8px;
    letter-spacing: 0.16px;
    text-align: left;
  }

  .form .form-description {
    padding: 0 0 20px;
  }

  .form-fieldset {
    gap: 6.5px;
  }

  .form .form-input {
    min-width: 260px;
    width: 260px;
  }

  .form .form-label {
    font-family: Ubuntu;
    font-size: 14px;
    font-weight: 300;
    line-height: 18.2px;
    text-align: left;
  }

  .form .form-button {
    min-width: 260px;
    width: 260px;
    margin-top: 0;
  }

  .form .form-wrapper {
    gap: 60px;
  }

  .form .form-heading {
    font-family: Ubuntu;
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    text-align: left;
    color: var(--main-color);
  }

  .form .readonly-fieldset {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: none;
    border-bottom: 1px solid #bfc0c5;
  }

  .form .form-label-readonly {
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 300;
    line-height: 20.8px;
    letter-spacing: 0.16px;
    text-align: left;
    color: var(--main-color);
    margin-left: 12px;
  }

  .form .form-input-readonly {
    width: auto;
    border: none;
    font-family: Ubuntu;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    text-align: right;
    color: var(--main-color);
  }
}
