/* ============================================================
   NOSU Lead Generator  –  Frontend CSS  –  v1.0.0
   Kompas360 | nosuenergy.com
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
.nlg-root {
  --c-bg:       #00003A;
  --c-bg2:      #05053f;
  --c-green:    #45B649;
  --c-green-d:  #2e9e32;
  --c-green-gl: rgba(69,182,73,.12);
  --c-w:        #ffffff;
  --c-w70:      rgba(255,255,255,.70);
  --c-w50:      rgba(255,255,255,.50);
  --c-w35:      rgba(255,255,255,.35);
  --c-w20:      rgba(255,255,255,.20);
  --c-w10:      rgba(255,255,255,.10);
  --c-w06:      rgba(255,255,255,.06);
  --c-border:   rgba(255,255,255,.10);
  --c-card:     rgba(255,255,255,.04);
  --c-error:    #ff5a6e;
  --r:          18px;
  --r-sm:       12px;
  --ease:       cubic-bezier(.16,1,.3,1);
  --font:       'Outfit', sans-serif;
}

/* ── Root ───────────────────────────────────────────────────── */
.nlg-root {
  font-family:        var(--font);
  -webkit-font-smoothing: antialiased;
  background:         var(--c-bg);
  border-radius:      0;
  overflow:           hidden;
  position:           relative;
  padding:            clamp(36px,6vw,68px) clamp(24px,6vw,64px);
  color:              var(--c-w);
  width:              100%;
  /* Use padding/max-width on the shortcode wrapper instead */
  box-shadow:         none;
	border-radius:15px;
}

/* Glow orbs */
.nlg-root::before,
.nlg-root::after {
  content:        '';
  position:       absolute;
  border-radius:  50%;
  pointer-events: none;
  z-index:        0;
}
.nlg-root::before {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(69,182,73,.06) 0%, transparent 70%);
}
.nlg-root::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(0,0,100,.5) 0%, transparent 70%);
}

/* ── Progress bar ───────────────────────────────────────────── */
.nlg-progress {
  position: relative;
  z-index:  1;
  margin-bottom: 48px;
}

.nlg-progress__rail {
  position:        relative;
  display:         flex;
  justify-content: space-between;
  align-items:     flex-start;
}

/* Static line */
.nlg-progress__rail::before {
  content:    '';
  position:   absolute;
  top:        17px;
  left:       18px;
  right:      18px;
  height:     1px;
  background: var(--c-border);
  z-index:    0;
}

/* Animated fill */
.nlg-progress__fill {
  position:   absolute;
  top:        17px;
  left:       18px;
  height:     1px;
  background: var(--c-green);
  z-index:    1;
  width:      0%;
  transition: width .55s var(--ease);
}

/* Step node */
.nlg-step {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             8px;
  position:        relative;
  z-index:         2;
}

.nlg-step__dot {
  width:       36px;
  height:      36px;
  border-radius: 50%;
  border:      1.5px solid var(--c-border);
  background:  var(--c-bg);
  display:     flex;
  align-items: center;
  justify-content: center;
  font-size:   .72rem;
  font-weight: 600;
  color:       var(--c-w20);
  transition:  all .35s var(--ease);
}

.nlg-step.is-done .nlg-step__dot {
  background:   var(--c-green);
  border-color: var(--c-green);
  color:        #fff;
}

.nlg-step.is-active .nlg-step__dot {
  border-color: var(--c-green);
  color:        var(--c-green);
  box-shadow:   0 0 0 5px var(--c-green-gl), 0 0 16px rgba(69,182,73,.18);
}

.nlg-step.is-done .nlg-step__dot::before {
  content:   '✓';
  font-size: .8rem;
}

.nlg-step__lbl {
  font-size:      .58rem;
  font-weight:    500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color:          var(--c-w20);
  text-align:     center;
  max-width:      68px;
  line-height:    1.3;
  transition:     color .3s;
}
.nlg-step.is-active .nlg-step__lbl { color: var(--c-green); }
.nlg-step.is-done   .nlg-step__lbl { color: var(--c-w35); }

/* ── Panel system ───────────────────────────────────────────── */
.nlg-panel {
  position:   relative;
  z-index:    1;
  animation:  nlg-enter .45s var(--ease) both;
}

.nlg-panel.is-leaving {
  animation: nlg-leave .28s var(--ease) both;
}

@keyframes nlg-enter {
  from { opacity: 0; transform: translateY(22px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
@keyframes nlg-leave {
  from { opacity: 1; transform: translateY(0);     }
  to   { opacity: 0; transform: translateY(-18px); }
}

/* ── Panel header ───────────────────────────────────────────── */
.nlg-panel__eyebrow {
  font-size:      .6rem;
  font-weight:    600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:          var(--c-green);
  margin-bottom:  10px;
}

.nlg-panel__title {
  font-size:      clamp(1.35rem, 3.2vw, 2rem);
  font-weight:    300;
  line-height:    1.15;
  letter-spacing: -.025em;
  color:          var(--c-w);
  margin-bottom:  6px;
}
.nlg-panel__title strong { font-weight: 700; }

.nlg-panel__sub {
  font-size:   .88rem;
  font-weight: 300;
  color:       var(--c-w35);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Error banner ───────────────────────────────────────────── */
.nlg-error {
  padding:       12px 16px;
  border-radius: var(--r-sm);
  background:    rgba(255,90,110,.08);
  border:        1px solid rgba(255,90,110,.22);
  color:         #ff7a8a;
  font-size:     .83rem;
  margin-bottom: 20px;
  display:       none;
}
.nlg-error.is-visible { display: block; }

/* ── Choice grid ────────────────────────────────────────────── */
.nlg-choices {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap:                   12px;
  margin-bottom:         28px;
}

.nlg-choice {
  padding:        20px 16px;
  border-radius:  var(--r-sm);
  border:         1.5px solid var(--c-border);
  background:     var(--c-card);
  cursor:         pointer;
  transition:     all .28s var(--ease);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            10px;
  text-align:     center;
  -webkit-tap-highlight-color: transparent;
  user-select:    none;
}

.nlg-choice:hover,
.nlg-choice:focus {
  border-color: rgba(69,182,73,.28);
  background:   rgba(69,182,73,.05);
  transform:    translateY(-3px);
  box-shadow:   0 14px 32px rgba(0,0,0,.22);
  outline:      none;
}

.nlg-choice.is-sel {
  border-color: var(--c-green);
  background:   rgba(69,182,73,.08);
  box-shadow:   0 0 0 1px var(--c-green), 0 14px 32px var(--c-green-gl);
}

.nlg-choice:active,
.nlg-choice:focus:active { transform: scale(.97); background: rgba(69,182,73,.07); outline: none; }

.nlg-choice__icon {
  width:           46px;
  height:          46px;
  border-radius:   13px;
  background:      rgba(69,182,73,.08);
  color:           var(--c-green);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1.25rem;
  transition:      all .28s var(--ease);
  flex-shrink:     0;
}
.nlg-choice.is-sel .nlg-choice__icon {
  background: var(--c-green);
  color:      #fff;
  box-shadow: 0 6px 18px rgba(69,182,73,.3);
}

.nlg-choice__name {
  font-size:   .88rem;
  font-weight: 600;
  color:       var(--c-w);
  line-height: 1.3;
}

.nlg-choice__hint {
  font-size:   .72rem;
  font-weight: 300;
  color:       var(--c-w35);
  line-height: 1.4;
}

/* ── Section label inside a step ─────────────────────────────── */
.nlg-section-lbl {
  font-size:      .62rem;
  font-weight:    600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--c-w35);
  margin-bottom:  12px;
}

/* ── Field grid ─────────────────────────────────────────────── */
.nlg-fields {
  display:        flex;
  flex-direction: column;
  gap:            14px;
  margin-bottom:  24px;
}

.nlg-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px;
}
.nlg-row--full { grid-template-columns: 1fr; }

.nlg-field {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.nlg-field__lbl {
  font-size:      .68rem;
  font-weight:    500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:          var(--c-w50);
}
.nlg-field__lbl em { color: var(--c-green); font-style: normal; margin-left: 2px; }

/* Input / textarea / select – reset + style */
.nlg-root input[type="text"],
.nlg-root input[type="email"],
.nlg-root input[type="tel"],
.nlg-root input[type="number"],
.nlg-root textarea,
.nlg-root select {
  width:         100% !important;
  background:    var(--c-card) !important;
  border:        1.5px solid var(--c-border) !important;
  border-radius: var(--r-sm) !important;
  color:         var(--c-w) !important;
  font-family:   var(--font) !important;
  font-size:     .92rem !important;
  font-weight:   300 !important;
  padding:       13px 16px !important;
  outline:       none !important;
  transition:    border-color .22s, box-shadow .22s, background .22s !important;
  -webkit-appearance: none !important;
  appearance:    none !important;
  box-shadow:    none !important;
  margin:        0 !important;
  box-sizing:    border-box !important;
}

.nlg-root input::placeholder,
.nlg-root textarea::placeholder {
  color: var(--c-w20) !important;
}

.nlg-root input:focus,
.nlg-root textarea:focus,
.nlg-root select:focus {
  background: transparent;
  border-color: var(--c-green) !important;
  box-shadow:   0 0 0 3px var(--c-green-gl) !important;
  background:   rgba(69,182,73,.04) !important;
}

.nlg-root input.has-err,
.nlg-root textarea.has-err {
  border-color: var(--c-error) !important;
  box-shadow:   0 0 0 3px rgba(255,90,110,.1) !important;
}

.nlg-root textarea {
  resize:     vertical;
  min-height: 96px;
}

.nlg-root select {
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' stroke='rgba(255,255,255,.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat:   no-repeat !important;
  background-position: right 14px center !important;
  padding-right:       40px !important;
  cursor:              pointer !important;
}

.nlg-field__err {
  font-size:  .7rem;
  color:      #ff7a8a;
  display:    none;
}
.nlg-field__err.is-vis { display: block; }

/* ── Summary tags (shown in last step) ──────────────────────── */
.nlg-summary {
  display:       flex;
  flex-wrap:     wrap;
  gap:           8px;
  margin-bottom: 24px;
  padding:       14px 18px;
  border-radius: var(--r-sm);
  background:    var(--c-card);
  border:        1px solid var(--c-border);
}

.nlg-summary__tag {
  display:        inline-flex;
  align-items:    center;
  gap:            5px;
  padding:        5px 12px;
  border-radius:  100px;
  background:     rgba(69,182,73,.08);
  border:         1px solid rgba(69,182,73,.18);
  font-size:      .64rem;
  font-weight:    500;
  letter-spacing: .04em;
  color:          var(--c-green);
}

/* ── Navigation bar ─────────────────────────────────────────── */
.nlg-nav {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             12px;
  margin-top:      4px;
}

.nlg-nav__count {
  font-size:  .7rem;
  font-weight: 400;
  color:      var(--c-w20);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.nlg-btn {
  display:          inline-flex;
  align-items:      center;
  gap:              8px;
  padding:          13px 28px;
  border-radius:    100px;
  font-family:      var(--font);
  font-size:        .88rem;
  font-weight:      500;
  border:           none;
  cursor:           pointer;
  transition:       all .28s var(--ease);
  text-decoration:  none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing:   .01em;
  white-space:      nowrap;
}

.nlg-btn--primary {
  background:  var(--c-green);
  color:       #fff;
  box-shadow:  0 8px 24px rgba(69,182,73,.22);
}
.nlg-btn--primary:hover,
.nlg-btn--primary:focus {
  background:  var(--c-green-d);
  transform:   translateY(-2px);
  box-shadow:  0 14px 32px rgba(69,182,73,.3);
  color:       #fff;
  outline:     none;
}
.nlg-btn--primary:active,
.nlg-btn--primary:focus:active { transform: scale(.97); background: var(--c-green-d); color: #fff; outline: none; }

.nlg-btn--ghost {
  background:  transparent;
  color:       var(--c-w35);
  border:      1.5px solid var(--c-border);
}
.nlg-btn--ghost:hover,
.nlg-btn--ghost:focus {
  color:        var(--c-w);
  border-color: var(--c-w20);
  background:   var(--c-w06);
  outline:      none;
}
.nlg-btn--ghost:active,
.nlg-btn--ghost:focus:active { transform: scale(.97); background: var(--c-w06); color: var(--c-w); outline: none; }

.nlg-btn--loading {
  pointer-events: none;
  opacity: .65;
}

.nlg-btn__spin {
  display:   inline-block;
  animation: nlg-spin .7s linear infinite;
}
@keyframes nlg-spin { to { transform: rotate(360deg); } }

/* ── Honeypot ─────────────────────────────────────────────────── */
.nlg-hp {
  display:    none !important;
  visibility: hidden !important;
  height:     0 !important;
  overflow:   hidden !important;
}

/* ── Success screen ─────────────────────────────────────────── */
.nlg-success {
  text-align: center;
  padding:    20px 0 8px;
  animation:  nlg-enter .5s var(--ease) both;
}

.nlg-success__ring {
  width:           72px;
  height:          72px;
  border-radius:   50%;
  background:      rgba(69,182,73,.1);
  border:          1.5px solid rgba(69,182,73,.25);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       2rem;
  color:           var(--c-green);
  margin:          0 auto 24px;
  animation:       nlg-pop .55s var(--ease) .1s both;
}
@keyframes nlg-pop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.nlg-success__title {
  font-size:      clamp(1.4rem, 3vw, 2rem);
  font-weight:    300;
  letter-spacing: -.025em;
  margin-bottom:  10px;
}
.nlg-success__title strong { font-weight: 700; color: var(--c-green); }

.nlg-success__msg {
  font-size:     .92rem;
  font-weight:   300;
  color:         var(--c-w50);
  line-height:   1.7;
  max-width:     440px;
  margin:        0 auto 28px;
}

.nlg-success__cta {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         13px 26px;
  border-radius:   100px;
  background:      rgba(69,182,73,.08);
  border:          1.5px solid rgba(69,182,73,.22);
  color:           var(--c-green);
  font-size:       .86rem;
  font-weight:     500;
  text-decoration: none;
  transition:      all .28s;
}
.nlg-success__cta:hover,
.nlg-success__cta:focus {
  background: rgba(69,182,73,.14);
  color:      var(--c-green);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nlg-root     { padding: 28px 18px; border-radius: 14px; }
  .nlg-choices  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nlg-choice   { padding: 14px 10px; }
  .nlg-choice__icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .nlg-choice__name { font-size: .8rem; }
  .nlg-row      { grid-template-columns: 1fr; }
  .nlg-progress { margin-bottom: 32px; }
  .nlg-step__lbl { display: none; }
  .nlg-btn      { padding: 12px 20px; font-size: .84rem; }
  .nlg-btn--primary { flex: 1; justify-content: center; }
  .nlg-nav      { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .nlg-choices  { grid-template-columns: 1fr; }
  .nlg-choice   { flex-direction: row; text-align: left; gap: 12px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nlg-panel, .nlg-success, .nlg-success__ring,
  .nlg-choice, .nlg-btn, .nlg-step__dot,
  .nlg-progress__fill {
    animation:  none !important;
    transition: none !important;
  }
}
