:root {
  --lead-neon: #9de909;
  --lead-neon-soft: rgba(157, 233, 9, 0.28);
  --lead-bg: #050505;
  --lead-field-bg: #0a0a0a;
  --lead-text: #f2f2f2;
  --lead-muted: rgba(242, 242, 242, 0.35);
  --lead-error: #ff5f5f;
}

body.lead-modal-open {
  overflow: hidden;
}

/* Global cursor: show pointer on elements that are typically clickable. */
a[href],
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
}

/* Header, language toggle and right scrollbar stay visible above overlay. */
body.lead-modal-open header,
body.lead-modal-open .lang-btn-fixed,
body.lead-modal-open .scrollbar-container {
  z-index: 8200 !important;
  pointer-events: none;
}

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 7800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0s linear 0.26s;
}

.lead-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.26s ease, visibility 0s linear 0s;
}

.lead-modal {
  width: 720px;
  height: 513px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 34px;
  border: 1px solid var(--lead-neon);
  background: var(--lead-bg);
  color: var(--lead-text);
  box-shadow:
    0 0 24px rgba(157, 233, 9, 0.16),
    0 0 76px rgba(157, 233, 9, 0.1);
  padding: 34px 44px 24px;
  position: relative;
  font-family: "Poppins", "Montserrat", "TT Travels Trial", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  will-change: transform, opacity;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.lead-modal-overlay.open .lead-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lead-modal:hover {
  border-color: #b6ff2b;
  box-shadow:
    0 0 26px rgba(157, 233, 9, 0.22),
    0 0 90px rgba(157, 233, 9, 0.14);
}

.lead-modal-title {
  margin: 16px 0 20px;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f2f2f2;
  text-align: center;
  white-space: nowrap;
}

.lead-modal-title br {
  display: none;
}

.lead-modal-close {
  border: 0;
  background: transparent;
  color: var(--lead-neon);
  font-size: 52px;
  font-weight: 500;
  line-height: 0.9;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 14px;
  padding: 0;
  transition: transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
}

.lead-modal-close:hover {
  color: #c2ff34;
  transform: scale(1.06) rotate(4deg);
  text-shadow: 0 0 14px rgba(157, 233, 9, 0.52);
}

.lead-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.lead-form-label {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 8px;
  color: #f2f2f2;
  width: 500px;
  max-width: 100%;
  text-align: left;
  transition: color 0.2s ease;
}

.lead-form-input,
.lead-form-select {
  width: 500px;
  max-width: 100%;
  height: 35px;
  border-radius: 18px;
  border: 1px solid rgba(157, 233, 9, 0.85);
  background: var(--lead-field-bg);
  color: var(--lead-muted);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.lead-form-input::placeholder,
.lead-form-select:invalid {
  color: var(--lead-muted);
  font-size: 15px;
  font-weight: 300;
}

.lead-form-input:focus,
.lead-form-select:focus {
  box-shadow: 0 0 0 2px var(--lead-neon-soft);
  border-color: #c0ff35;
  color: rgba(242, 242, 242, 0.82);
}

.lead-form-input:hover,
.lead-form-select:hover {
  border-color: #b8ff2d;
  box-shadow: 0 0 0 1px rgba(157, 233, 9, 0.32);
}

.lead-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1.25 1.5L7 7.25L12.75 1.5' fill='none' stroke='%239de909' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 10px;
  background-position: calc(100% - 12px) 50%;
  padding-right: 34px;
}

.lead-form-select::-ms-expand {
  display: none;
}

.lead-form-submit {
  margin-top: 22px;
  width: 350px;
  max-width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--lead-neon);
  background: #0b0b0b;
  color: #dadada;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.lead-form-submit:hover {
  border-color: #b8ff2d;
  color: #f5f5f5;
  box-shadow:
    0 0 20px rgba(157, 233, 9, 0.22),
    0 8px 26px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.lead-form-submit:active {
  transform: translateY(1px);
}

.lead-form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.lead-form-status {
  min-height: 22px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.lead-form-status.error {
  color: var(--lead-error);
}

.lead-form-status.success {
  color: var(--lead-neon);
}

@media (max-width: 900px) {
  .lead-modal-overlay {
    padding: 16px;
  }

  .lead-modal {
    width: min(100%, 560px);
    height: auto;
    min-height: 520px;
    padding: 24px 18px 20px;
    border-radius: 24px;
    justify-content: flex-start;
  }

  .lead-modal-title {
    font-size: clamp(22px, 6.8vw, 30px);
    margin-bottom: 14px;
    white-space: nowrap;
  }

  .lead-modal-close {
    right: 12px;
    top: 8px;
    font-size: 40px;
  }

  .lead-form {
    gap: 8px;
  }

  .lead-form-label {
    font-size: 18px;
    margin-top: 6px;
  }

  .lead-form-input,
  .lead-form-select {
    width: 100%;
    height: 40px;
    font-size: 15px;
  }

  .lead-form-select {
    background-size: 12px 8px;
    background-position: calc(100% - 12px) 50%;
    padding-right: 32px;
  }

  .lead-form-submit {
    width: 100%;
    height: 42px;
    margin-top: 18px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal-overlay,
  .lead-modal,
  .lead-modal-close,
  .lead-form-input,
  .lead-form-select,
  .lead-form-submit {
    transition: none !important;
  }
}
