/* Formulário "Book my free call", página de parceiros e aviso de cookies.
   Usa os tokens do :root de styles.css (quando carregado) com fallback, porque
   partners/index.html carrega só este arquivo. Tamanhos em px/rem: é interface
   fixa, fora dos painéis (a regra do --u vale só dentro de .panel). */

.wg-dialog,
.wg-page,
.wg-cookies {
  --wg-ink: var(--navy, #1C3A5E);
  --wg-cream: var(--cream, #F2E8D6);
  --wg-orange: var(--orange, #F4671F);
  --wg-lime: var(--lime, #C6F135);
  --wg-line: rgba(28, 58, 94, 0.18);
  --wg-muted: rgba(28, 58, 94, 0.72);
  font-family: var(--sans, 'Poppins', system-ui, -apple-system, sans-serif);
  color: var(--wg-ink);
}

/* ---------- botões ---------- */
.wg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid var(--wg-orange);
  border-radius: 999px;
  background: var(--wg-orange);
  color: #fff;
  font: 600 15px/1.2 var(--sans, 'Poppins', sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.wg-btn:hover { filter: brightness(1.06); }
.wg-btn:active { transform: translateY(1px); }
.wg-btn:disabled { opacity: 0.6; cursor: progress; }
.wg-btn:focus-visible { outline: 3px solid var(--wg-lime); outline-offset: 2px; }
.wg-btn-ghost { background: transparent; color: var(--wg-ink); border-color: var(--wg-line); }
.wg-btn-wa { background: #1f8f4e; border-color: #1f8f4e; }
.wg-btn-block { display: flex; width: 100%; margin-top: 12px; }

/* ---------- modal ---------- */
.wg-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 28px 24px 22px;
  border: 0;
  border-radius: 20px;
  background: var(--wg-cream);
  box-shadow: 0 24px 80px rgba(8, 18, 36, 0.45);
  overflow-y: auto;
}
.wg-dialog::backdrop { background: rgba(8, 18, 36, 0.62); }
.wg-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wg-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.wg-close:hover { background: rgba(28, 58, 94, 0.08); }
.wg-dialog h2,
.wg-page h1 {
  margin: 0 32px 6px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.wg-dialog h3,
.wg-page h2 { margin: 20px 0 8px; font-size: 15px; font-weight: 600; }
.wg-lead { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--wg-muted); }

/* ---------- campos ---------- */
.wg-form { display: grid; gap: 12px; }
.wg-field { display: grid; gap: 5px; }
.wg-field label { font-size: 13px; font-weight: 500; }
.wg-field input,
.wg-field select,
.wg-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--wg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--wg-ink);
  font: 400 15px/1.3 var(--sans, 'Poppins', sans-serif);
}
.wg-field textarea { min-height: 88px; resize: vertical; }
.wg-field input:focus,
.wg-field select:focus,
.wg-field textarea:focus { outline: none; border-color: var(--wg-orange); box-shadow: 0 0 0 3px rgba(244, 103, 31, 0.18); }
.wg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.wg-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--wg-orange); }
.wg-error { min-height: 1em; margin: 0; font-size: 13px; color: #b3261e; }
.wg-error:empty { display: none; }
.wg-fine { margin: 2px 0 0; font-size: 12px; color: var(--wg-muted); }
.wg-fine a,
.wg-page a:not(.wg-btn),
.wg-cookies a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wg-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wg-next { margin: 0 0 4px 18px; padding: 0; font-size: 14px; line-height: 1.55; }
.wg-next li { margin: 4px 0; }
.wg-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--wg-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.wg-choice input { accent-color: var(--wg-orange); }

/* ---------- aviso de cookies ---------- */
.wg-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--wg-cream);
  box-shadow: 0 12px 40px rgba(8, 18, 36, 0.35);
  font-size: 13.5px;
  line-height: 1.45;
}
.wg-cookies p { flex: 1 1 280px; margin: 0; }
.wg-cookies-actions { display: flex; gap: 8px; }
.wg-cookies .wg-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.cookie-link {
  position: absolute;
  right: 16px;
  bottom: clamp(10px, calc(1.2 * var(--u)), 24px);
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream, #F2E8D6);
  font: 400 clamp(12px, calc(0.7 * var(--u)), 15px) var(--sans, 'Poppins', sans-serif);
  cursor: pointer;
}
.cookie-link:hover,
.cookie-link:focus-visible { color: var(--lime, #C6F135); }

/* ---------- página de parceiros ---------- */
body.wg-page-body { margin: 0; background: var(--cream, #F2E8D6); }
.wg-page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; }
.wg-page header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wg-page header img { height: 44px; width: auto; }
.wg-page-grid { display: grid; gap: 32px; margin-top: 32px; }
.wg-page h1 { font-size: clamp(28px, 5vw, 44px); margin-right: 0; }
.wg-page .wg-hand { font-family: var(--hand, 'Caveat', cursive); color: var(--wg-orange); font-size: 1.15em; font-weight: 700; }
.wg-page p { font-size: 15px; line-height: 1.6; }
.wg-page .wg-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.wg-page .wg-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.wg-page .wg-steps b { display: block; font-size: 15px; }
.wg-page .wg-steps span.n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wg-ink);
  color: var(--wg-cream);
  font-size: 13px;
  font-weight: 600;
}
.wg-card { padding: 24px 20px; border-radius: 20px; background: #fff; box-shadow: 0 10px 40px rgba(8, 18, 36, 0.08); }
.wg-terms { margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--wg-orange); background: rgba(255, 255, 255, 0.55); font-size: 14px; }
.wg-page footer { margin-top: 48px; font-size: 13px; color: var(--wg-muted); }

@media (min-width: 860px) {
  .wg-page { padding: 32px 32px 64px; }
  .wg-page-grid { grid-template-columns: 1fr 420px; align-items: start; }
  .wg-dialog { padding: 32px 32px 26px; }
}

/* noite (body.night na home): o modal continua claro de propósito — formulário legível. */
