/* --- Overrides de WordPress --- */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

#perfmatters-script-manager-wrapper {
  background-color: white;
}

#perfmatters-script-manager-wrapper div {
  background-color: white;
}

/* --- Variables de Diseño --- */
:root {
  --mo-bg-dark: #151320;
  --mo-card-bg: #202939;
  --mo-primary: #484dff;
  --mo-primary-hover: #3a3edb;
  --mo-text-white: #ffffff;
  --mo-text-gray: #d1c1e5;
  --mo-success: #4beeb3;
  --mo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mo-radius-btn: 50px;
  --mo-radius-card: 24px;
}

body {
  background-color: var(--mo-bg-dark);
}

body div {
  background-color: transparent !important;
}

/* --- Contenedor Principal --- */
#quiz-wrapper {
  font-family: var(--mo-font);
  color: var(--mo-text-white);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* --- Barra de Progreso --- */
.mo-progress-container {
  width: 100%;
  max-width: 600px;
  background: #504b6d;
  height: 8px;
  border-radius: 100px;
  margin-bottom: 40px;
  overflow: hidden;
}

.mo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #484dff, #b196ff);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 100px;
}

/* --- Tarjeta del Quiz --- */
#quiz-card {
  width: 100%;
  max-width: 500px;
  animation: slideUp 0.5s ease-out;
}

/* --- Tipografía --- */
.mo-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  text-align: center;
  color: var(--mo-text-white);
  letter-spacing: -0.02em;
}

.mo-description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  color: var(--mo-text-gray);
  margin-bottom: 32px;
}

.mo-description a,
.mo-description a:visited {
  color: #60a5fa;
}

/* --- Imágenes --- */
.mo-image-container {
  text-align: center;
  margin-bottom: 25px;
}

.mo-image-container img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(72, 77, 255, 0.15);
}

/* --- Opciones (Botones de selección) --- */
.mo-option {
  background: var(--mo-card-bg);
  border: 2px solid #4b5565;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--mo-text-white);
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mo-option:hover {
  border-color: var(--mo-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(72, 77, 255, 0.2);
}

.mo-option::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
}

.mo-option:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- Botón CTA --- */
.mo-btn-primary {
  background: var(--mo-primary);
  color: white;
  border: none;
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--mo-radius-btn);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(72, 77, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mo-btn-primary:hover {
  background: var(--mo-primary-hover);
  transform: scale(1.02);
}

.mo-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* --- Inputs --- */
.mo-input {
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 2px solid #c5bfcb;
  border-radius: 12px;
  font-size: 18px;
  color: white;
  margin-bottom: 25px;
  outline: none;
  box-sizing: border-box;
}

.mo-input:focus {
  border-color: var(--mo-primary);
}

.mo-input::placeholder {
  color: #696680;
}

/* --- Animaciones --- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- NUEVOS ESTILOS PARA FECHA DIVIDIDA --- */
.date-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.date-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  padding: 12px;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.date-input:focus {
  border-color: #a855f7;
  /* Tu color morado */
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

/* Tamaños específicos */
.input-day,
.input-month {
  width: 70px;
}

.input-year {
  width: 100px;
}

/* Ocultar flechas de input number en navegadores */
.date-input::-webkit-outer-spin-button,
.date-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.date-input {
  -moz-appearance: textfield;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake-error {
  animation: shake 0.3s ease-in-out;
  border-color: #ff6b6b !important;
}

/* Solución para que el input de teléfono ocupe todo el ancho */
.iti {
  width: 100%;
  display: block;
  margin-bottom: 20px;
  /* Movemos el margen aquí para ser consistentes */
}

ul#iti-0__country-listbox {
  background-color: black;
}

/* Clase para asegurar que las banderas se vean bien y alineadas */
.flag-icon {
  margin-right: 12px;
  font-size: 1.6rem;
  display: inline-block;
  /* Importante para que respeten el tamaño en flexbox */
  line-height: 1;
}