:root {
  color-scheme: light;
  --brand-blue: #202a4e;
  --brand-deep: #002554;
  --brand-cyan: #37c4d6;
  --text: #1f2a4d;
  --muted: #5f6b83;
  --card: #f1f2f4;
  --border: #d6d9de;
  --danger: #b42318;
  --success: #0f766e;
  --shadow: 0 18px 44px rgba(31, 42, 77, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.registro-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px 16px 48px;
}

.promo-header {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
}

.brand-band {
  width: calc(100% - 130px);
  min-height: 86px;
  margin-left: 124px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 28px;
  background: var(--brand-blue);
}

.preven-logo {
  width: 142px;
  height: auto;
  display: block;
}

.vegas-art {
  position: absolute;
  left: -12px;
  top: 0;
  z-index: 2;
  width: min(342px, 46vw);
  height: auto;
  display: block;
}

.promo-copy {
  margin: 25px auto 8px;
  text-align: center;
}

.promo-copy h1,
.promo-prize,
.promo-instruction {
  margin: 0;
}

.promo-copy h1 {
  font-size: clamp(22px, 3.4vw, 25px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--brand-blue);
}

.promo-prize {
  margin-top: 14px;
  font-size: clamp(23px, 3.6vw, 27px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand-blue);
}

.promo-extra {
  /*margin: 14px 0 0;*/
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-deep);
}

.promo-extra strong {
  font-size: clamp(50px, 8vw, 58px);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: 0;
}

.promo-extra span {
  color: var(--brand-cyan);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 0.84;
  font-weight: 800;
  text-align: left;
}

.promo-extra span::first-line {
  color: var(--brand-deep);
}

.promo-instruction {
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 500;
}

.registro-card {
  width: min(524px, 100%);
  margin: 8px auto 0;
  padding: 33px 35px 28px;
  border: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(31, 42, 77, 0.08) inset;
}

.registro-form {
  display: grid;
  gap: 18px;
}

label,
.interests legend {
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
}

input {
  width: 100%;
  min-height: 45px;
  border: 1px solid #c8ccd3;
  border-radius: 7px;
  padding: 10px 12px;
  color: #111827;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(55, 196, 214, 0.18);
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brand-deep);
}

.interests {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.interests legend {
  width: 100%;
  margin-bottom: 24px;
  text-align: center;
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1.24;
  letter-spacing: 0;
}

.checkboxes-container {
  width: min(360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.checkbox-group {
  grid-template-columns: 36px 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  appearance: none;
  border: 2px solid #cfd3d9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 42, 77, 0.12);
}

.checkbox-group input[type="checkbox"]:checked {
  border-color: var(--brand-cyan);
  background:
    linear-gradient(135deg, transparent 0 38%, #ffffff 38% 55%, transparent 55%),
    linear-gradient(45deg, transparent 0 42%, #ffffff 42% 58%, transparent 58%),
    var(--brand-cyan);
}

.checkbox-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(55, 196, 214, 0.22);
}

.checkbox-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-deep);
  overflow: visible;
}

.checkbox-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.interest-label {
  min-width: 0;
  color: var(--brand-blue);
  /*font-size: clamp(16px, 2.9vw, 19px);*/
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0;
}

.interest-label strong {
  font-weight: 900;
}

.terms-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(55, 196, 214, 0.45);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.terms-check a {
  color: var(--brand-deep);
  font-weight: 800;
  text-underline-offset: 3px;
}

.message {
  display: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.message.is-success {
  display: block;
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #99f6e4;
}

.message.is-error {
  display: block;
  color: var(--danger);
  background: #fff0ee;
  border: 1px solid #fac5be;
}

button {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

button:hover:not(:disabled) {
  background: var(--brand-deep);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 45, 0.58);
  backdrop-filter: blur(3px);
}

.success-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 20, 45, 0.35);
  color: var(--brand-blue);
}

.success-modal__dialog:focus {
  outline: none;
}

.success-modal__header {
  display: flex;
  justify-content: flex-end;
  min-height: 76px;
  padding: 14px 26px;
  background: var(--brand-blue);
}

.success-modal__header img {
  width: 130px;
  object-fit: contain;
}

.success-modal__body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 34px 28px;
  text-align: center;
}

.success-modal__vegas {
  width: min(230px, 70vw);
}

.success-modal__body h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
}

.success-modal__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.success-modal__terms {
  width: 100%;
  max-height: min(44vh, 390px);
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid #d8dce2;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  line-height: 1.48;
}

.success-modal__terms:focus {
  outline: 3px solid rgba(55, 196, 214, 0.25);
  outline-offset: 2px;
}

.success-modal__terms p,
.success-modal__terms ul {
  margin: 0;
}

.success-modal__terms p + p,
.success-modal__terms p + h3,
.success-modal__terms ul + h3,
.success-modal__terms ul + p {
  margin-top: 10px;
}

.success-modal__terms h3 {
  margin: 14px 0 6px;
  color: var(--brand-deep);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.success-modal__terms ul {
  padding-left: 19px;
}

.success-modal__terms li + li {
  margin-top: 3px;
}

.terms-event {
  color: var(--brand-deep);
  text-align: center;
  font-size: 14px;
}

.success-modal__button {
  width: auto;
  min-height: 42px;
  padding: 10px 26px;
  font-size: 14px;
}

@media (max-width: 620px) {
  .registro-page {
    padding: 18px 10px 36px;
  }

  .promo-header {
    min-height: 106px;
  }

  .brand-band {
    width: calc(100% - 82px);
    min-height: 70px;
    margin-left: 82px;
    padding: 10px 16px;
  }

  .preven-logo {
    width: 110px;
  }

  .vegas-art {
    left: -8px;
    top: -2px;
    width: min(250px, 58vw);
  }

  .registro-card {
    padding: 25px 18px 24px;
    border-radius: 18px 18px 0 0;
  }

  .success-modal {
    padding: 12px;
  }

  .success-modal__header {
    min-height: 62px;
    padding: 10px 18px;
  }

  .success-modal__header img {
    width: 112px;
  }

  .success-modal__body {
    padding: 18px 16px 22px;
  }

  .success-modal__vegas {
    width: min(210px, 74vw);
  }

  .success-modal__terms {
    max-height: 43vh;
    padding: 13px 14px;
    font-size: 12px;
  }

  .checkboxes-container {
    grid-template-columns: 1fr;
  }
}
