/* Estilos generales del formulario */
.wwf-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 15px; /* Aumentado para un efecto más redondeado */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para los campos de entrada y textarea */
.wwf-form input,
.wwf-form textarea {
  width: 100%;
  padding: 15px;
  margin: 10px 0 20px 0;
  border: 1px solid #ddd;
  border-radius: 10px; /* Aumentado para un efecto más redondeado */
  background-color: #fff;
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Asegura que el padding y border se incluyan en el ancho total */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wwf-form input[type="checkbox"] {
  width: auto;
}

/* Efecto de enfoque para los campos */
.wwf-form input:focus,
.wwf-form textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
  outline: none;
}

/* Estilos para el botón de envío */
.wwf-form input[type="submit"] {
  display: inline-block;
  padding: 15px 30px;
  margin-top: 10px;
  color: #fff;
  background-color: #0073aa;
  border: none;
  border-radius: 10px; /* Aumentado para un efecto más redondeado */
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: auto; /* Asegura que el botón no ocupe todo el ancho */
  float: right; /* Alinea el botón a la derecha */
  clear: both; /* Evita que se superponga a otros elementos flotantes */
}

/* Efecto hover para el botón de envío */
.wwf-form input[type="submit"]:hover {
  background-color: #005177;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Estilos para los mensajes de éxito y error */
.wwf-mail-sent-ok {
  margin-top: 20px;
  padding: 15px;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: 10px; /* Aumentado para un efecto más redondeado */
  color: #3c763d;
  font-size: 16px;
}

.wwf-mail-sent-ng {
  margin-top: 20px;
  padding: 15px;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  border-radius: 10px; /* Aumentado para un efecto más redondeado */
  color: #a94442;
  font-size: 16px;
}

/* Estilos para las etiquetas de los campos */
.wwf-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

/* Estilos para los checkboxes y radios */
.wwf-form input[type="checkbox"],
.wwf-form input[type="radio"] {
  margin-right: 10px;
  width: 4%;
}

.wwf-form .wwf-list-item-label {
  display: inline;
  margin-right: 20px;
  font-size: 14px;
}

.wwf .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

.wwf form .wwf-response-output {
  margin: 2em 0.5em 1em;
  padding: 0.2em 1em;
  border: 2px solid #00a0d2; /* Blue */
}

.wwf form.init .wwf-response-output,
.wwf form.resetting .wwf-response-output,
.wwf form.submitting .wwf-response-output {
  display: none;
}

.wwf form.sent .wwf-response-output {
  border-color: #46b450; /* Green */
}

.wwf form.failed .wwf-response-output,
.wwf form.aborted .wwf-response-output {
  border-color: #dc3232; /* Red */
}

.wwf form.spam .wwf-response-output {
  border-color: #f56e28; /* Orange */
}

.wwf form.invalid .wwf-response-output,
.wwf form.unaccepted .wwf-response-output,
.wwf form.payment-required .wwf-response-output {
  border-color: #ffb900; /* Yellow */
}

.wwf-form-control-wrap {
  position: relative;
}

.wwf-not-valid-tip {
  color: #dc3232; /* Red */
  font-size: 1em;
  font-weight: normal;
  display: block;
}

.use-floating-validation-tip .wwf-not-valid-tip {
  position: relative;
  top: -2ex;
  left: 1em;
  z-index: 100;
  border: 1px solid #dc3232;
  background: #fff;
  padding: 0.2em 0.8em;
  width: 24em;
}

.wwf-list-item {
  display: inline-block;
  margin: 0 0 0 1em;
}

.wwf-list-item-label::before,
.wwf-list-item-label::after {
  content: " ";
}

.wwf-spinner {
  visibility: hidden;
  display: inline-block;
  background-color: #23282d; /* Dark Gray 800 */
  opacity: 0.75;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 100%;
  padding: 0;
  margin: 0 24px;
  position: relative;
}

form.submitting .wwf-spinner {
  visibility: visible;
}

.wwf-spinner::before {
  content: "";
  position: absolute;
  background-color: #fbfbfc; /* Light Gray 100 */
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 100%;
  transform-origin: 8px 8px;
  animation-name: spin;
  animation-duration: 1000ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wwf-spinner::before {
    animation-name: blink;
    animation-duration: 2000ms;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.wwf [inert] {
  opacity: 0.5;
}

.wwf input[type="file"] {
  cursor: pointer;
}

.wwf input[type="file"]:disabled {
  cursor: default;
}

.wwf .wwf-submit:disabled {
  cursor: not-allowed;
}

.wwf input[type="url"],
.wwf input[type="email"],
.wwf input[type="tel"] {
  direction: ltr;
}

.wwf-reflection > output {
  display: list-item;
  list-style: none;
}

.wwf-reflection > output[hidden] {
  display: none;
}
