header a:first-child,
a[href^="tel:"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

header a:first-child:focus-visible,
a[href^="tel:"]:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.kp-lead-open {
  overflow: hidden !important;
}

.kp-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 11, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.kp-lead-overlay.is-open {
  display: flex;
}

.kp-lead-dialog {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.kp-lead-accent {
  height: 8px;
  background: #ffd400;
}

.kp-lead-content {
  padding: 34px 34px 30px;
}

.kp-lead-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #111;
  cursor: pointer;
  font: 400 28px/42px Arial, sans-serif;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.kp-lead-close:hover {
  background: #e4e4e4;
  transform: scale(1.04);
}

.kp-lead-close:focus-visible,
.kp-lead-input:focus-visible,
.kp-lead-submit:focus-visible {
  outline: 3px solid rgba(255, 212, 0, 0.58);
  outline-offset: 2px;
}

.kp-lead-title {
  margin: 0 44px 8px 0;
  color: #111;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.kp-lead-subtitle {
  min-height: 22px;
  margin: 0 0 24px;
  color: #5f5f5f;
  font-size: 16px;
  line-height: 1.4;
}

.kp-lead-label {
  display: block;
  margin-bottom: 8px;
  color: #252525;
  font-size: 14px;
  font-weight: 700;
}

.kp-lead-input {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 2px solid #d8d8d8;
  border-radius: 13px;
  background: #fff;
  color: #111;
  font: 600 18px/1 Arial, Helvetica, sans-serif;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kp-lead-input:focus {
  border-color: #e7bd00;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.17);
  outline: 0;
}

.kp-lead-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  background: #ffd400;
  color: #111;
  cursor: pointer;
  font: 800 17px/1.2 Arial, Helvetica, sans-serif;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.kp-lead-submit:hover:not(:disabled) {
  background: #f2c900;
  transform: translateY(-1px);
}

.kp-lead-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.kp-lead-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.35;
}

.kp-lead-status.is-success {
  color: #167647;
  font-weight: 700;
}

.kp-lead-consent {
  margin: 10px 0 0;
  color: #666;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.kp-lead-input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.kp-lead-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 520px) {
  .kp-lead-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .kp-lead-dialog {
    border-radius: 22px;
  }

  .kp-lead-content {
    padding: 28px 20px 22px;
  }

  .kp-lead-title {
    font-size: 26px;
  }

  .kp-lead-close {
    top: 17px;
    right: 17px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kp-lead-overlay.is-open .kp-lead-dialog {
    animation: kp-lead-in 0.2s ease-out;
  }

  @keyframes kp-lead-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
