/**
 * Copyright (c) 2025-2026 Let's Automate. All rights reserved.
 * This source code is proprietary and confidential.
 *
 * Styles for LGGLeadGate (assets/js/lead-gate.js).
 *
 * Self-contained and prefixed: the gate is injected into pages with very
 * different stylesheets (the demo portal runs the app's dashboard shell, the
 * marketing pages run website.css), so it must not inherit from either and must
 * not leak into either.
 *
 * Colours are literal rather than var(--...) for the same reason: a token that
 * happens not to be defined on the host page would render an invisible form.
 */

.lgg-lead-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.lgg-lead-gate__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 10, 0.82);
  backdrop-filter: blur(6px);
}

.lgg-lead-gate__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: #12121c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  font-family:
    'Rajdhani',
    system-ui,
    -apple-system,
    sans-serif;
  color: #fff;
}

.lgg-lead-gate__card h2 {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #fff;
}

.lgg-lead-gate__sub {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  /* 0.72 alpha on #12121c is comfortably past the 4.5:1 AA floor. */
  color: rgba(255, 255, 255, 0.72);
}

.lgg-lead-gate__form label {
  display: block;
  margin: 12px 0 5px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.lgg-lead-gate__form input,
.lgg-lead-gate__form select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  /* 16px min on iOS or the field zooms the page when focused. */
  min-height: 44px;
}

.lgg-lead-gate__form select option {
  background: #12121c;
  color: #fff;
}

.lgg-lead-gate__form input:focus-visible,
.lgg-lead-gate__form select:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 1px;
  border-color: #22d3ee;
}

.lgg-lead-gate__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffd7d7;
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 70, 70, 0.35);
  border-radius: 9px;
}

.lgg-lead-gate__submit {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  /* Dark ink on the neon gradient: white fails AA on these hues. */
  color: #0a0a12;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  min-height: 48px;
}

.lgg-lead-gate__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.lgg-lead-gate__submit:hover:not(:disabled),
.lgg-lead-gate__submit:focus-visible:not(:disabled) {
  filter: brightness(1.08);
}

/* Secondary action. Ghost styling so it never competes with the submit, but a
   real 48px target and a 5.5:1 label so it is not a trap for anyone who
   actually wants out. */
.lgg-lead-gate__cancel {
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  cursor: pointer;
  min-height: 48px;
}

.lgg-lead-gate__cancel:hover,
.lgg-lead-gate__cancel:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.lgg-lead-gate__privacy {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.lgg-lead-gate__privacy a {
  color: #22d3ee;
}

@media (max-width: 420px) {
  .lgg-lead-gate__card {
    padding: 22px 18px 18px;
  }
}
