:root {
  --navy: #061f4a;
  --blue: #0057d9;
  --light: #f5f8fc;
  --border: #d8e0ea;
  --danger: #c62828;
  --ok: #1b7f43;
  --text: #071d42;
  --muted: #62708a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  background: transparent;
}

.iframe-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
}

.card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(6, 31, 74, .10);
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 30px;
  letter-spacing: 10px;
  font-weight: 700;
  color: var(--navy);
}

.topbar small {
  font-weight: 700;
  color: var(--blue);
  font-size: 12px;
}

.event-label {
  text-align: right;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
}

.event-label span {
  color: #159fe3;
  font-size: 26px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #727c8b;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #aeb8c6;
  background: #fff;
}

.step.active {
  color: var(--blue);
}

.step.active span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.step.done {
  color: var(--navy);
}

.step.done span {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.line {
  height: 2px;
  flex: 1;
  background: #c8d1de;
}

.message {
  display: none;
  margin: 20px 28px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.message.ok {
  display: block;
  background: #eaf8ef;
  color: var(--ok);
  border: 1px solid #bfe7cc;
}

.message.error {
  display: block;
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #f1b9b9;
}

form {
  padding: 24px 28px 30px;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
}

h2 {
  margin: 14px 0 22px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--navy);
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy);
}

p {
  line-height: 1.45;
}

.lead {
  margin: 0 0 22px;
  color: #55647a;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}

label span,
label span * {
  font-weight: 600;
}

label > span {
  color: var(--danger);
}

input,
select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 14px;
  font: 500 15px Montserrat, Arial;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, .12);
}

.phone-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.phone-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, .12);
}

.phone-row span {
  width: 76px;
  display: grid;
  place-items: center;
  background: #f2f6fb;
  color: var(--blue);
  font-weight: 800;
}

.phone-row input {
  border: 0;
  border-radius: 0;
}

.field em {
  display: block;
  margin-top: 8px;
  color: #68778f;
  font-style: normal;
  font-size: 12px;
}

.field small,
.privacy-error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-weight: 600;
  font-size: 12px;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--danger);
}

.field.invalid small,
.privacy-error.show {
  display: block;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 20px;
  font-size: 14px;
  font-weight: 600;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.check a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

button,
.btn-primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(6, 31, 74, .20);
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.btn-primary:hover {
  filter: brightness(1.05);
}

button:disabled,
.btn-primary:disabled {
  background: #9ba6b4;
  cursor: not-allowed;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

/* QUIZ */

.one-pager,
.quiz-box {
  padding: 24px 28px 30px;
}

.one-pager {
  padding-bottom: 10px;
}

.brand-grid {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.brand-grid > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
}

.brand-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quiz-box {
  border-top: 1px solid #edf1f6;
}

.quiz-box form {
  padding: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  background: #eaf2ff;
  color: var(--blue);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.option:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.option input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  accent-color: var(--blue);
  box-shadow: none;
}

.option span {
  color: var(--text);
  font-weight: 700;
}

.option:has(input[type="radio"]:checked) {
  border-color: var(--blue);
  background: #f1f7ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 217, .10);
}

.quiz-box .message {
  margin: 16px 0;
}

.quiz-box button {
  margin-top: 16px;
}

/* MOBILE */

@media (max-width: 560px) {
  .iframe-shell {
    padding: 10px;
  }

  .card {
    border-radius: 14px;
  }

  .topbar {
    padding: 18px;
  }

  .brand {
    font-size: 22px;
    letter-spacing: 7px;
  }

  .event-label span {
    font-size: 22px;
  }

  .stepper {
    padding: 18px 18px 0;
    gap: 8px;
  }

  .step {
    font-size: 11px;
  }

  .step span {
    width: 30px;
    height: 30px;
  }

  form,
  .one-pager,
  .quiz-box {
    padding: 20px 18px 24px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  .option {
    min-height: 54px;
    padding: 13px 14px;
  }
  
}

/* HEADER QUIZ */

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-header strong {
  font-size: 28px;
  letter-spacing: 8px;
  color: var(--navy);
}

.brand-header span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.badge-status {
  background: #eaf2ff;
  color: var(--blue);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 28px 0;
}

.steps .step {
  width: 90px;
  text-align: center;
  color: #727c8b;
  font-size: 12px;
  font-weight: 700;
}

.steps .step::first-line {
  font-size: 16px;
}

.steps .step.done,
.steps .step.active {
  color: var(--blue);
}

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: linear-gradient(180deg,#ffffff,#f8fbff);
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #eef5ff;
}

.download-content {
  flex: 1;
}

.download-content h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.download-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.btn-download {
  width: auto;
  min-width: 240px;
  height: 46px;
  padding: 0 22px;
  background: var(--blue);
  border-radius: 10px;
  font-size: 14px;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #eef6ff;
  border: 1px solid #d7e8ff;
  border-radius: 12px;
  color: #35507c;
  font-size: 14px;
}


/* ==========================
   HOME / LOGIN SELECTION
========================== */

.home-card {
  min-height: 650px;
}

.home-content {
  padding: 80px 40px;
  text-align: center;
}

.home-badge {
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.home-content h1 {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
}

.home-content .lead {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.home-actions a {
  text-decoration: none;
}

.home-actions .btn-primary,
.home-actions .btn-secondary {
  width: 260px;
  min-height: 58px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  transition: all .2s ease;
}

.home-actions .btn-primary:hover,
.home-actions .btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 8px 18px rgba(6, 31, 74, .08);
}

.btn-secondary:hover {
  background: #f7fbff;
}

/* MOBILE */

@media (max-width: 560px) {

  .home-content {
    padding: 50px 24px;
  }

  .home-content h1 {
    font-size: 30px;
  }

  .home-actions {
    flex-direction: column;
    align-items: center;
  }

  .home-actions .btn-primary,
  .home-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

}

.home-actions .btn-secondary {
  width: 260px;
  min-height: 54px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(6, 31, 74, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-actions .btn-primary {
  width: 260px;
  text-decoration: none;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.success-card {
  max-width: 520px;
  padding: 0;
}

.success-header {
  background: #061f4a;
  color: #fff;
  text-align: center;
  padding: 28px 24px 30px;
}

.success-logo {
  width: 170px;
  margin: 0 auto ;
  display: block;
  
}

.success-header small,
.success-header h1 {
  color: #fff;
}

.success-header h1 {
  font-size: 26px;
  margin: 4px 0 0;
}

.success-badge {
  width: 96px;
  height: 96px;
  margin: -48px auto 18px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #0057d9, #061f4a);
  color: #fff;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  padding: 0 26px 34px;
  text-align: center;
}

.success-title {
  margin: 0 0 10px;
}

.doctor-box {
  margin-top: 24px;
}

.qr-box {
  text-align: center;
  padding: 22px;
}

.qr-box img {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  display: block;
}

.qr-code {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #0057d9;
  font-weight: 900;
}

.success-page {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
}

.success-card {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8e0ea;
  box-shadow: 0 22px 60px rgba(6, 31, 74, 0.14);
}

.success-content {
  padding: 28px 26px 34px;
  text-align: center;
}

.success-badge {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057d9, #061f4a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,87,217,.25);
}

.premios-box {
  display: block;
}

.premios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 26px;
}

.premio-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.premio-card.ganado {
  background: #f3fff7;
  border-color: #b7e4c7;
}

.premio-card.pendiente {
  background: #f8fafc;
}

.premio-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.premio-card strong {
  color: var(--navy);
}

.badges-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  margin-bottom: 24px;
}

.badges-box h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
}

.badge-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.badge-row:last-child {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .premios-grid {
    grid-template-columns: 1fr;
  }
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 30px;
}
.top-actions .btn-back-home {
    box-shadow: none !important;
}
.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 140px;
    height: 46px;
    padding: 0 22px;

    background: #fff;
    color: var(--blue);

    border: 2px solid var(--blue);
    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;

    cursor: pointer;

    box-shadow: none;
    transition: all .2s ease;
}

.btn-back-home:hover {
    background: #f7fbff;
    color: var(--blue);
    border-color: var(--blue);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-insignia {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 8px 14px;
    background: #061f4a;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-insignia:hover {
    background: #0057d9;
    color: #ffffff;
}
.premio-status {
    margin-top: 12px;
}

.premio-status strong {
    display: block;
}

.btn-insignia {
    display: inline-block;
    margin-top: 12px;
}

.medico-card {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.medico-card h3 {
    margin: 0 0 16px;
    color: #061f4a;
    font-size: 22px;
    font-weight: 700;
}

.medico-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.medico-grid span {
    display: block;
    color: #6c7a92;
    font-size: 12px;
    margin-bottom: 4px;
}

.medico-grid strong {
    color: #061f4a;
    font-size: 15px;
}

.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.privacy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 74, 0.72);
}

.privacy-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  z-index: 1;
}

.privacy-modal-content {
  max-height: 52vh;
  overflow-y: auto;
}

.privacy-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.privacy-modal-btn {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: #061f4a;
  color: #fff;
  font-weight: 800;
  padding: 15px 20px;
}
.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  color: #c62828;
  font-size: 15px;
  font-weight: 700;
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #0057d9;
}

.privacy-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.privacy-text-link {
  all: unset !important;
  display: inline !important;
  color: #0057d9 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
}

.privacy-text-link:hover {
  color: #061f4a !important;
}

.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.privacy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 74, 0.78);
}

.privacy-modal-box {
  position: relative;
  z-index: 1;
  width: min(940px, 96vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.privacy-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 30px 20px;
  border-bottom: 1px solid #d8e0ea;
  background: #ffffff;
}

.privacy-brand {
  display: block;
  color: #061f4a;
  font-size: 22px;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.privacy-modal-header h2 {
  margin: 0;
  color: #061f4a;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.privacy-modal-header p {
  margin: 8px 0 0;
  color: #62708a;
  font-size: 14px;
}

.privacy-modal-close {
  all: unset;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-size: 32px;
  color: #061f4a;
  cursor: pointer;
  flex: 0 0 auto;
}

.privacy-modal-close:hover {
  background: #f1f4f9;
}

.privacy-modal-content {
  max-height: 58vh;
  overflow-y: auto;
  padding: 28px 30px;
  color: #071d42;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-modal-content h3 {
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #0057d9;
  color: #061f4a;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.privacy-modal-content h3:first-child {
  margin-top: 0;
}

.privacy-modal-content p {
  margin: 0 0 16px;
}

.privacy-modal-content strong {
  color: #061f4a;
}

.privacy-modal-content ol {
  margin: 8px 0 18px 22px;
  padding: 0;
}

.privacy-modal-content li {
  margin-bottom: 8px;
}

.privacy-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
}

.privacy-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.privacy-table th {
  background: #061f4a;
  color: #ffffff;
  text-align: left;
  padding: 12px;
  font-weight: 800;
  vertical-align: top;
}

.privacy-table td {
  padding: 12px;
  border-top: 1px solid #d8e0ea;
  vertical-align: top;
  color: #071d42;
}

.privacy-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.privacy-final-text {
  padding: 16px;
  border-radius: 12px;
  background: #f1f6ff;
  color: #061f4a;
  font-weight: 800;
}

.privacy-modal-footer {
  padding: 18px 30px 24px;
  border-top: 1px solid #d8e0ea;
  background: #ffffff;
}

.privacy-modal-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #061f4a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  padding: 16px 20px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.privacy-modal-btn:hover {
  background: #0057d9;
}

@media (max-width: 640px) {
  .privacy-modal-box {
    width: 96vw;
    max-height: 92vh;
    border-radius: 16px;
  }

  .privacy-modal-header,
  .privacy-modal-content,
  .privacy-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .privacy-modal-header h2 {
    font-size: 22px;
  }

  .privacy-brand {
    font-size: 18px;
    letter-spacing: 6px;
  }

  .privacy-modal-content {
    max-height: 60vh;
    font-size: 14px;
  }
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.brand-block small {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #62708a;
  font-weight: 600;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
}

.brand-block {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 150px;
    height: auto;
    display: block;
}


.terms-check{
    display:flex;
    align-items:flex-start;
    gap:12px;
    max-width:620px;
    margin:28px auto;
    text-align:left;
    color:#222;
    font-size:15px;
    line-height:1.6;
    font-weight:500;
}

.terms-check input{
    width:18px;
    height:18px;
    margin-top:3px;
    flex-shrink:0;
}

.terms-link{
    color:#0057d9;
    text-decoration:underline;
    font-weight:600;
}

.terms-link:hover{
    color:#003f9f;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.terms-modal.is-active {
  display: flex;
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 74, 0.55);
}

.terms-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: 0 18px 50px rgba(6, 31, 74, 0.25);
  color: #071d42;
  font-family: 'Montserrat', sans-serif;
}

.terms-modal-content h2 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 800;
  color: #061f4a;
}

.terms-modal-content h3 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #061f4a;
}

.terms-modal-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #2d3f63;
}

.terms-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4ff;
  color: #061f4a;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .terms-check {
    font-size: 14px;
    margin-top: 26px;
  }

  .terms-modal-content {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

.privacy-document {
  color: #111;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-document h3 {
  margin: 18px 0 8px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.privacy-document p {
  margin: 0 0 12px;
  color: #111;
  text-align: justify;
}

.privacy-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #111;
}

.privacy-table th,
.privacy-table td {
  border: 1px solid #999;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.privacy-table th {
  font-weight: 800;
  text-transform: uppercase;
  background: #f3f3f3;
}

.privacy-document ol {
  margin: 0 0 14px 18px;
  padding: 0;
}

.privacy-document li {
  margin-bottom: 8px;
  text-align: justify;
}

.privacy-final-text {
  font-weight: 800;
  text-transform: uppercase;
}