:root {
  --error-text: rgb(180, 0, 0);
}

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

.bienvenida-encuesta h1 {
    margin-bottom: 20px;
    color: var(--secondary);
    text-transform: uppercase;
}

.widget-title {
    margin: 30px 0px;
}

form {
    display: flex;
    flex-direction: column;
}

hr {
  height: 1px; 
  background-color: var(--primary);
  width: 100%;
  margin: 30px 0px;
  border: none;
}

.asterisco {
  font-family: Arial, Helvetica, sans-serif;
}


.pregunta {
    font-weight: bold;
    margin-bottom: 10px;
}

.pregunta-descripcion {
    margin: 0px;
    font-style: italic;
}

.llene-todas {
  text-decoration: underline;
}

.error-opciones {
  margin: 15px 0px 0px 0px;
  color: var(--error-text);
}

.error {
  margin: 0px 0px 0px 0px;
  color: var(--error-text);
  display: none;
}

.error-con-margin {
  margin: 0px 0px 15px 0px;
  color: var(--error-text);
  display: none;
}

input[type=text], input[type=email], input[type=number], textarea, button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  border-radius: 3px;
  margin-bottom: 5px;
}

input[type=text], input[type=email], input[type=number], textarea {
  color: var(--text-body);
  width: 100%;
  background-color: white;
  border: none;
  padding: 10px;
  outline: solid 1px var(--primary);
}

select {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  border: none;
  outline: solid 1px var(--primary);
  border-radius: 3px;
  background-color: white;
}

input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, textarea:focus {
  outline: solid 2px var(--secondary);
}

select:focus {
  border: none;
  outline: solid 2px var(--secondary);
}

input[type=text]:disabled, input[type=email]:disabled, input[type=number]:disabled, select:disabled, textarea:disabled {
    outline: solid 1px #AAA;
    background-color: #EEE;
}

button[type=submit] {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  color: white;
  background-color: var(--secondary);
  padding: 15px 25px;
  justify-self: center;

  width: 100%;
  max-width: 150px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

button[type=submit]:not(:disabled):hover {
  background-color: var(--primary);
}

button[type=submit]:disabled {
  background-color: #75777e;
  cursor: default;
}

.opcion-ordenar {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    align-content: center;
    margin-bottom: 5px;
    line-height: 15px;
}

.opcion-ordenar select {
    max-width: 40px !important;
}

.opcion-ordenar label {
    margin: 5px;
    padding-left: 5px;
}

.opcion-otro {
    flex-direction: row;
}

.opcion-otro input[type=text] {
    padding: 5px;
    margin-bottom: 0px;
}

.opciones-radio {
    display: inline;
    line-height: 25px;
}

.invalido select {
  background-color: rgb(255, 235, 235);
  outline: solid 1px var(--error-text);
}

.invalido option {
  background-color: white;
}

.invalido-empty {
  background-color: rgb(255, 235, 235);
  outline: solid 1px var(--error-text);
}

.invalido-empty option {
  background-color: white;
}

#errores-msgs {
  text-align: center;
  color: var(--error-text);
}

#errores-msgs p {
  margin: 0px;
}

.cierre {
  margin-top: 10px;
  text-align: center; 
  display: flex;
  justify-content: center;  
}