:root {
  --bg: #050505;
  --card: #1a1a1a;
  --cyan: #4fd1ed;
  --cyan-dim: rgba(79, 209, 237, 0.15);
  --navy: #0f172a;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.lead-page {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

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

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 400px;
  height: 400px;
  background: rgba(79, 209, 237, 0.06);
  top: 20%;
  right: 15%;
}
.bg-glow--2 {
  width: 300px;
  height: 300px;
  background: rgba(15, 23, 42, 0.8);
  bottom: 10%;
  left: 10%;
}

/* Nav */
.lead-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.lead-nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
}
.lead-nav__logo span {
  color: var(--cyan);
}
.lead-nav__links {
  display: flex;
  gap: 32px;
}
.lead-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.9;
  transition: color 0.2s;
}
.lead-nav__links a:hover {
  color: var(--cyan);
}
.lead-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lead-nav__new-lead {
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.9rem;
}
.lead-nav__bell {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.lead-nav__bell:hover {
  color: var(--cyan);
}

/* Main */
.lead-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.lead-progress-wrap {
  margin-bottom: 28px;
}
.lead-progress__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.lead-progress__step {
  color: var(--cyan);
  font-weight: 600;
}
.lead-progress__name {
  color: var(--text);
  font-weight: 500;
}
.lead-progress__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.lead-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Form card */
.lead-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
  transition: opacity 0.3s;
}
.lead-form-card--hidden {
  display: none;
}
.lead-form-card__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--cyan);
  margin-bottom: 10px;
}
.lead-form-card__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.lead-form__row .field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  background: #f5f5f5;
  color: #111;
}
.field input::placeholder {
  color: #9ca3af;
}
.field select {
  background: var(--navy);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea {
  background: var(--navy);
  color: var(--text);
  resize: vertical;
  min-height: 100px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.field > input.is-invalid,
.field > .field--select select.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}
.field > input.is-invalid:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.28);
}
.input-prefix input.is-invalid {
  border: none !important;
  box-shadow: none !important;
}

.field {
  margin-bottom: 22px;
}

/* Inline field help / validation */
.field-message,
.field-hint {
  display: block;
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.field-message--error,
.field-hint.is-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}
.field-message--error::before,
.field-hint.is-error::before {
  content: "!";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.field--radio {
  border: none;
  padding: 0;
  margin-bottom: 22px;
}
.field--radio legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ₹ prefix input */
.input-prefix {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f5f5f5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-prefix:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.input-prefix:has(input.is-invalid) {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}
.input-prefix:has(input.is-invalid:focus) {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.28);
}
.input-prefix__symbol {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 600;
  color: #374151;
  background: #e5e7eb;
  border-right: 1px solid #d1d5db;
}
.input-prefix input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #f5f5f5 !important;
  min-width: 0;
}
.input-prefix input:focus {
  outline: none;
  box-shadow: none !important;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
  min-width: 140px;
}
.radio-option:has(input:checked) {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.radio-option input {
  accent-color: var(--cyan);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.radio-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Alert */
.form-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.form-alert--error {
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-weight: 500;
  line-height: 1.5;
  padding: 16px 18px;
}
.form-alert--success {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Success page */
.lead-main--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.success-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
}
.success-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.success-card h1 {
  font-family: var(--serif);
  color: var(--cyan);
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.success-card p {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.success-card__id {
  color: var(--text) !important;
  font-weight: 600;
  margin: 16px 0 24px !important;
}
.success-card .btn-next {
  display: inline-block;
  text-decoration: none;
}

.lead-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.lead-form__actions--split {
  justify-content: space-between;
  align-items: center;
}

.btn-next {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(90deg, #1e3a5f 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-next:not(:disabled) {
  background: linear-gradient(90deg, var(--cyan) 0%, #3b82f6 100%);
  color: #050505;
  box-shadow: 0 4px 20px rgba(79, 209, 237, 0.35);
}
.btn-next:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(79, 209, 237, 0.45);
}
.btn-next:disabled {
  cursor: not-allowed;
}
.btn-back {
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-back:hover {
  color: var(--cyan);
}

/* Tenure range slider */
.field--tenure {
  margin-bottom: 28px;
}
.tenure-slider {
  width: 100%;
  height: 6px;
  margin: 20px 0 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.tenure-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(79, 209, 237, 0.6);
  border: 2px solid #050505;
  cursor: pointer;
}
.tenure-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(79, 209, 237, 0.6);
  border: 2px solid #050505;
  cursor: pointer;
}
.tenure-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.tenure-labels span.is-active {
  color: var(--cyan);
  font-weight: 600;
}
.field--amount input {
  background: #f5f5f5;
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
}
.field--amount input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.field--amount input::placeholder {
  color: #9ca3af;
}
.field--select select {
  background: var(--navy);
  color: var(--text-muted);
}
.field--select select:valid {
  color: var(--text);
}

/* Footer */
.lead-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.lead-footer__left p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.lead-footer__links {
  display: flex;
  gap: 48px;
}
.lead-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-footer__col a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.lead-footer__col a:hover {
  color: var(--cyan);
}
.lead-footer__icons {
  display: flex;
  gap: 12px;
}
.lead-footer__icon {
  color: var(--text-muted);
  display: flex;
}

@media (max-width: 768px) {
  .lead-nav {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 16px;
  }
  .lead-nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .lead-form-card {
    padding: 28px 24px;
  }
  .lead-form__row {
    grid-template-columns: 1fr;
  }
  .lead-footer {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .lead-footer__links {
    gap: 32px;
  }
}
