/* =========================================================
   EnergyOn — Captura de leads (Fase 1)
   Arquivo isolado: não altera nem depende de css/styles.css,
   para garantir que a FrontPage não seja afetada.
   ========================================================= */

:root {
  --gate-navy-950: #071527;
  --gate-navy-900: #0A2038;
  --gate-navy-700: #163C63;
  --gate-green-500: #7AC142;
  --gate-yellow-500: #FFC42C;
  --gate-yellow-600: #EDA900;
  --gate-white: #FFFFFF;
  --gate-gray-050: #F7F9FB;
  --gate-gray-200: #E1E7EE;
  --gate-gray-500: #64758A;
  --gate-red-600: #C4331F;
  --gate-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gate-radius-md: 16px;
  --gate-radius-sm: 10px;
  --gate-shadow-lg: 0 20px 50px rgba(10, 32, 56, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gate-font);
  background: linear-gradient(160deg, var(--gate-navy-950), var(--gate-navy-700));
  color: var(--gate-navy-900);
}

.gate-header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}

.gate-header__logo {
  width: 28px;
  height: 28px;
  display: block;
}

.gate-header__text {
  color: var(--gate-white);
  font-weight: 700;
  font-size: 1.05rem;
}

.gate-header__text .accent {
  color: var(--gate-green-500);
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1rem 2rem;
}

.gate-card {
  width: 100%;
  max-width: 460px;
  background: var(--gate-white);
  border-radius: var(--gate-radius-md);
  box-shadow: var(--gate-shadow-lg);
  padding: 2rem 1.75rem;
}

.gate-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  line-height: 1.25;
  color: var(--gate-navy-900);
}

.gate-lead {
  margin: 0 0 1.5rem;
  color: var(--gate-gray-500);
  font-size: 0.95rem;
  line-height: 1.5;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.field--radio legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gate-navy-900);
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--gate-gray-200);
  border-radius: var(--gate-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--gate-navy-900);
  background: var(--gate-gray-050);
}

.field input[type="text"]:focus,
.field input[type="tel"]:focus {
  outline: none;
  border-color: var(--gate-green-500);
  background: var(--gate-white);
}

.field--radio {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gate-navy-900);
  cursor: pointer;
}

.radio-option input,
.checkbox-option input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--gate-green-500);
  flex-shrink: 0;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--gate-radius-sm);
  background: #FBEAE7;
  color: var(--gate-red-600);
  font-size: 0.875rem;
}

.btn-submit {
  margin-top: 0.25rem;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: var(--gate-radius-sm);
  background: var(--gate-yellow-500);
  color: var(--gate-navy-950);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 160ms ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gate-yellow-600);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .gate-card {
    padding: 1.5rem 1.25rem;
  }
}
