/* Registro al evento (registro/index.html). Lo compartido está en ../../css/base.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-right-title {
  color: #e3e829;
  font-family: "Sura Sans Bold";
}

.separador {
  background-color: #e3e829;
}

/* VALIDACIÓN DEL CORREO */

.pre-check-container {
  margin-top: 18px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.pre-check-title {
  color: #fff;
  margin-bottom: 10px;
}

.pre-check-error {
  display: none;
  color: #ff8f8f;
  font-size: 13px;
  margin-top: 8px;
}

/* FORMULARIO */

.form-select {
  width: 100%;
  padding: 5px;
}

.texts-inputs,
.texts-inputs:focus {
  color: #53565a;
}

.texts-inputs:focus::placeholder {
  color: #fff;
}

.form-control:focus {
  background: #fff;
  border-color: #000;
  color: #53565a;
}

.form-check-label {
  color: #fff;
}

.form-check-input {
  background-color: transparent;
  border-color: #53565a;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
}

.content-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pre-check-container .content-button {
  padding-top: 3.5rem;
}

.was-validated .form-check-input:valid ~ .form-check-label {
  color: #fff;
}

.btnEnviar {
  width: min(300px, 100%);
  background-color: #5a646e;
  color: #fff;
  text-transform: uppercase;
  font-family: "Sura Sans Bold", sans-serif;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
}

.btnEnviar:hover {
  color: #fff;
  opacity: 50%;
}

@media (min-width: 992px) {
  /* Formulario en una columna: un campo debajo del otro */
  #formRegister {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: clamp(8px, 1.6vh, 16px);
    padding-top: clamp(12px, 2vh, 24px);
  }

  #formRegister > * {
    margin: 0 !important;
  }

  #formRegister .form-control {
    height: clamp(38px, 4.6vh, 48px);
  }

  .form-check {
    padding-left: 1.6em;
  }
}

@media (max-width: 991px) {
  .text-right-title {
    font-size: 1.8rem;
  }

  .pre-check-container .content-button {
    padding-top: 0;
  }
}

@media (max-width: 991px) and (max-height: 700px) {
  .text-right-title {
    font-size: 1.6rem;
  }
}

/* AGRADECIMIENTO (después del registro) */

.gracias {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(12px, 2.2vh, 24px);
  text-align: center;
  color: #fff;
}

/* margin: 0 anula los márgenes que Bootstrap pone a h2 y p */
.gracias-title,
.gracias-lead,
.gracias-text {
  margin: 0;
}

.gracias-title {
  font-family: "Sura Sans Bold";
  font-size: clamp(3rem, 9vh, 5.5rem);
  line-height: 1;
}

.gracias-line {
  width: 75%;
  height: 3px;
  background-color: #e3e829;
}

.gracias-lead {
  font-family: "Sura Sans Bold";
  font-size: clamp(1.05rem, 2.6vh, 1.5rem);
  line-height: 1.3;
}

.gracias-lead a,
.gracias-lead a:hover {
  color: #e3e829;
  text-decoration: underline;
}

.gracias-lead a:hover {
  opacity: 0.8;
}

.gracias-text {
  font-size: clamp(1rem, 2.4vh, 1.35rem);
  line-height: 1.3;
}

/* Imágenes de fecha y banderas */
.gracias-img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.gracias-btn {
  display: inline-block;
  width: min(100%, 520px);
  padding: 12px 24px;
  border-radius: 999px;
  background-color: #5a646e;
  color: #fff;
  font-family: "Sura Sans Bold", sans-serif;
  font-size: clamp(1.05rem, 2.6vh, 1.4rem);
  text-decoration: none;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease;
}

.gracias-btn:hover {
  color: #fff;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .gracias {
    gap: 10px;
  }

  .gracias-title {
    font-size: 2.6rem;
  }

  .gracias-lead {
    font-size: 1rem;
  }

  .gracias-text {
    font-size: 0.9rem;
  }

  .gracias-btn {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

/* MODAL DE AVISO */

.feedback-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.feedback-modal.is-open {
  display: flex;
}

.feedback-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 45, 0.75);
  backdrop-filter: blur(3px);
}

.feedback-modal-card {
  position: relative;
  width: min(92vw, 460px);
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 233, 70, 0.25);
  border-radius: 18px;
  background: linear-gradient(165deg, #000000 0%, #000000 100%);
  color: #fff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  text-align: center;
  animation: modalIn 0.2s ease-out;
}

.feedback-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #FFF;
  color: #000;
  font-family: "Sura Sans Bold";
  font-size: 30px;
  line-height: 52px;
}

.feedback-modal-title {
  margin: 0 0 10px;
  color: #e3e829;
  font-family: "Sura Sans Bold";
  font-size: 26px;
}

.feedback-modal-message {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #f5f7ff;
}

.feedback-modal-btn {
  border: 0;
  border-radius: 999px;
  background: #5a646e;
  color: #fff;
  font-family: "Sura Sans Bold";
  font-size: 15px;
  padding: 10px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feedback-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 233, 70, 0.22);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
