/* Form */

.c-form {
  background-color: #EBEBEB;
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #F28D15;
}

.c-form__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(.9rem,3vw,1.3rem);
  line-height: 1.1;
}

.c-form__group {
  text-align: center;
  margin-top: 16px;
}

.c-form__question {
  margin-bottom: 10px;
  font-size: 18px;
}

.c-form__success {
  color: var(--darkBlue);
  text-align: center;
  margin-top: 12px;
}

/* Inputs */

.c-field {
  position: relative;
  margin-bottom: 12px;
}

.c-field__icon {
  position: absolute;
  top: 14px;
  right: 8px;
  font-size: 20px;
  line-height: 1;
  color: #86888C;
}

.c-field__input {
  width: 100%;
  padding: 14px;
  padding-right: 30px;
  border-radius: 4px;
  border: none;
  background-color: var(--white);
  outline: none;
}

.c-field__error {
  display: none;
  color: red;
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
}

/* Radio */

.c-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0 12px;
}

/* Oculta radio nativo */
.c-radio__input {
  position: absolute;
  opacity: 0;
}

/* Círculo externo */
.c-radio__control {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue2);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 10px;
}

/* Punto interno */
.c-radio__control::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--blue2);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

/* Estado activo */
.c-radio__input:checked + .c-radio__control::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Label */
.c-radio__label {
  font-size: 18px;
}

/* Checkbox */

.c-checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
}

.c-checkbox input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 3px;
}

.c-checkbox__text {
  font-size: 14px;
  line-height: 1.4;
}

/* Button */

.c-button {
  width: 100%;
  margin-top: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-radius: 30px;
  border: none;
  background-color: var(--blue2);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.c-button:active {
  opacity: 0.9;
}

/* Utils */

.is-hidden {
  display: none;
}