/* =====================================================================
   SOLICITUD DE LUGAR (popup del botón SOLICITAR)  ·  css/agenda-solicitud.css
   Se carga justo después de css/agenda-cupos.css (ver index.html).
   Lo arma js/agenda-solicitud.js. Todo lo de acá es nuevo: no pisa nada de la card.

   Mismo diseño que la card: fondo --surface, borde --border y franja izquierda de 4px
   en verde (--emerald) o rojo (--agenda-red) si el evento es de variante "evento".
   ===================================================================== */


/* ---------------------------------------------------------------------
   1) CAPA, FONDO Y CAJA
   --------------------------------------------------------------------- */

/* agenda-solicitud/capa/01 */
/* Cubre toda la pantalla, por encima del modal del trailer (999). */
.agenda-sol {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* agenda-solicitud/capa/02 */
.agenda-sol-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

/* agenda-solicitud/caja/01 */
/* --sol-color es el color de acento: lo usan la franja, el kicker, el botón y el foco de los campos. */
.agenda-sol-caja {
  --sol-color: var(--emerald);
  position: relative;
  box-sizing: border-box;
  width: min(420px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 22px;
  background: var(--surface, #14161a);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sol-color);
  border-radius: 12px;
  animation: agenda-sol-entrada 0.18s ease-out;
}

/* agenda-solicitud/caja/02 */
/* Eventos de variante "evento": acento rojo. */
.agenda-sol-caja.is-evento {
  --sol-color: var(--agenda-red, #e63946);
}

/* agenda-solicitud/caja/03 */
@keyframes agenda-sol-entrada {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .agenda-sol-caja { animation: none; }
}

/* agenda-solicitud/caja/04 */
.agenda-sol-cerrar {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.agenda-sol-cerrar:hover {
  color: #fff;
}


/* ---------------------------------------------------------------------
   2) ENCABEZADO
   --------------------------------------------------------------------- */

/* agenda-solicitud/encabezado/01 */
.agenda-sol-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sol-color);
}

/* agenda-solicitud/encabezado/02 */
.agenda-sol-titulo {
  margin: 4px 0 4px;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

/* agenda-solicitud/encabezado/03 */
.agenda-sol-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}


/* ---------------------------------------------------------------------
   3) FORMULARIO
   --------------------------------------------------------------------- */

/* agenda-solicitud/form/01 */
.agenda-sol-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* agenda-solicitud/form/02 */
.agenda-sol-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* agenda-solicitud/form/03 */
.agenda-sol-etq {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* agenda-solicitud/form/04 */
/* 16px: en iPhone, un campo con menos hace zoom al tocarlo. */
.agenda-sol-campo input[type="text"],
.agenda-sol-campo input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease;
}

/* agenda-solicitud/form/05 */
.agenda-sol-campo input::placeholder {
  color: var(--text-muted, rgba(255, 255, 255, 0.35));
}

/* agenda-solicitud/form/06 */
.agenda-sol-campo input[type="text"]:focus,
.agenda-sol-campo input[type="email"]:focus {
  border-color: var(--sol-color);
}

/* agenda-solicitud/form/07 */
.agenda-sol-campo input.is-error {
  border-color: var(--agenda-red, #e63946);
}

/* agenda-solicitud/form/08 */
.agenda-sol-pista {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
}

/* agenda-solicitud/form/09 */
/* Vacío no ocupa lugar. */
.agenda-sol-error {
  margin: 0;
  font-size: 12px;
  color: var(--agenda-red, #e63946);
}

/* agenda-solicitud/form/10 */
/* Casilla "Solicitar lugar". */
.agenda-sol-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}
.agenda-sol-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sol-color);
  cursor: pointer;
}

/* agenda-solicitud/form/11 */
/* Mensaje general (error de envío, o "todavía no habilitadas"). */
.agenda-sol-msg {
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: var(--agenda-red, #e63946);
}


/* ---------------------------------------------------------------------
   4) BOTÓN ENVIAR
   --------------------------------------------------------------------- */

/* agenda-solicitud/boton/01 */
.agenda-sol-enviar {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  background: var(--sol-color);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease;
}

/* agenda-solicitud/boton/02 */
.agenda-sol-enviar:hover {
  filter: brightness(1.12);
}

/* agenda-solicitud/boton/03 */
.agenda-sol-enviar:disabled {
  opacity: 0.6;
  cursor: default;
  filter: none;
}


/* ---------------------------------------------------------------------
   5) MENSAJE DE ÉXITO
   --------------------------------------------------------------------- */

/* agenda-solicitud/exito/01 */
.agenda-sol-ok {
  padding-top: 4px;
  text-align: center;
}

/* agenda-solicitud/exito/02 */
.agenda-sol-ok-icono {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  color: var(--sol-color);
}

/* agenda-solicitud/exito/03 */
.agenda-sol-ok-texto {
  margin: 10px 0 20px;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}


/* =====================================================================
   MOBILE (mismo corte que en agenda.css)
   ===================================================================== */
@media (max-width: 768px) {

  /* agenda-solicitud/caja-mobile/01 */
  .agenda-sol-caja {
    padding: 20px 18px 18px;
  }

  /* agenda-solicitud/caja-mobile/02 */
  /* Botón de cerrar cómodo para el dedo. */
  .agenda-sol-cerrar {
    top: 6px;
    right: 8px;
    width: 40px;
    height: 40px;
  }

  /* agenda-solicitud/boton-mobile/01 */
  .agenda-sol-enviar {
    min-height: 46px;
  }
}
/* ===== FIN SOLICITUD DE LUGAR ===== */