:root {
  color-scheme: dark;
  --background: #02070d;
  --foreground: #f8fbff;
  --panel: #081725;
  --muted: #b8c7d4;
  --red: #ff2338;
  --blue: #39adff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  display: grid;
  place-items: start center;
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen {
  position: relative;
  width: min(100%, 1672px);
  min-height: 1px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.call-hotspot {
  position: absolute;
  z-index: 2;
  left: 4.1%;
  top: 77.4%;
  width: 35.3%;
  height: 10.7%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 35, 56, 0.025);
  cursor: pointer;
  isolation: isolate;
  animation: urgent-pulse 1.8s ease-in-out infinite;
}

.call-hotspot::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  opacity: 0.42;
  animation: urgent-ring 1.8s ease-out infinite;
}

.call-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 26%, rgba(255, 255, 255, 0.34) 46%, transparent 64%);
  transform: translateX(-145%) skewX(-16deg);
  clip-path: inset(0 round 999px);
  animation: urgent-shine 2.7s ease-in-out infinite;
}

.call-hotspot:hover {
  background: rgba(255, 255, 255, 0.07);
}

.call-hotspot:active {
  transform: scale(0.98);
}

.call-hotspot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.phone-link {
  position: absolute;
  z-index: 3;
  top: 2.55%;
  right: 1.4%;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  padding: 0.12em 0.28em;
  color: #fff;
  background: #0a121b;
  border-radius: 0.3em;
  box-shadow: 0 0 12px 10px #0a121b;
  font: 800 clamp(14px, 1.675vw, 28px)/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transform-origin: center;
  animation: phone-pulse 1.8s ease-in-out infinite;
}

.phone-link svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-link:hover {
  animation-play-state: paused;
  transform: scale(1.06);
}

.phone-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 5, 10, 0.78);
  backdrop-filter: blur(5px);
  cursor: default;
}

.lead-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 450px);
  padding: 30px;
  border: 1px solid rgba(57, 173, 255, 0.32);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64), 0 0 40px rgba(46, 169, 255, 0.14);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

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

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #cbd7e1;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.lead-dialog h1,
.success-panel h2 {
  margin: 0 44px 10px 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.dialog-description,
.success-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

#lead-form {
  display: grid;
  gap: 17px;
}

.field-label {
  margin-bottom: -9px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.phone-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 18px;
  outline: none;
}

.phone-input::placeholder {
  color: #7f92a3;
}

.phone-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57, 173, 255, 0.2);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 11px;
  align-items: start;
  color: #c4d0da;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #168de0;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 80, 96, 0.34);
  border-radius: 12px;
  color: #ffd6da;
  background: rgba(255, 35, 56, 0.12);
  font-size: 14px;
  line-height: 1.45;
}

.submit-button,
.success-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(90deg, #dc1228, #ff3144);
  box-shadow: 0 12px 35px rgba(255, 35, 56, 0.34);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:hover:not(:disabled),
.success-button:hover {
  filter: brightness(1.12);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.success-panel {
  padding: 10px 0 2px;
}

.success-panel h2 {
  color: #b8fbd7;
}

.success-button {
  background: #18a966;
  box-shadow: 0 12px 35px rgba(24, 169, 102, 0.25);
}

.modal-open {
  overflow: hidden;
}

@keyframes urgent-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 35, 56, 0.35), inset 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 46px rgba(255, 35, 56, 0.88), inset 0 0 22px rgba(255, 255, 255, 0.15);
  }
}

@keyframes urgent-ring {
  0% { transform: scale(0.99); opacity: 0.52; }
  70%, 100% { transform: scale(1.055, 1.23); opacity: 0; }
}

@keyframes urgent-shine {
  0%, 24% { transform: translateX(-145%) skewX(-16deg); }
  62%, 100% { transform: translateX(145%) skewX(-16deg); }
}

@keyframes phone-pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(46, 169, 255, 0); }
  50% { transform: scale(1.045); text-shadow: 0 0 14px rgba(46, 169, 255, 0.85); }
}

@media (max-width: 600px) {
  .modal {
    padding: 12px;
  }

  .lead-dialog {
    padding: 25px 20px 22px;
    border-radius: 18px;
  }

  .lead-dialog h1,
  .success-panel h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-hotspot,
  .call-hotspot::before,
  .call-hotspot::after,
  .phone-link {
    animation: none;
  }

  .modal,
  .lead-dialog {
    transition: none;
  }
}
