/* subrayado y estilo del enlace de términos */
.checkbox-label .terms-link {
  text-decoration: underline;
  color: inherit;       /* hereda el color del texto del form */
  cursor: pointer;
}
h2.success {
  font-family: "Roboto", Sans-serif;
    font-size: 2vw;
    font-weight: 700;
    line-height: 7.5dvh;
    color: var(--e-global-color-7e473cc);
}
/* Borde rojo en campos inválidos */
.flat-form .error-field {
  border-color: #ff5858 !important;
}

/* Opcional: resaltar checkbox-label si es inválido */
.flat-form .checkbox-label input.error-field + span {
  color: #cc0000;
}

/* Ya tienes .error, .success, .thank-you, .btn-back, etc. */

.checkbox-label span {
  margin-top: 1px;
}
/* Asegúrate de que el label no sea display:block por defecto */
.flat-form .checkbox-label {
  display: flex;            /* alinea elementos en fila */
  align-items: center;      /* centra verticalmente checkbox y texto */
  margin-bottom: 30px;      /* separación igual que otros labels */
  font-size: 0.95rem;
  color: #333;
}

/* Ajusta márgenes del checkbox */
.flat-form .checkbox-label input[type="checkbox"] {
  margin: 0;                /* quita márgenes por defecto */
  margin-right: 8px;        /* espacio entre casilla y texto */
  width: auto;              /* no hereda min-width de inputs */
  transform: scale(1.1);    /* opcional: agranda ligeramente la casilla */
}

/* Si estaba el label con text-align, quítalo o sobrescríbelo */
.flat-form .checkbox-label span {
  display: inline-block;    /* para que herede correctamente el margin-right */
}


ul.error {
  display: inline;
  text-align: -webkit-center;
  list-style: none;
}

ul.error li {
    background-color: #ffeaea;
    font-size: 13px;
    padding: 2px 10px 3px;
    width: max-content;
    margin: 5px;
}

/* Label del checkbox: alinea horizontalmente */
.flat-form .checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #333;
}

/* Ajuste del input checkbox */
.flat-form .checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: auto;       /* no hereda min-width de los otros inputs */
  min-width: 0;
  transform: scale(1.1); /* opcional: agranda un poco la casilla */
}
/* Define una clase para los select custom */
.flat-form select.custom-arrow {
  /* 1. Apariencia nativa off */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* 2. Fondo: color + imagen de flecha */
  background-color: #f9f9f9;          /* fondo claro */
  background-image: url('flecha.svg'); /* URL de tu flecha */
  background-repeat: no-repeat;
  background-position: right 15px top 13px;
  background-size: 12px auto;         /* ajusta al tamaño del SVG/PNG */

  /* 3. Padding para que el texto no quede bajo la flecha */
  padding-right: 40px;                /* > ancho de la flecha + márgen */

}

.flat-form select.custom-arrow:focus {
  border-color: #0073aa;
  background-color: #fff;
  background-image: url('flecha.svg'); /* URL de tu flecha */
  background-repeat: no-repeat;
  background-position: right 15px top 13px;
  background-size: 12px auto;         /* ajusta al tamaño del SVG/PNG */

  /* 3. Padding para que el texto no quede bajo la flecha */
  padding-right: 40px;                /* > ancho de la flecha + márgen */
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border: 1px solid #e0e4ed !important;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    width: 100%;
}
/* Contenedor del formulario */
.flat-form {
  width: 100%;
  /* Centra y da un poco de padding */
      max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Cada campo (label) ocupa toda la línea */
.flat-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  text-align: left;
}

/* Estilos comunes a select, input y button */
.flat-form select,
.flat-form input,
.flat-form button,
button.btn-back
                   {
  display: block;           /* uno debajo de otro */
  width: 100%;              /* ocupa todo el ancho del contenedor */
  box-sizing: border-box;   /* incluye borde y padding en el ancho */
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  transition: border-color 0.2s ease-in-out, background 0.2s ease-in-out;
  margin-top: 10px;
}

.flat-form select {
  appearance: none;
  -webkit-appearance: none; /* Para navegadores Safari y Chrome */
  -moz-appearance: none;
}

/* Focus states */
.flat-form select:focus,
.flat-form input:focus {
  outline: none;
  border-color: #a9d8ef !important;
  background: #fff;
}



/* Botón */
.flat-form button, .flat-form button:active, .flat-form button:visited, button.btn-back {
  margin-top: 8px;
  background: #00A7FF;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.flat-form button:hover, button.btn-back:hover {
  background: #0095E6;
}

/* Mensajes */
.flat-form .error {
  background: #ffe5e5;
  border: 1px solid #ffcccc;
  color: #cc0000;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.flat-form .success {
  background: #e6ffed;
  border: 1px solid #b3ffcc;
  color: #006600;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 16px;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 640px) {
  .flat-form select,
  .flat-form input,
  .flat-form button {
    min-width: auto;  /* retiramos el mínimo */
    width: 100%;      /* siguen al 100% del contenedor */
  }
  .flat-form select.custom-arrow {
    min-width: auto;
  }
}
@media (max-width: 1366px) {
    h2.success {
    font-size: 3vw;
    line-height: 7.5dvh;
}
    }
}
@media (max-width: 1024px) {
    h2.success {
    font-size: 6vw;
    line-height: 7.5dvh;
    }
}
