/* ==========================================================================
   Empreendedoras 55 — Cadastro (mini-formulário da Hero + modal wizard)
   Namespace: todas as classes usam o prefixo "e55-form-" para não conflitar
   com as classes existentes (e55-*). Cores, bordas, sombras e tipografia
   reaproveitam as variáveis já definidas em style.css.
   ========================================================================== */

/* ---------- Campos de formulário (compartilhados entre hero e modal) ---------- */

.e55-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.e55-form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--e55-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15px;
  text-transform: uppercase;
}

.e55-form-input,
.e55-form-select,
.e55-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--e55-line);
  border-radius: 8px;
  background: #fff;
  color: var(--e55-ink);
  font: 400 13px/1.5 var(--e55-sans);
  transition: .25s;
}

.e55-form-textarea {
  min-height: 88px;
  resize: vertical;
}

.e55-form-input:focus,
.e55-form-select:focus,
.e55-form-textarea:focus {
  border-color: var(--e55-wine);
  box-shadow: 0 0 0 3px #762d5620;
  outline: 0;
}

.e55-form-input--invalid,
.e55-form-select--invalid,
.e55-form-textarea--invalid {
  border-color: #b3283f;
}

.e55-form-error {
  display: block;
  min-height: 13px;
  margin-top: 5px;
  color: #b3283f;
  font-size: 10px;
  font-weight: 600;
}

.e55-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---------- Mini-formulário da Hero ---------- */

.e55-form-hero {
  max-width: 420px;
  margin-top: 28px;
}

.e55-form-hero__submit {
  width: 100%;
  margin-top: 8px;
}

/* ---------- Checkboxes de autorização (Passo 3) ---------- */

.e55-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--e55-ink);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

.e55-form-checkbox input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--e55-wine);
}

/* ---------- Honeypot anti-spam (invisível, não deve ser preenchido) ---------- */

.e55-form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Erro de envio (falha no fetch/Apps Script) ---------- */

.e55-form-submit-error {
  display: block;
  min-height: 13px;
  margin: 14px 0 0;
  color: #b3283f;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

/* ---------- Overlay + diálogo do modal ---------- */

.e55-form-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.e55-form-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.e55-form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(39, 34, 40, .55);
}

.e55-form-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 46px;
  background: var(--e55-cream);
  border-radius: 16px;
  box-shadow: 0 30px 70px #27222840;
  transform: scale(.96) translateY(14px);
  transition: transform .35s ease;
}

.e55-form-modal--open .e55-form-modal__dialog {
  transform: scale(1) translateY(0);
}

.e55-form-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--e55-blush);
  color: var(--e55-wine);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: .25s;
}

.e55-form-modal__close:hover {
  background: var(--e55-wine);
  color: #fff;
}

/* ---------- Cabeçalho do wizard ---------- */

.e55-form-modal__head {
  max-width: 560px;
  margin: 0 0 28px;
}

.e55-form-modal__progress {
  margin: 0 0 8px;
  color: var(--e55-wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15px;
  text-transform: uppercase;
}

.e55-form-modal__title {
  margin: 0;
  font: 600 clamp(26px, 3vw, 34px)/1.1 var(--e55-serif);
  letter-spacing: -.5px;
}

.e55-form-modal__greeting {
  margin: 8px 0 0;
  color: var(--e55-muted);
  font-size: 11px;
}

.e55-form-modal__greeting:empty {
  display: none;
}

/* ---------- Passos do wizard ---------- */

.e55-form-step[hidden] {
  display: none;
}

.e55-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.e55-form-actions .e55-btn {
  min-width: 140px;
}

/* .e55-btn already sets display:inline-flex, which (being an author rule)
   overrides the browser default "[hidden]{display:none}". Restate it here
   with higher specificity so hidden step buttons are actually hidden. */
.e55-form-actions .e55-btn[hidden] {
  display: none;
}

.e55-form-next,
.e55-form-send {
  margin-left: auto;
}

.e55-form-send[disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Tela de sucesso ---------- */

.e55-form-success {
  padding: 10px 0;
  text-align: center;
}

.e55-form-success__icon {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1;
}

.e55-form-success h2 {
  margin: 0 0 16px;
  font: 600 clamp(24px, 3vw, 32px)/1.15 var(--e55-serif);
  letter-spacing: -.5px;
}

.e55-form-success p {
  max-width: 540px;
  margin: 0 auto 14px;
  color: var(--e55-muted);
  font-size: 12px;
  line-height: 1.7;
}

.e55-form-success__close {
  margin-top: 12px;
}
