/* === FORMULARIO PRINCIPAL === */
.formulario {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
  width: 100%;
  font-family: "Fabrikat Mono", Sans-serif;
  text-transform: uppercase;
}

@media only screen and (min-width: 1340px) {
  .formulario {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-group {
  width: 100%;
  
  label {
    width: 100%;
  }
}

/* Form group más grande */
.form-group.bigger {
  width: 100%;

  label {
    width: 100%;
  }
}

@media only screen and (min-width: 1340px) {
  .form-group.bigger {
    grid-column: span 2;
  }

  .form-group.bigger.form-validation {
    grid-column: span 3;
  }

  .form-group.bigger.form-validation.aceptance-checkbox {
    grid-row-start: 5;
  }

  .form-group.bigger.form-validation.more18-checkbox {
    grid-row-start: 3;
  }

  .form-group.bigger.form-validation.more18-instructions {
    grid-row-start: 4;
  }

  .form-group.bigger.form-validation.more18-parent-title {
    grid-row-start: 7;
  }
}

/* === CAMPOS DE FORMULARIO === */
.form-label {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.27px;
}

.form-label.flex {
  gap: 0.5rem;
  display: flex;
  align-items: center;
}

/* === CHECKBOX PERSONALIZADO === */
.form-label.custom-checkbox {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 9px;
  user-select: none;
  padding-left: 28px;
}

.form-label.custom-checkbox.error .checkmark {
  border: 2px solid #e63344;
}

.form-label.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form-label.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

.form-label.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  background-image: url("./../../assets/img/icon-check.svg");
  background-size: cover;
}

.form-label.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.formulario {
  &.boletin {
    display: flex;
    flex-direction: column;

    .form-group.bigger {
      display: flex;
      width: 100%;
      max-width: 620px;

      .button {
        border: none;
        border-bottom: solid 1px black;
      }

      .form-control {
        font-size: 18px;
        padding: 21px 28px;
      }
    }
  }
    /* === CAMPOS DE TEXTO === */
  .form-control {
    outline: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    color: #000000;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #000;
    transition: border-color 0.3s ease;
    border-radius: 0;
    font-size: 10px;
    text-transform: uppercase;
  }

  .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
  }

  .form-control:hover,
  .form-control:focus {
    border-bottom: 1px solid var( --e-global-color-4f46962 );
  }

  .form-control.error {
    border-bottom: 1px solid #e63344;
  }

  .dr-error-msg {
    font-size: 7px;
    color: #e63344;
    margin-top: 0.25rem;
  }
}

  #dr-form-msg, #dr-form-msg-boletin {
    font-family: "Fabrikat Mono", Sans-serif;
    font-size: 12px;
  }

/* === INSTRUCCIONES MENORES DE EDAD === */
.form-validation.more18-instructions .form-instructions {
  font-size: 9px;
  line-height: 10px;
  color: black;
  margin: 0;
  list-style: none;
  padding-left: 1rem;
}

/* === CAMPOS PARENT (SOLO SI MENOR DE EDAD) === */
.form-validation.more18-field {
  grid-row-start: 7;
}

@media screen and (min-width: 1340px) {
  .form-validation.more18-aceptance-checkbox {
    grid-row-start: 10;
  }

  .form-validation.more18-aceptance-checkbox span:not(.checkmark) {
    font-size: 9px;
  }
}

/* === BOTÓN === */
.formulario .button {
  padding: 7px 18px;
  align-items: center;
  text-align: center;
  font-size: 10px;
  background-color: transparent;
  color: #000;
  border: solid 1px black;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease-in;

  svg {
    scale: 1;
    transition: all .1s ease-in-out;
  }
}

.formulario .button:hover {
  svg {
    scale: 1.3;
  }
}

@media screen and (min-width: 1340px) {
  .formulario .button {
    grid-row: 2;
    grid-column: 3 / span 1;
  }
}

/* === RESPONSIVE GENERAL === */
@media only screen and (max-width: 1340px) {
  .form-group {
    margin-bottom: 1rem;
  }
}
