/* ═══════════════════════════════════════════════════════
   WGL GERADORES — Calculadora de Potência v3.0
   Grid: Bootstrap | Estilo: Marca WGL
═══════════════════════════════════════════════════════ */

/* ─── Variáveis da marca ─────────────────────────────── */
:root {
  --primaria-light:  #2ea7c2;
  --primaria:        #2259a5;
  --primaria-dark:   #23293f;
  --secundaria-light:#41fdce;
  --secundaria:      #1ad3a2;
  --secundaria-dark: #14aa85;
  --terciaria:       #4dabc1;
  --degrade: linear-gradient(75deg, #23293f 0%, #2259a5 51.39%, #225AA5 51.96%, #1ad3a2 99.55%);
  --cinza:       #F5F5F7;
  --cinza-claro: #ececec;
  --branco:      #ffffff;
  --preto:       #1d1e1f;
  --border:      #dde3ed;
  --text-muted:  #5a6a82;
  --text-dim:    #9aacbe;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(34,89,165,0.08);
  --shadow-lg:   0 8px 40px rgba(34,89,165,0.12);
  --fonte: 'Barlow', sans-serif;
}

/* ─── Wrapper — z-index contido abaixo do header WP ─── */
.wgl-calc-wrap {
  position: relative;
  z-index: 0;          /* Garante que nada interno suba acima do header do tema */
  isolation: isolate;  /* Cria contexto de empilhamento isolado */
  font-family: var(--fonte);
  font-size: 1rem;
  color: var(--preto);
  background: var(--branco);
  line-height: 1.6;
}

/* ─── HERO ───────────────────────────────────────────── */
.wgl-hero {
  background: var(--degrade);
  position: relative;
  overflow: hidden;
  text-align: center; /* centraliza toda a seção hero */
}

.wgl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,0.04) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(255,255,255,0.04) 48px);
  pointer-events: none;
  z-index: 0;
}

.wgl-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(26,211,162,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wgl-hero-body {
  padding: 5rem 0 6rem;
  position: relative;
  z-index: 1;
}

.wgl-hero-eyebrow {
  margin-bottom: 1.25rem;
}

.wgl-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secundaria-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.wgl-hero-title {
  font-family: var(--fonte);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--branco);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.wgl-highlight {
  color: var(--secundaria-light);
  display: inline-block;
}

.wgl-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.wgl-hero-wave {
  height: 56px;
  background: var(--cinza);
  clip-path: ellipse(75% 100% at 50% 100%);
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

/* ─── BOTÕES ─────────────────────────────────────────── */
.wgl-btn-primary {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: var(--secundaria);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0 4px 18px rgba(26,211,162,0.35);
          box-shadow: 0 4px 18px rgba(26,211,162,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wgl-btn-primary:hover,
.wgl-btn-primary:focus {
  background: var(--secundaria-dark);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 24px rgba(26,211,162,0.45);
          box-shadow: 0 8px 24px rgba(26,211,162,0.45);
  color: var(--branco);
  text-decoration: none;
}

.wgl-btn-primary:active { -webkit-transform: translateY(0); transform: translateY(0); }

.wgl-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.wgl-btn-secundario {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wgl-btn-secundario:hover,
.wgl-btn-secundario:focus {
  background: rgba(255,255,255,0.22);
  color: var(--branco);
  text-decoration: none;
}

.wgl-btn-remove {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.wgl-btn-remove:hover {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.3);
  color: #dc2626;
}

@-webkit-keyframes wglPulse {
  0%, 100% { -webkit-box-shadow: 0 4px 18px rgba(26,211,162,0.35); box-shadow: 0 4px 18px rgba(26,211,162,0.35); }
  50%       { -webkit-box-shadow: 0 4px 32px rgba(26,211,162,0.6), 0 0 60px rgba(26,211,162,0.2); box-shadow: 0 4px 32px rgba(26,211,162,0.6), 0 0 60px rgba(26,211,162,0.2); }
}

@keyframes wglPulse {
  0%, 100% { -webkit-box-shadow: 0 4px 18px rgba(26,211,162,0.35); box-shadow: 0 4px 18px rgba(26,211,162,0.35); }
  50%       { -webkit-box-shadow: 0 4px 32px rgba(26,211,162,0.6), 0 0 60px rgba(26,211,162,0.2); box-shadow: 0 4px 32px rgba(26,211,162,0.6), 0 0 60px rgba(26,211,162,0.2); }
}
.wgl-pulse { -webkit-animation: wglPulse 2.5s ease-in-out infinite; animation: wglPulse 2.5s ease-in-out infinite; }

/* ─── FEATURES ───────────────────────────────────────── */
.wgl-features {
  background: var(--cinza);
  border-bottom: 1px solid var(--border);
}

/* Borda entre colunas no desktop */
.wgl-feature-col {
  border-right: 1px solid var(--border);
}

.wgl-feature-col:last-child {
  border-right: none;
}

@media (max-width: 767.98px) {
  .wgl-feature-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .wgl-feature-col:last-child { border-bottom: none; }
}

.wgl-feature-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  height: 100%;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.wgl-feature-item:hover { background: rgba(34,89,165,0.03); }

.wgl-feature-icon {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,89,165,0.12) 0%, rgba(26,211,162,0.12) 100%);
  border: 1px solid rgba(34,89,165,0.15);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--primaria);
}

.wgl-feature-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wgl-feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── SEÇÃO CALCULADORA ──────────────────────────────── */
.wgl-calc-section {
  padding: 4rem 0 5rem;
  background: var(--cinza);
}

.wgl-section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.wgl-section-header h2 {
  font-family: var(--fonte);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--primaria-dark);
  margin-bottom: 0.6rem;
  text-align: center;
}

.wgl-section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.wgl-card {
  background: var(--branco);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
  text-align: left; /* reseta herança de centralização do hero/section-header */
}

/* ─── TABS ───────────────────────────────────────────── */
.wgl-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--cinza);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.wgl-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--fonte);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.wgl-tab:hover:not(.active) {
  background: rgba(34,89,165,0.06);
  color: var(--primaria);
}

.wgl-tab.active {
  background: var(--degrade);
  color: var(--branco);
  -webkit-box-shadow: 0 4px 14px rgba(34,89,165,0.25);
          box-shadow: 0 4px 14px rgba(34,89,165,0.25);
}

@media (max-width: 575.98px) {
  .wgl-tabs  { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
  .wgl-tab   { -webkit-box-flex: 0; -ms-flex: none; flex: none; width: 100%; }
}

/* ─── PANELS ─────────────────────────────────────────── */
.wgl-panel { display: none; }
.wgl-panel.active { display: block; }

/* ─── INFO BANNER ────────────────────────────────────── */
.wgl-info-banner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(46,167,194,0.07);
  border: 1px solid rgba(46,167,194,0.25);
  border-left: 3px solid var(--primaria-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
}

.wgl-info-banner svg { color: var(--primaria-light); -ms-flex-negative: 0; flex-shrink: 0; margin-top: 2px; }
.wgl-info-banner strong { color: var(--primaria-dark); }
.wgl-icon-shrink { -ms-flex-negative: 0; flex-shrink: 0; }

/* ─── FIELDS ─────────────────────────────────────────── */
.wgl-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch; /* inputs e selects ocupam 100% da coluna */
  gap: 5px;
  text-align: left;
}

.wgl-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primaria-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0;
  text-align: left;
}

.wgl-label-sm {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  text-align: left;
}

/* ─── INPUTS & SELECTS ───────────────────────────────── */
.wgl-input,
.wgl-select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  background: var(--branco);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--preto);
  font-family: var(--fonte);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.wgl-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6a82' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
  cursor: pointer;
}

.wgl-select option { background: var(--branco); }

.wgl-input:focus,
.wgl-select:focus {
  border-color: var(--primaria);
  -webkit-box-shadow: 0 0 0 3px rgba(34,89,165,0.12);
          box-shadow: 0 0 0 3px rgba(34,89,165,0.12);
}

.wgl-input::-webkit-input-placeholder { color: var(--text-dim); }
.wgl-input::-moz-placeholder          { color: var(--text-dim); }
.wgl-input:-ms-input-placeholder      { color: var(--text-dim); }
.wgl-input::-ms-input-placeholder     { color: var(--text-dim); }
.wgl-input::placeholder                { color: var(--text-dim); }

.wgl-input-group { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 8px; }
.wgl-input-group .wgl-input { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.wgl-unit-sel { width: 70px !important; -ms-flex-negative: 0; flex-shrink: 0; padding: 0.6rem 0.5rem; }

/* ─── CAIXA CONFIG ───────────────────────────────────── */
.wgl-config-box {
  padding: 1.25rem 1.5rem;
  background: var(--cinza);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: left;
}

.wgl-config-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primaria-dark);
  margin-bottom: 1.1rem;
  text-align: left;
}

.wgl-config-title svg { color: var(--primaria); }

/* ─── CHECKBOX ───────────────────────────────────────── */
.wgl-checkbox-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primaria-dark);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-align: left;
}

.wgl-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--primaria);
  cursor: pointer;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* ─── TOOLTIP ────────────────────────────────────────── */
.wgl-tooltip-wrap {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: help;
}

.wgl-tooltip-wrap svg { color: var(--text-dim); }

.wgl-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 210px;
  padding: 9px 12px;
  background: var(--primaria-dark);
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.5;
  z-index: 10;
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
  pointer-events: none;
  white-space: normal;
}

.wgl-tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primaria-dark);
}

.wgl-tooltip-wrap:hover .wgl-tooltip-text { display: block; }

/* ─── EQUIPAMENTOS ───────────────────────────────────── */
.wgl-equip-section { margin-bottom: 1rem; }

.wgl-equip-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primaria-dark);
}

.wgl-equip-item {
  background: var(--branco);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.625rem;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  text-align: left;
}

.wgl-equip-item:hover {
  border-color: rgba(34,89,165,0.3);
  -webkit-box-shadow: 0 2px 12px rgba(34,89,165,0.06);
          box-shadow: 0 2px 12px rgba(34,89,165,0.06);
}

.wgl-equip-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primaria);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── RESULTADO ──────────────────────────────────────── */
.wgl-result { margin-top: 1.5rem; }

@-webkit-keyframes resultIn {
  from { opacity: 0; -webkit-transform: translateY(14px) scale(0.98); transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

@keyframes resultIn {
  from { opacity: 0; -webkit-transform: translateY(14px) scale(0.98); transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

.wgl-result-inner {
  padding: 2rem 2.25rem;
  background: var(--branco);
  border: 2px solid var(--primaria-light);
  border-radius: 16px;
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
  opacity: 0;
  position: relative;
}

.wgl-result-show {
  -webkit-animation: resultIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
          animation: resultIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.wgl-result-top {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wgl-result-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.wgl-result-kva {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 14px;
}

.wgl-zap {
  color: var(--secundaria);
  -webkit-filter: drop-shadow(0 0 8px rgba(26,211,162,0.4));
          filter: drop-shadow(0 0 8px rgba(26,211,162,0.4));
}

.wgl-result-kva span {
  font-family: var(--fonte);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primaria-dark);
  line-height: 1;
  letter-spacing: -2px;
}

.wgl-result-kva small {
  font-size: 1.75rem;
  color: var(--primaria);
  font-weight: 700;
  letter-spacing: 0;
}

.wgl-result-col {
  text-align: center;
  padding: 0.875rem;
  background: var(--cinza);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 100%;
}

.wgl-result-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.wgl-result-col-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primaria-dark);
  margin: 0;
}

.wgl-result-nota {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 0.75rem 1rem;
  background: rgba(46,167,194,0.05);
  border: 1px solid rgba(46,167,194,0.15);
  border-radius: var(--radius-sm);
  margin: 0;
}

/* ─── CTA ────────────────────────────────────────────── */
.wgl-cta {
  background: var(--primaria-dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.wgl-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,0.04) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(255,255,255,0.04) 48px);
  pointer-events: none;
  z-index: 0;
}

.wgl-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.wgl-cta-inner h2 {
  font-family: var(--fonte);
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--branco);
  margin-bottom: 0.875rem;
  text-align: center;
}

.wgl-cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ─── Responsivo ─────────────────────────────────────── */
@media (max-width: 767.98px) {
  .wgl-hero-body    { padding: 3rem 0 4rem; }
  .wgl-card         { padding: 1.1rem; }
  .wgl-config-box   { padding: 1rem; }
  .wgl-result-inner { padding: 1.25rem; }
  .wgl-result-kva span { font-size: 3.5rem; }

  /* Features: centra o item no mobile */
  .wgl-feature-item { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
}

@media (max-width: 575.98px) {
  .wgl-tabs { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
  .wgl-tab  { width: 100%; }
}

/* ═══════════════════════════════════════════════
   GATE — Overlay de captação de lead
═══════════════════════════════════════════════ */
.wgl-gate-wrapper {
  position: relative;
}

.wgl-gate-wrapper.liberada .wgl-gate-overlay {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wgl-gate-wrapper.liberada .wgl-gate-blur {
  -webkit-filter: none;
          filter: none;
  pointer-events: auto;
  -webkit-user-select: auto;
     -moz-user-select: auto;
      -ms-user-select: auto;
          user-select: auto;
}

/* Calculadora borrada e bloqueada enquanto não liberar */
.wgl-gate-blur {
  -webkit-filter: blur(3px);
          filter: blur(3px);
  pointer-events: none;
  -webkit-transition: -webkit-filter 0.5s ease;
  transition: -webkit-filter 0.5s ease;
  transition: filter 0.5s ease;
  transition: filter 0.5s ease, -webkit-filter 0.5s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* Overlay sobre a calculadora */
.wgl-gate-overlay {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(34, 89, 165, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  -webkit-box-shadow: 0 8px 32px rgba(34, 89, 165, 0.5);
          box-shadow: 0 8px 32px rgba(34, 89, 165, 0.5);
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 0;
  padding: 2rem 1rem;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: opacity 0.5s ease, visibility 0.5s ease;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10;
}

.wgl-gate-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  margin: auto;
  max-width: 480px;
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.wgl-gate-box .wpcf7 {
  text-align: left;
  width: 100%;
}

.wgl-gate-icon {
  color: #1ad3a2;
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.wgl-gate-box h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.wgl-gate-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.wgl-gate-badge {
  background: rgba(26, 211, 162, 0.15);
  border: 1px solid rgba(26, 211, 162, 0.4);
  border-radius: 2rem;
  color: #1ad3a2;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding: 0.3rem 1rem;
  text-transform: uppercase;
}

/* Campos do formulário dentro do gate */
.wgl-gate-overlay .wgl-gate-field {
  margin-bottom: 0.6rem;
  text-align: left;
  width: 100%;
}

/* AJUSTE 1 — Label colado ao campo (controle via flex gap no wrapper) */
.wgl-gate-overlay .wgl-gate-field label {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"]) {
  background: #f5f5f7;
  border: 1px solid #dde3ef;
  border-radius: 0.5rem;
  color: #23293f;
  font-size: 1rem;
  height: 2.75rem;
  outline: none;
  padding: 0 1rem;
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
  width: 100%;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"])::-webkit-input-placeholder {
  color: #aaa;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"])::-moz-placeholder {
  color: #aaa;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"]):-ms-input-placeholder {
  color: #aaa;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"])::-ms-input-placeholder {
  color: #aaa;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"])::placeholder {
  color: #aaa;
}

.wgl-gate-overlay .wpcf7-form-control:not([type="submit"]):focus {
  border-color: #1ad3a2;
}

.wgl-gate-overlay select.wpcf7-form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231ad3a2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 2.5rem;
}

.wgl-gate-overlay select.wpcf7-form-control option {
  background: #fff;
  color: #23293f;
}

/* Botão submit do CF7 */
.wgl-gate-overlay .wgl-gate-btn,
.wgl-gate-overlay input[type="submit"] {
  background: linear-gradient(75deg, #23293f 0%, #2259a5 51%, #1ad3a2 100%);
  border: 0;
  border-radius: 3rem;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  -webkit-transition: -webkit-filter 0.2s ease, -webkit-transform 0.2s ease;
  transition: -webkit-filter 0.2s ease, -webkit-transform 0.2s ease;
  transition: filter 0.2s ease, transform 0.2s ease;
  transition: filter 0.2s ease, transform 0.2s ease, -webkit-filter 0.2s ease, -webkit-transform 0.2s ease;
  width: 100%;
}

.wgl-gate-overlay .wgl-gate-btn:hover,
.wgl-gate-overlay input[type="submit"]:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* Mensagem de sucesso do CF7 dentro do gate */
.wgl-gate-overlay .wpcf7-response-output {
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
}

.wgl-gate-overlay .wpcf7 .sent .wpcf7-response-output {
  background: rgba(26, 211, 162, 0.15);
  border: 1px solid #1ad3a2;
  color: #1ad3a2;
}

/* Erros de validação */
.wgl-gate-overlay .wpcf7-not-valid-tip {
  color: #ff7070;
  font-size: 0.8rem;
}

.wgl-gate-overlay .wpcf7-not-valid {
  border-color: #ff7070 !important;
}

/* Indicador de privacidade */
.wgl-gate-privacy {
  color: #999;
  font-size: 0.75rem;
  margin-top: 1rem;
}

.wgl-gate-privacy svg {
  margin-right: 0.25rem;
  vertical-align: middle;
}

/* AJUSTE 2 — Bloco @media mobile do gate REMOVIDO */
/* O overlay no mobile agora se comporta igual ao desktop */

/* AJUSTE 1 — Reduz gap entre label e campo (era 5px no CSS externo) */
.wgl-field {
  gap: 2px !important;
}

/* ─── Responsividade do GATE para Mobile ─────────────────── */
@media (max-width: 768px) {
  /* Overlay: reduz o padding e permite rolagem se necessário */
  .wgl-gate-overlay {
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Caixa do formulário: ocupa toda a largura disponível com margens suaves */
  .wgl-gate-box {
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: auto;
  }

  /* Ajuste tipográfico para melhor leitura */
  .wgl-gate-box h3 {
    font-size: 1.4rem;
  }

  .wgl-gate-box p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  /* Campos de input/select: altura reduzida e fonte um pouco menor */
  .wgl-gate-overlay .wpcf7-form-control:not([type="submit"]) {
    height: 2.5rem;
    font-size: 0.9rem;
    padding: 0 0.75rem;
  }

  /* Botão de envio: padding mais compacto */
  .wgl-gate-overlay input[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Espaçamento entre os campos do CF7 (caso use estrutura do Contact Form 7) */
  .wgl-gate-overlay .wpcf7-form p,
  .wgl-gate-overlay .wpcf7-form .wgl-gate-field {
    margin-bottom: 0.75rem;
  }
}
/*# sourceMappingURL=calculadora-geradores.css.map */