/* Ajustes do tema — o style.min.css é o arquivo original, transportado
   sem alteração. O que precisa existir só na versão Velk mora aqui. */

/* O logout do WordPress era um <a href>. No Velk é POST, então virou um
   botão dentro de um form: aqui ele volta a parecer o link de antes. */
.restricted-area h2 form {
  display: inline;
}
.restricted-area h2 button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #0068FF;
  text-decoration: underline;
  cursor: pointer;
}

/* Popup do formulário de ebook.

   No WordPress esta janela vinha pronta do FormCraft. Sem o plugin, ela
   é do tema — e usa os mesmos tokens do resto do site (--white, --gray-3,
   raio de 26px dos .input) para não destoar. */
.ebook-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 35, 80, .6);
  overflow-y: auto;
}
.ebook-form-overlay[hidden] {
  display: none;
}
.ebook-form-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
}
.ebook-form-modal h2 {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: var(--blue);
}
.ebook-form-modal form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.ebook-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.ebook-form-success {
  margin-top: 20px;
  text-align: center;
  color: var(--green);
}
.ebook-form-modal .error {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #F00;
}
@media (max-width: 920px) {
  .ebook-form-modal {
    padding: 40px 20px 30px;
  }
}
