/* Не применяется к псевдоэлементам нуж писать *::before отдельно и туда свойство */

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  /* Центрируем */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form {
  border: 2px solid #000;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  padding: 30px;
  background: radial-gradient(circle,rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
  box-shadow: 5px 20px 50px #000;
}

.form-group {
  border: none;
  padding: 0;
}

.form-group-title {
  font-size: 18px;
  font-weight: bold;
  padding: 0;
  margin-bottom: 15px;
}

.label {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.input,
.textarea {
  margin-bottom: 20px;
  width: 100%;
  outline: none;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 5px 10px;
}

.textarea {
  resize: vertical;
  max-height: 200px;
  min-height: 100px;
  display: block;
}

.checkbox-label {
  padding-left: 22px;
}

.checkbox {
  position: absolute;
  appearance: none; /* Скрывает checkbox */
  outline: none;
}

/* Стилизация checkbox */
.checkbox::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: -22px;
  border: 2px solid #fc7c7c;
  border-radius: 4px;
  cursor: pointer;
}

/* Иконка для checkbox */
.checkbox:checked::after {
  background: url(../images/check-icon.svg) no-repeat center, #ffb0b0;
}

.checkbox-text {
  font-size: 12px;
}

.button {
  border: none;
  border: 2px solid #fc7c7c;
  background-color: #ffb0b0;
  border-radius: 10px;
  padding: 6px 18px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

.button:active {
  background-color: #ff5353;
}

.input:focus-visible,
.textarea:focus-visible,
.checkbox:focus-visible:after,
.button:focus-visible {
  outline: 2px solid #ffb0b0;
  outline-offset: 1px;
}
