/*!
==========================================================
MODAL DE INSCRIÇÃO
==========================================================
*/

.stbg-modal-inscricao {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  &.ativo {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

.stbg-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);
}

.stbg-modal-conteudo {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 760px;
  max-height: 90vh;

  overflow-y: auto;

  padding: 36px;

  background: #fff;

  border-radius: 12px;

  transform: translateY(20px);

  transition: transform 0.25s ease;
}

.stbg-modal-inscricao.ativo {
  .stbg-modal-conteudo {
    transform: translateY(0);
  }
}

.stbg-modal-fechar {
  position: absolute;

  top: 16px;
  right: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 8px;

  background: #8f1519 !important;

  color: #ffffff !important;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;

  &:hover {
    background: #721114;

    transform: scale(1.05);
  }
}

.stbg-modal-cabecalho {
  margin-bottom: 28px;
  padding-right: 50px;

  h2 {
    margin: 0 0 6px;
  }

  p {
    margin: 0;
    color: #666;
  }
}

html.stbg-modal-aberto,
body.stbg-modal-aberto {
  overflow: hidden;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {
  .stbg-modal-inscricao {
    align-items: stretch;
    padding: 0;
  }

  .stbg-modal-conteudo {
    width: 100%;
    max-width: none;

    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;

    padding: calc(24px + env(safe-area-inset-top)) 20px
      calc(24px + env(safe-area-inset-bottom));

    border-radius: 0;
  }

  .stbg-modal-fechar {
    position: fixed;

    top: calc(12px + env(safe-area-inset-top));
    right: 16px;

    z-index: 3;
  }

  .stbg-modal-cabecalho {
    margin-bottom: 28px;
    padding-right: 50px;
  }
}
