/* offline design polish — desktop + mobile-first */

html {
  box-sizing: border-box;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: inherit; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  /* Prefer light JPG (~15–50KB) — heavy PNG only if needed as optional layer later */
  background-color: #1a1428;
  background-image:
    url("../img/bg_divino.mobile.jpg"),
    url("../img/bg_divino.f4f3e669.jpg"),
    linear-gradient(180deg, #2a1f3d 0%, #1a1428 45%, #0f0a18 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  /* fixed is janky/broken on iOS — overridden to scroll below */
  background-attachment: scroll;
  overscroll-behavior-y: none;
}

/* ========== FULL-PAGE BACKGROUND ========== */
#page-wrapper.page-wrapper,
#page-wrapper,
.page-wrapper {
  position: relative !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  isolation: isolate;
  background-color: transparent !important;
  background-image: url("../img/bg_divino.mobile.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}

/* Fixed full-viewport layer (Vue injects <img> here) */
.background-image-sign {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  z-index: 0 !important;
  pointer-events: none !important;
  line-height: 0 !important;
  overflow: hidden !important;
  background-image: url("../img/bg_divino.mobile.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
}

.background-image-sign img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(0.88);
  background-color: transparent;
  /* prevent layout thrash while decoding large PNG */
  content-visibility: auto;
}

.bg-mgi {
  background-image: url("../img/dark-bg-wide.78a4760b.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

/* Content above the background */
#page-wrapper > .container,
#page-wrapper > .ga4983248,
.page-wrapper > .container {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: max(12px, env(safe-area-inset-left)) !important;
  padding-right: max(12px, env(safe-area-inset-right)) !important;
}

.ga4983248 {
  min-height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 12px max(28px, env(safe-area-inset-bottom)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.ga4983248 .eh90427 {
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto !important;
}

/* Modal: grow with content */
.form-modal,
.form-modal-og {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  padding: 18px 16px 22px !important;
  background: rgba(28, 24, 40, 0.88) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  overflow: visible !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.form-container {
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  width: 100% !important;
  gap: 12px !important;
}

.eh90427 .form-content,
.form-content {
  min-height: auto !important;
  height: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  grid-template-rows: none !important;
}

.progress-container {
  width: 100% !important;
  margin-bottom: 6px !important;
}
.form-content h3,
.titulo-pergunta-signo,
.titulo-sesao {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Touch: remove 300ms tap delay on all interactive controls */
button,
.bs5829,
.btn-item,
.butao-nome,
.botao-sexu,
.botao-civil,
.btn-voltar,
.decade-button,
.year-button,
.dsc698 .ls318329 li,
.sbc1945 button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.25);
}

/* Player captions */
#audio-astrology .vjs-text-track-cue > div {
  font-family: Poppins, Sora, "Open Sans", sans-serif !important;
}
.frame.image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.sectionAnimation,
#sectionAnimation,
.modal-animation,
.modalElement {
  overflow: hidden;
  max-width: 100%;
}

/* ===== Date picker flow (signo → dia → década → ano) ===== */
.sign-range-hint {
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 10px;
  line-height: 1.35;
}
.dsc698 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 14px !important;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 12px !important;
  position: relative;
  width: 100%;
}
.dsc698 .dc48194 {
  flex: 1 1 46%;
  min-width: 140px;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 8px 8px 12px;
  border: 1px solid rgba(135, 206, 235, 0.35);
}
.dsc698 .header31283 {
  background: linear-gradient(135deg, #5b9bd5, #3a7bd5) !important;
  margin: 0 0 10px !important;
  border-radius: 8px !important;
  padding: 10px 8px !important;
}
.dsc698 .header31283 h4 {
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}
.dsc698 .ls318329 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px !important;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dsc698 .ls318329 li {
  width: auto !important;
  min-height: 44px !important;
  height: 44px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.dsc698 .ls318329 li.active {
  background: linear-gradient(135deg, gold, #f4c430) !important;
  color: #1a1a1a !important;
  border-color: #daa520 !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.45) !important;
  transform: scale(1.06);
}

@media (min-width: 520px) {
  .dsc698 .id2938 { order: 1; }
  .dsc698 .id784738 { order: 3; }
  .dsc698::after {
    content: "ou";
    order: 2;
    align-self: center;
    color: gold;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 0 4px;
  }
}

.decade-grid,
.year-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 8px 4px 16px;
  margin: 0;
  width: 100%;
}
.decade-button,
.year-button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #87ceeb;
  background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
  color: #2a4d6e;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.decade-button:active,
.year-button:active {
  transform: scale(0.97);
}
.decade-button--highlight,
.year-button--highlight,
.decade-button.active,
.year-button.active {
  background: linear-gradient(135deg, gold, #f4c430) !important;
  border-color: #daa520 !important;
  color: #1a1a1a !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
}
.progress-step-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ===== Estado civil / desafio — base (all viewports) =====
   Overrides astrologyStyle .botao-civil { width:33% } which
   breaks the 2-col grid used by the quiz. */
ul.birth-date-list.estado-civil-list,
.estado-civil-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  justify-content: center;
}
button.botao-civil,
.botao-civil.date-item,
.botao-civil {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100px !important;
  padding: 14px 10px !important;
  border-radius: 14px !important;
  border: 2px solid purple !important;
  background: #8000808c !important;
  color: #fff !important;
  font-family: Sora, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
button.botao-civil img,
.botao-civil img {
  height: 52px !important;
  width: auto !important;
  max-width: 64px !important;
  margin: 0 auto 8px !important;
  object-fit: contain !important;
  pointer-events: none;
}
button.botao-civil.highlight,
.botao-civil.highlight {
  background: linear-gradient(135deg, gold, #f4c430) !important;
  border-color: #daa520 !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4) !important;
}
button.botao-civil:active,
.botao-civil:active {
  transform: scale(0.97);
}
button.botao-desafio,
.botao-desafio {
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 120px !important;
  cursor: pointer !important;
  touch-action: manipulation;
  color: #fff !important;
}
.botao-desafio.highlight {
  background: linear-gradient(135deg, gold, #f4c430) !important;
  color: #1a1a1a !important;
}

/* Sexo: Masculino | Feminino sempre lado a lado */
.popup-overlay {
  width: 100%;
  max-width: 100%;
}
.popup-overlay > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 14px;
}
.popup-overlay > div > div:has(> .btn-send),
.popup-overlay > div > div:nth-of-type(1) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important;
  place-content: stretch !important;
}
.popup-overlay .btn-send {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  min-height: 140px !important;
  padding: 16px 10px !important;
  border-radius: 14px !important;
  border: 2px solid #87ceeb !important;
  background: linear-gradient(145deg, #f0f8ff, #e6f3ff) !important;
  color: #2a4d6e !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  cursor: pointer !important;
  touch-action: manipulation;
  box-sizing: border-box !important;
}
.popup-overlay .btn-send img {
  height: 72px !important;
  width: auto !important;
  max-width: 80px !important;
  margin: 0 auto 8px !important;
  object-fit: contain !important;
  pointer-events: none;
}
.popup-overlay .btn-send br {
  display: none !important;
}

/* ========== MOBILE (phones / small tablets) ========== */
@media (max-width: 768px) {
  /* iOS: fixed backgrounds paint wrong / only half screen */
  body,
  #page-wrapper.page-wrapper,
  #page-wrapper,
  .page-wrapper,
  .bg-mgi {
    background-attachment: scroll !important;
  }

  /* Lighter CSS bg on mobile (~50KB jpg instead of 1.8MB png twice) */
  body {
    background-image:
      url("../img/bg_divino.f4f3e669.jpg"),
      linear-gradient(180deg, #2a1f3d 0%, #1a1428 45%, #0f0a18 100%) !important;
  }
  #page-wrapper.page-wrapper,
  #page-wrapper,
  .page-wrapper,
  .background-image-sign {
    background-image: url("../img/bg_divino.f4f3e669.jpg") !important;
  }

  /* Fixed img layer still covers viewport; object-fit cover is cheap enough */
  .background-image-sign {
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    /* avoid 100dvw scrollbar gutter issues on Android */
  }
  .background-image-sign img {
    /* Prefer object-fit; slightly darker for form contrast on small screens */
    filter: brightness(0.82);
  }

  .ga4983248 {
    padding: 10px 8px max(20px, env(safe-area-inset-bottom)) !important;
    min-height: auto !important;
    display: flex !important;
    grid-template-rows: none !important;
  }

  .ga4983248 .eh90427 {
    max-width: 100% !important;
  }

  /* Kill huge empty spacer from original template on mobile */
  .hf-4920 {
    padding-top: 12px !important;
  }
  .hf-4920 h2.section-heading,
  .hf-4920 h2.section-heading-mobile {
    font-size: clamp(1.35rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
  }

  .form-modal,
  .form-modal-og {
    padding: 14px 12px 18px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    /* slightly more opaque so text stays readable on bright skies */
    background: rgba(22, 18, 34, 0.92) !important;
  }

  .form-content h3,
  .titulo-pergunta-signo,
  .titulo-sesao,
  .form-content h3.title-mobile {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Sign grid: 3 columns, fat touch targets */
  .sbc1945 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: stretch !important;
  }
  .sbc1945 .bs5829,
  .bs5829 {
    width: 100% !important;
    min-height: 88px !important;
    padding: 8px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }
  .bs5829 img {
    height: 42px !important;
    width: auto !important;
    margin-bottom: 4px !important;
    pointer-events: none;
  }
  .bs5829 p {
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  /* Name / gender / civil buttons */
  .butao-nome {
    width: calc(33.333% - 6px) !important;
    min-width: 0 !important;
    min-height: 44px !important;
    font-size: 0.95rem !important;
    padding: 10px 6px !important;
  }
  .botao-sexu {
    min-height: 48px !important;
    width: calc(50% - 6px) !important;
    max-width: none !important;
    font-size: 1rem !important;
    padding: 12px 10px !important;
  }
  .btn-item {
    width: calc(33.333% - 4px) !important;
    min-height: 48px !important;
    font-size: 1.15rem !important;
    padding: 10px 6px !important;
  }
  .btn-voltar {
    min-height: 44px !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: 100% !important;
  }

  /* ===== ESTADO CIVIL (passo 5) — mobile-first grid =====
     Bug: botões com width:33%/50% dentro do grid quebravam tudo.
     Grid 2 colunas + botão width:100% da célula. */
  .s7s1238s7sd30007600000.form-content,
  .s7s1238s7sd30007600000 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    grid-template-rows: none !important;
  }
  .s7s1238s7sd30007600000 .input-control,
  .s7s1238s7sd30007600000 .ffn312312900nbn432420000 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .birth-date-month {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  ul.birth-date-list.estado-civil-list,
  .estado-civil-list,
  ul.estado-civil-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: stretch !important;
    flex-wrap: unset !important;
  }
  /* botões diretos no <ul> (markup original) */
  .estado-civil-list > .botao-civil,
  .estado-civil-list .botao-civil,
  button.botao-civil.date-item,
  button.botao-civil {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 96px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 12px !important;
    border: 2px solid rgba(186, 85, 211, 0.85) !important;
    background: rgba(90, 30, 110, 0.72) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  .estado-civil-list .botao-civil img,
  button.botao-civil img {
    display: block !important;
    height: 48px !important;
    width: auto !important;
    max-width: 56px !important;
    margin: 0 auto 6px !important;
    object-fit: contain !important;
    pointer-events: none !important;
  }
  .estado-civil-list .botao-civil br,
  button.botao-civil br {
    display: none !important; /* flex column replaces <br> */
  }
  .estado-civil-list .botao-civil.highlight,
  button.botao-civil.highlight,
  button.botao-civil.date-item.highlight {
    background: linear-gradient(135deg, #ffd700, #f4c430) !important;
    border-color: #daa520 !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45) !important;
    transform: scale(1.02);
  }

  /* Desafio (passo 6) — 2 cards lado a lado no mobile */
  .birth-date-list .row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    row-gap: 10px !important;
  }
  .birth-date-list .row > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding: 0 5px !important;
  }
  button.botao-desafio,
  .botao-desafio.date-item,
  .botao-desafio {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 110px !important;
    height: auto !important;
    padding: 14px 8px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: 2px solid rgba(186, 85, 211, 0.85) !important;
    background: rgba(90, 30, 110, 0.72) !important;
    color: #fff !important;
    white-space: normal !important;
  }
  .botao-desafio img {
    height: 48px !important;
    width: auto !important;
    margin-bottom: 6px !important;
    pointer-events: none !important;
  }
  .botao-desafio.highlight {
    background: linear-gradient(135deg, #ffd700, #f4c430) !important;
    border-color: #daa520 !important;
    color: #1a1a1a !important;
  }

  /* Sexo (passo 7) — Masculino | Feminino lado a lado */
  .popup-overlay {
    position: relative !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 8px 0 16px !important;
    background: transparent !important;
  }
  /* Outer stack: título em cima, botões embaixo, voltar no fim */
  .popup-overlay > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }
  /* Linha dos 2 sexos: SEMPRE em row, sem wrap */
  .popup-overlay > div > div:first-of-type,
  .popup-overlay div[style*="flex-direction: row"],
  .popup-overlay div[style*="flex-direction:row"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-flow: nowrap !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    place-content: stretch !important;
  }
  .popup-overlay .btn-send {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    min-height: 128px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 8px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 14px !important;
    border: 2px solid #87ceeb !important;
    background: linear-gradient(145deg, #f0f8ff, #e6f3ff) !important;
    color: #2a4d6e !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  .popup-overlay .btn-send:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, gold, #f4c430) !important;
    border-color: #daa520 !important;
    color: #1a1a1a !important;
  }
  .popup-overlay .btn-send img {
    height: 56px !important;
    width: auto !important;
    max-width: 72px !important;
    margin: 0 auto 8px !important;
    object-fit: contain !important;
    pointer-events: none !important;
  }
  .popup-overlay .btn-send br {
    display: none !important; /* coluna flex substitui o <br> */
  }
  .popup-overlay .btn-voltar,
  .popup-overlay .btn-voltar button {
    align-self: center !important;
    margin-top: 4px !important;
  }

  /* Nome (passo 8) */
  .field-input,
  #f131238918284 {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
  }
  .button-form.pulsating-button,
  .button-form {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    font-size: 1.1rem !important;
    margin-bottom: 24px !important;
  }

  .titulo-sesao {
    font-size: clamp(1.05rem, 4.6vw, 1.35rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
    padding: 10px 12px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }

  /* Day columns: stack full-width on narrow phones */
  .dsc698 {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .dsc698 .dc48194 {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .dsc698::after {
    content: "ou" !important;
    display: block !important;
    order: unset !important;
    text-align: center;
    color: gold;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 2px 0;
  }
  .dsc698 .ls318329 {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .dsc698 .ls318329 li {
    min-height: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }
  .dsc698 .header31283 {
    padding: 8px 6px !important;
  }
  .dsc698 .header31283 h4 {
    font-size: 0.95rem !important;
  }

  .sign-range-hint {
    font-size: 0.9rem;
    margin: 0 0 10px;
    padding: 8px 10px;
  }

  /* Decade / year: 3–4 cols, larger tap */
  .decade-grid,
  .year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 6px 0 12px !important;
  }
  .decade-button,
  .year-button {
    min-height: 48px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }

  .progress-step-text {
    font-size: 0.9rem !important;
  }
  .progress-bar-top,
  .progress-bar {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Inputs readable + 16px to avoid iOS zoom */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    max-width: 100% !important;
    min-height: 48px !important;
  }

  /* Loading / CTA blocks */
  .ps03120003100000 .mp3130120000 h3 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.25 !important;
  }
  .ps03120003100000 .mb312319909321009990 {
    margin-top: 40px !important;
  }
  .ps03120003100000 .mb312319909321009990 button {
    width: 100% !important;
    max-width: 360px !important;
    min-height: 52px !important;
    font-size: 1.125rem !important;
    padding: 14px 24px !important;
  }

  .animation-section .animation-container {
    height: auto !important;
    min-height: 220px !important;
    max-height: 55vh !important;
  }

  /* Avoid horizontal overflow from bootstrap container gutters */
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .sbc1945 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .bs5829 img {
    height: 36px !important;
  }
  .bs5829 p {
    font-size: 0.68rem !important;
  }
  .sbc1945 .bs5829,
  .bs5829 {
    min-height: 76px !important;
    padding: 6px 2px !important;
  }
  .dsc698 .ls318329 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  .decade-grid,
  .year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .form-modal,
  .form-modal-og {
    padding: 12px 10px 16px !important;
  }
}

/* Landscape phones: less vertical padding, keep usable */
@media (max-width: 900px) and (orientation: landscape) {
  .hf-4920 {
    padding-top: 6px !important;
  }
  .ga4983248 {
    padding-top: 6px !important;
    padding-bottom: 12px !important;
  }
  .sbc1945 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  .sbc1945 .bs5829,
  .bs5829 {
    min-height: 72px !important;
  }
  .bs5829 img {
    height: 34px !important;
  }
  .dsc698 {
    flex-direction: row !important;
  }
  .dsc698 .dc48194 {
    flex: 1 1 46% !important;
    max-width: 48% !important;
  }
}

/* Desktop: keep dual-month “ou” layout tidy */
@media (min-width: 769px) {
  .sbc1945 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    justify-content: center !important;
  }
  .bs5829 {
    min-width: 100px;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .background-image-sign {
    will-change: auto;
  }
}
