/* Upward Lead Gate — self-contained form styling.
   Uses the site's brand CSS vars when present, with safe fallbacks. */
.upw-gate{
  --_navy: var(--navy, #0F1E3C);
  --_cyan: var(--cyan-deep, #1E9FD0);
  --_gold: var(--gold, #D4A851);
  --_line: var(--line, #e4e9f0);
  display:flex;flex-direction:column;gap:12px;
  background:#fff;border:1px solid var(--_line);border-radius:16px;
  padding:26px;max-width:440px;
  box-shadow:0 22px 50px -30px rgba(15,30,60,.35);
  font-family:inherit;
}
.upw-gate .upw-gate-head strong{
  display:block;font-size:17px;line-height:1.3;color:var(--_navy);
  font-family:'Diodrum','Manrope',sans-serif;
}
.upw-gate-row{display:flex;gap:10px}
.upw-gate-row.upw-2col{flex-wrap:wrap}
.upw-gate-row.upw-2col > *{flex:1 1 140px}
.upw-gate input[type=text],
.upw-gate input[type=email],
.upw-gate input[type=tel]{
  width:100%;padding:12px 14px;font-size:14.5px;color:var(--_navy);
  border:1px solid var(--_line);border-radius:10px;background:#fbfcfe;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.upw-gate input:focus{
  outline:none;border-color:var(--_cyan);
  box-shadow:0 0 0 3px rgba(30,159,208,.16);background:#fff;
}
.upw-gate-consent{
  display:flex;gap:9px;align-items:flex-start;font-size:12.5px;
  color:#5e6f88;line-height:1.5;cursor:pointer;
}
.upw-gate-consent input{margin-top:2px;flex:none}
.upw-gate-consent a{color:var(--_cyan);text-decoration:underline}
.upw-gate-btn{
  appearance:none;border:0;cursor:pointer;
  padding:13px 18px;border-radius:10px;font-size:15px;font-weight:800;
  color:#2a1f08;background:linear-gradient(135deg,var(--_gold),#E6BE6A);
  letter-spacing:.01em;transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow:0 12px 26px -12px rgba(212,168,81,.7);
}
.upw-gate-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.upw-gate-btn:disabled{opacity:.7;cursor:default;transform:none}
.upw-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.upw-gate-msg{font-size:13px;line-height:1.5;min-height:0}
.upw-gate-msg.is-err{color:#c0392b}
.upw-gate-msg.is-ok{color:#1aa260;font-weight:600}
.upw-gate-dl{
  display:inline-flex;align-items:center;gap:8px;margin-top:4px;
  font-weight:700;font-size:14px;color:var(--_cyan);text-decoration:none;
}
.upw-gate-dl::before{content:"↓";font-weight:800}
.upw-gate.is-done{border-color:rgba(26,162,96,.4)}

/* On dark sections, flip the card to glass so it reads on navy */
.section.dark .upw-gate,.page-hero .upw-gate,.dark .upw-gate{
  background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
}
.section.dark .upw-gate .upw-gate-head strong,
.page-hero .upw-gate .upw-gate-head strong,.dark .upw-gate .upw-gate-head strong{color:#fff}
.section.dark .upw-gate input,.page-hero .upw-gate input,.dark .upw-gate input{
  background:rgba(255,255,255,.9)
}
.section.dark .upw-gate-consent,.page-hero .upw-gate-consent,.dark .upw-gate-consent{color:#bccadb}
