:root {
  --white: #f3f3f3;
  font-size: 10px;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (max-width: 300px) {
  body {
    min-width: 300px;
  }
}

body {
  color: var(--white);
  font-family: monospace;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: linear-gradient(
      115deg,
      rgba(42, 30, 2, 0.8),
      rgba(53, 39, 8, 0.8)
    ),
    url(https://images.pexels.com/photos/2647933/pexels-photo-2647933.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.container {
  margin: 3.125rem auto 0 auto;
  width: 100%;
}
@media (min-width: 476px) {
  .container {
    max-width: 448px;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

form {
  background-color: rgba(62, 45, 4, 0.6);
  padding: 0.25rem;
  border-radius: 0.6%;
}

@media (min-width: 476px) {
  form {
    padding: 2.5rem;
  }
}

h1 {
  font-size: 3em;
}

h1 > span {
  color: #29012e;
  font-weight: bolder;
}

p {
  font-size: 1.6rem;
}

label {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

input,
button,
select,
textarea {
  margin: 0;
  line-height: inherit;
  font-size: 1.6;
}

button {
  border: none;
}

#short-description {
  font-style: italic;
  font-weight: 200;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.text-center {
  text-align: center;
}

.group-form {
  display: block;
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;
}

.group-form > p {
  margin-bottom: 0.5rem;
}

::placeholder {
  color: #c79dee;
}

.control-input {
  display: block;
  width: 100%;
  height: 3.375rem;
  padding: 0.375rem 0.75rem;
  background-color: white;
  background-clip: padding-box;
  border: 2px solid #ced4da;
  border-radius: 0.35rem;
  transition: border 0.2s ease-in-out;
  outline: none;
  color: #c79dee;
}

.control-input:focus {
  border: 2px solid #c79dee;
  background-color: #e8e3ee;
}

.check-input,
.radio-input {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}

/* RADIO RADIO RADIO */

.radio-input {
  opacity: 0;
  height: 0;
  width: 0;
}

.contenitore {
  position: relative;
}

.spunta {
  position: absolute;
  background-color: var(--white);
  height: 10px;
  width: 10px;
  top: 0.6rem;
  left: 0;
  border-radius: 100%;
}

.contenitore:hover input ~ .spunta {
  background-color: #c79dee;
}

.contenitore input:checked ~ .spunta {
  background-color: #29012e;
  border: 1.7px solid #e8e3ee;
}

/* CHECK BOX CHECK BOX */

.check-input {
  opacity: 0;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  background-color: var(--white);
  height: 10px;
  width: 10px;
}

.labclass:hover input ~ .checkmark {
  background-color: #c79dee;
}
.labclass input:checked ~ .checkmark {
  background-color: #29012e;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.labclass input:checked ~ .checkmark:after {
  display: block;
}

.container .checkmark:after {
  left: 4px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #e8e3ee;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.button-input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: grey;
  color: inherit;
  border-radius: 2px;
  cursor: pointer;
  font-weight: bolder;
  font-size: 1.6rem;
}

.textarea-input {
  min-height: 120px;
  width: 100%;
  padding: 0.625rem;
  resize: vertical;
  outline: none;
  background-color: white;
  border: 2px solid grey;
  transition: 0.2s background-color ease-in-out;
}
.textarea-input:focus {
  background-color: #e8e3ee;
  border: 2px solid #c79dee;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-green);
  border-radius: 2px;
  cursor: pointer;
}

.button-input:hover {
  color: #29012e;
}
