body {
  background-image: url(../../img/disney_cinecontos/background.png);
  background-size: cover;
  background-position: center;
}

#main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
  text-align: center;
}

/* === Layout general: dos columnas === */
.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
}

.info-container,
.form-container {
  flex: 1 1 45%;
  min-width: 320px;
}

/* === Info (columna izquierda) === */
.info-container img,
.info-container-mobile img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 2.2rem;
  display: block;
}

/* === Formulario (columna derecha) === */
.form-container {
  background-color: #fafafa52;
  padding: 2rem 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-radius: 20px;
}

.form-container h1 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.form-container p {
  font-size: 14px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* === Checkbox personalizado === */
.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
  position: relative;
  cursor: pointer; /* cursor sobre todo el contenedor */
}

/* Hacemos que el input siga recibiendo clics */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

/* El recuadro visual que muestra el check */
.custom-checkbox span {
  width: 20px;
  height: 20px;
  border: 2px solid #004982;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* no interfiere con el clic */
  z-index: 1;
  position: relative;
}

/* Icono check dentro del recuadro */
.custom-checkbox i {
  color: #004982 !important;
  font-size: 0.8rem !important;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Cuando el checkbox está marcado, mostramos el check */
.custom-checkbox input[type="checkbox"]:checked + span i {
  opacity: 1;
}

/* Label a la derecha del checkbox */
.custom-checkbox label {
  cursor: pointer;
  user-select: none;
}

/* === Botón Enviar === */
.btn.btn-primary {
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 2rem;
  display: block;
  margin: 1rem auto 0;
  transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
  cursor: not-allowed;
}

/* Estado deshabilitado */
.form-container .btn.btn-primary[disabled] {
  cursor: not-allowed !important;
}

/* Estado activo (si el checkbox está marcado) */
form:has(#accept-terms-conditions:checked) .btn.btn-primary {
  background-color: #004982;
  border-color: #004982;
  cursor: pointer;
}

form:has(#accept-terms-conditions:checked) .btn.btn-primary:hover {
  background-color: #004982;
}

.hidden-on-desktop {
  display: none;
}

/* === Responsive === */
@media (max-width: 1024px) {
  body {
    background-image: url(../../img/disney_cinecontos/background-mobile.png);
  }

  .content-container {
    flex-direction: column;
    align-items: center;
  }

  .info-container,
  .form-container {
    flex: 1 1 100%;
    max-width: 600px;
    width: 100%;
  }

  .form-container h1 {
    font-size: 1rem;
  }

  .hidden-on-mobile {
    display: none;
  }

  .hidden-on-desktop {
    display: block;
  }
}
