/* Enel RJ Acesso Rápido — espelho pixel das folhas oficiais (forms + banner + header) */

@font-face {
  font-family: "Enel Roobert Light";
  src: url("assets/fonts/RoobertENEL-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Enel Roobert Regular";
  src: url("assets/fonts/RoobertENEL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Enel Roobert Bold";
  src: url("assets/fonts/RoobertENEL-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body.enel-acesso-page {
  font-family: "Enel Roobert Regular", Calibri, Myriad, Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: inherit; text-decoration: none; }

/* ===== Header (oficial) ===== */
#header.header {
  display: block;
  width: 100%;
  height: 65px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 15px max(16px, env(safe-area-inset-right)) 15px max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  transition: background 0.15s linear;
}

#header .logo {
  display: inline-block;
  float: left;
  width: 72px;
  position: relative;
  z-index: 51;
}
@media (min-width: 768px) {
  #header .logo { width: 80px; }
}
#header .logo img { width: 100%; height: auto; display: block; }
#header .logo img.ontop { display: block; }
#header .logo img.onscroll { display: none; }

#header.is-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
#header.is-scrolled .logo img.ontop { display: none; }
#header.is-scrolled .logo img.onscroll { display: block; }

#header .nav-wrapper {
  display: none;
  position: absolute;
  left: 90px;
  right: 70px;
  top: 0;
  height: 100%;
  text-align: center;
  line-height: 65px;
  overflow: hidden;
}
#header .nav-wrapper .main-nav {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 100%;
}
#header .nav-wrapper .main-nav a {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  padding: 0 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
#header.is-scrolled .nav-wrapper .main-nav a { color: #222; }

#header .nav-aux {
  float: right;
  height: 35px;
  display: flex;
  align-items: center;
}
.regiao-id {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  color: #fff;
  font-size: 14px;
  border-bottom: 3px solid #fff;
  padding: 2px 4px 0;
}
#header.is-scrolled .regiao-id {
  color: #222;
  border-bottom-color: #ff0f64;
}

/* Notebook+: nav visível; desktop wide com fonte maior */
@media (min-width: 992px) {
  #header .nav-wrapper { display: block; }
  #header .nav-wrapper .main-nav a {
    font-size: 13px;
    padding: 0 10px;
  }
}
@media (min-width: 1200px) {
  #header .nav-wrapper {
    left: 0;
    right: 0;
  }
  #header .nav-wrapper .main-nav a {
    font-size: 14px;
    padding: 0 12px;
  }
}

/* ===== Banner rosa oficial ===== */
.banner {
  padding: 100px 16px 36px;
  height: auto;
  min-height: 180px;
  box-sizing: border-box;
}
.banner.pink-bg { background: #ff0f64; }
.banner .title {
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: "Enel Roobert Light", Calibri, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 5vw + 0.6rem, 2.5rem);
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.15;
  padding: 0 8px;
}

/* Tablet / notebook */
@media (min-width: 768px) {
  .banner {
    padding: 140px 24px 70px;
    min-height: 280px;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .banner .title {
    font-size: clamp(2.4rem, 3.5vw + 1rem, 3.4rem);
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 0;
  }
}

/* Desktop largo */
@media (min-width: 1200px) {
  .banner {
    padding: 200px 0 140px;
    min-height: 420px;
    height: auto;
  }
  .banner .title {
    font-size: 4.25rem;
    letter-spacing: -2.72px;
    line-height: 1.05;
    margin-bottom: 10px;
  }
}

/* Landscape phones: banner mais baixo */
@media (max-height: 500px) and (orientation: landscape) {
  .banner {
    padding: 80px 16px 24px;
    min-height: 120px;
  }
  .banner .title {
    font-size: 1.6rem;
  }
}

/* ===== Container / form (forms.css oficial) ===== */
.container.padding-top-banner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  flex: 1;
  position: relative;
  min-height: 320px;
}

.step-1.custom-offset-login {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  float: none;
  position: relative;
}
@media (min-width: 768px) {
  .step-1.custom-offset-login {
    width: 50%;
    max-width: none;
    margin-left: 25%;
    margin-right: 0;
  }
}
@media (min-width: 992px) {
  .step-1.custom-offset-login {
    width: 41.66666667%;
    margin-left: 29.16666667%;
  }
}

.grupo-field { margin-bottom: 15px; }
.form-group { margin-bottom: 0 !important; }
.form-group > span {
  display: block;
  line-height: 1.4;
  padding: 6px 0;
  font-size: 15px;
  font-family: "Enel Roobert Regular", Helvetica, Arial, sans-serif;
  color: #000;
}

.text-field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "Enel Roobert Light", Calibri, Helvetica, Arial, sans-serif;
  font-size: 16px; /* evita zoom iOS */
  line-height: 22px;
  color: #000;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  padding: 12px 15px;
  min-height: 50px;
  height: 54px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
@media (min-width: 768px) {
  .text-field {
    font-size: 17px;
    height: 59px;
  }
}
.text-field:focus { border: 2px solid #000; }

.text-error-field {
  display: block;
  font-size: 15px;
  color: #ff0f64;
  margin-top: 4px;
}

.text-hint-field {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.35;
}

.opt-label {
  font-style: normal;
  font-weight: 400;
  color: #666;
  font-size: 13px;
}

.text-avisos {
  font-size: 14px;
  color: gray;
  line-height: 1.2;
  margin: 8px 0 0;
}

.step-h4 {
  margin: 0 0 12px;
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.step-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: #333;
}

.uf-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.uf-pick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 18px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  font-family: inherit;
}

.uf-pick-card:hover,
.uf-pick-card:focus-visible {
  border-color: #ff0f64;
  box-shadow: 0 4px 16px rgba(255, 15, 100, 0.12);
  outline: none;
}

.uf-pick-card:active {
  transform: scale(0.99);
}

.uf-pick-code {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ff0f64;
  letter-spacing: 0.04em;
}

.uf-pick-name {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.uf-pick-hint {
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .uf-pick-grid {
    grid-template-columns: 1fr;
  }
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.35;
}
.channel-item:hover,
.channel-item:has(input:checked) {
  border-color: #ff0f64;
}
.channel-item input {
  margin-top: 3px;
  accent-color: #ff0f64;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  font-family: "Enel Roobert Regular", Helvetica, Arial, sans-serif;
}
.pick-item:hover {
  border-color: #ff0f64;
}
.pick-item strong {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 15px;
}
.pick-item span {
  font-size: 14px;
  color: #555;
  line-height: 1.35;
}

.link-login-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
}

.link-login {
  display: inline-block;
  background: none;
  border: 0;
  padding: 2px 0;
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.link-login:hover,
.link-login:focus {
  color: #ff0f64;
  text-decoration: underline;
  outline: none;
}
.link-login:focus-visible {
  outline: 2px solid #ff0f64;
  outline-offset: 3px;
}

.padding-top-20 { padding-top: 20px; }

.row-btn {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-left: -8px;
  margin-right: -8px;
}
.row-btn .col-btn {
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .row-btn .col-btn { width: 50%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .row-btn .col-btn { width: 100%; }
}
@media (min-width: 992px) {
  .row-btn {
    margin-left: -15px;
    margin-right: -15px;
  }
  .row-btn .col-btn {
    width: 50%;
    padding: 0 15px;
  }
}

.btn-base {
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
  height: 50px;
  min-height: 50px;
  width: 100%;
  min-width: 0;
  margin: 10px 0 0;
  padding: 15px 12px;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 15, 100, 0.12);
}

.btn-send {
  letter-spacing: 0.6px;
  background-color: #ff0f64;
  color: #fff;
  border: 2px solid #ff0f64;
}
.btn-send:hover {
  background-color: #fff;
  color: #ff0f64;
}

.btn-cancel {
  letter-spacing: normal;
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}
.btn-cancel:hover {
  background-color: #000;
  color: #fff;
}

/* Loader */
.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  min-height: 240px;
  padding: 20px;
  text-align: center;
}
.loader-overlay #loading-text {
  margin: 0 0 14px;
  font-size: 15px;
  color: #222;
  max-width: 280px;
  line-height: 1.4;
}
.loading-skip {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 4px;
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #ff0f64;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.loading-skip:hover { color: #c40c4e; }
.lds-spin {
  width: 44px;
  height: 44px;
  border: 3px solid #cecece;
  border-top-color: #ff0f64;
  border-radius: 50%;
  animation: enelSpin 0.75s linear infinite;
  margin-bottom: 14px;
}
@keyframes enelSpin { to { transform: rotate(360deg); } }

.alert-error {
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  background: #fff0f5;
  border: 1px solid #ff0f64;
  color: #9f1143;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
@media (min-width: 768px) {
  .alert-error {
    margin-left: 25%;
    max-width: 50%;
  }
}
@media (min-width: 992px) {
  .alert-error {
    margin-left: 29.16666667%;
    max-width: 41.66666667%;
  }
}

/* Footer */
.enel-acesso-footer {
  background: #222;
  padding: 24px 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  margin-top: auto;
}
.enel-acesso-footer .footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .enel-acesso-footer .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}
.enel-acesso-footer .copyright-text {
  margin: 0;
  color: #757575;
  font-size: 12px;
  line-height: 1.4;
}
.enel-acesso-footer .footer-link {
  color: #41b9e6;
  font-size: 13px;
  font-family: "Enel Roobert Bold", Helvetica, Arial, sans-serif;
}

/* Loader full-bleed em mobile estreito */
@media (max-width: 767px) {
  .loader-overlay {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    background: rgba(255,255,255,0.94);
  }
}
