@font-face {
  font-family: "BMSHumanity";
  src: url("../../fonts/BMSHumanity-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --primary: #BE2BBB;
  --secondary: #00506B;
  --bg-soft: #F3FAFD;
  --text: #333;
}

/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #efefef;
  color: var(--text);
  font-family: "BMSHumanity", Arial, sans-serif;
}

/* =========================
   CONTENEDOR GENERAL
========================= */

.page {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

/* =========================
   HEADER GRANDE
========================= */

.header-img {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 30px 30px 0 0;
}

.header-img img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
}

/* =========================
   FORMULARIO
========================= */

.event-form {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  background: var(--bg-soft);
  border-radius: 0 0 30px 30px;
  padding: 55px 65px;
}

/* =========================
   GRID
========================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.form-group {
  position: relative;
}

.hidden-field {
  display: none;
}

/* =========================
   LABELS
========================= */

label {
  display: block;
  color: var(--primary);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* =========================
   INPUTS
========================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  min-height: 74px;
  border: 3px solid var(--secondary);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 22px;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(190, 43, 187, 0.12);
}

/* =========================
   AUTOCOMPLETE
========================= */

.input-wrap {
  position: relative;
}

.suggestions {
  display: none;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

.suggestion {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion:hover {
  background: #fdf0ff;
}

.suggestion strong {
  display: block;
  font-size: 18px;
  color: #111;
}

.suggestion span {
  display: block;
  font-size: 15px;
  color: #555;
}

.suggestion small {
  display: block;
  font-size: 13px;
  color: #777;
}

.suggestion.muted {
  color: #777;
  cursor: default;
}

/* =========================
   CHECKBOXES
========================= */

.checks,
.terms,
.terms-check {
  margin-top: 28px;
}

.checks label,
.terms-check {
  color: #666;
  font-size: 17px;
  font-weight: 500;
}

.checks input,
.terms-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}

/* =========================
   TEXTO LEGAL
========================= */

.terms {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.terms a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   BOTON
========================= */

.register-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  margin-top: 34px;
  padding: 24px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.register-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.register-button:disabled {
  background: #ccc;
  color: #777;
  cursor: not-allowed;
}

/* =========================
   FOOTER
========================= */

.footer-img {
  margin-top: 34px;
  text-align: center;
}

.footer-img img {
  width: 100%;
  display: block;
  height: auto;
}

/* =========================
   IMPRESION
========================= */

.print-body {
  padding: 20px;
}

.badge-print {
  text-align: center;
}

.badge-print td {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  padding: 10px;
  font-size: 18px;
}

.print-actions {
  margin-top: 20px;
}

.print-actions button {
  padding: 10px 16px;
  margin-right: 8px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {

  body {
    background: #fff;
  }

  .page {
    padding: 0;
  }

  .header-img {
    max-width: 100%;
    border-radius: 0;
  }

  .event-form {
    max-width: 100%;
    border-radius: 0;
    padding: 34px 22px 45px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  label {
    font-size: 34px;
    margin-bottom: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"] {
    min-height: 88px;
    border-width: 4px;
    border-radius: 22px;
    font-size: 28px;
    padding: 16px 18px;
  }

  .checks label,
  .terms-check {
    font-size: 22px;
    line-height: 1.45;
  }

  .terms {
    font-size: 19px;
    line-height: 1.8;
  }

  .register-button {
    min-height: 88px;
    border-radius: 22px;
    font-size: 26px;
  }

  .suggestion {
    padding: 18px;
  }

  .suggestion strong {
    font-size: 20px;
  }

  .suggestion span {
    font-size: 17px;
  }

  .suggestion small {
    font-size: 15px;
  }
}