.lead-header-contact,
.lead-header-contact *,
.lead-ui,
.lead-ui * {
  box-sizing: border-box;
}

.lead-header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--skay-font-ui, "Segoe UI", Arial, sans-serif);
}

.lead-header-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.lead-header-contact__icon {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 9px 22px rgba(22, 163, 74, .28);
}

.lead-header-contact__icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34, 197, 94, .46);
  border-radius: inherit;
  animation: lead-phone-ring 3s ease-out infinite;
}

.lead-header-contact__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  animation: lead-phone-wiggle 3s ease-in-out infinite;
}

.lead-header-contact__number {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}

.lead-header-contact__callback {
  min-height: 32px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  font-family: var(--skay-font-ui, "Segoe UI", Arial, sans-serif);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: #111827;
  background: linear-gradient(135deg, #ffd45a, #f5a623);
  box-shadow: 0 8px 20px rgba(245, 166, 35, .22);
  cursor: pointer;
}

.lead-header-contact__callback:hover,
.lead-header-contact__callback:focus-visible,
.lead-header-contact__phone:focus-visible {
  outline: 3px solid rgba(245, 166, 35, .34);
  outline-offset: 3px;
}

@keyframes lead-phone-ring {
  0%, 55%, 100% {
    opacity: 0;
    transform: scale(.78);
  }
  12%, 36% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lead-phone-wiggle {
  0%, 65%, 100% {
    transform: rotate(0);
  }
  8% {
    transform: rotate(-10deg);
  }
  16% {
    transform: rotate(10deg);
  }
  24% {
    transform: rotate(-6deg);
  }
  32% {
    transform: rotate(6deg);
  }
}

.lead-ui[hidden],
.lead-dialog[hidden] {
  display: none !important;
}

.lead-ui {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--skay-font-body, "Segoe UI", Arial, sans-serif);
}

.lead-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(5px);
}

.lead-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0, rgba(245, 183, 84, .18), transparent 34%),
    #fff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
}

.lead-dialog--order {
  width: min(100%, 570px);
}

.lead-dialog__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 8px;
  background: linear-gradient(180deg, #fff 72%, rgba(255, 255, 255, .88));
}

.lead-dialog__title {
  margin: 0;
  font-family: var(--skay-font-heading, "Segoe UI", Arial, sans-serif);
  font-size: clamp(24px, 2.6vw, 27px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #111827;
}

.lead-dialog__close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #111827;
  background: #f4f5f7;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lead-dialog__close:hover,
.lead-dialog__close:focus-visible {
  outline: 3px solid rgba(245, 166, 35, .34);
  outline-offset: 2px;
  background: #fff3d8;
}

.lead-form {
  display: grid;
  gap: 10px;
  padding: 12px 24px 24px;
}

.lead-form[hidden] {
  display: none !important;
}

.lead-form--order {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 9px;
}

.lead-field--wide,
.lead-form--order .lead-consent,
.lead-form--order .lead-field-error[data-lead-error-for="consent"],
.lead-form--order .lead-form__message,
.lead-form--order .lead-submit {
  grid-column: 1 / -1;
}

.lead-field {
  display: grid;
  gap: 4px;
}

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

.lead-field label {
  font-family: var(--skay-font-ui, "Segoe UI", Arial, sans-serif);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
  color: #1f2937;
}

.lead-field label span {
  color: #6b7280;
  font-weight: 400;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  padding: 10px 13px;
  font: 400 15px/1.35 var(--skay-font-body, "Segoe UI", Arial, sans-serif);
  color: #111827;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.lead-field textarea {
  min-height: 92px;
  resize: vertical;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: #667085;
  opacity: 1;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  border-color: #f5a623;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, .18);
}

.lead-field input[aria-invalid="true"],
.lead-field select[aria-invalid="true"],
.lead-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.lead-field-error {
  min-height: 14px;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.3;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.38;
  cursor: pointer;
}

.lead-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: #f5a623;
}

.lead-consent a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-form__message {
  min-height: 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.42;
}

.lead-form__message:not(:empty) {
  padding: 9px 11px;
}

.lead-form__message.is-success {
  color: #166534;
  background: #dcfce7;
}

.lead-form__message.is-error {
  color: #991b1b;
  background: #fee2e2;
}

.lead-success[hidden] {
  display: none !important;
}

.lead-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 24px 40px;
  text-align: center;
  color: #111827;
}

.lead-success__icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .24);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.lead-success__title {
  max-width: 390px;
  font-family: var(--skay-font-heading, "Segoe UI", Arial, sans-serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.015em;
}

.lead-success__text {
  max-width: 390px;
  color: #374151;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.35;
}

.lead-submit {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--skay-font-ui, "Segoe UI", Arial, sans-serif);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: #111827;
  background: linear-gradient(135deg, #ffd45a, #f5a623);
  box-shadow: 0 12px 28px rgba(245, 166, 35, .28);
  cursor: pointer;
}

.lead-submit:focus-visible {
  outline: 3px solid rgba(245, 166, 35, .36);
  outline-offset: 3px;
}

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

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

.lead-ui-open {
  overflow: hidden;
}

@media (width > 768px) {
  nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 90px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .nav__header {
    position: static;
    justify-self: start;
  }

  .nav__links {
    justify-self: center;
    margin: 0;
  }

  .lead-header-contact {
    margin-left: auto;
    flex: 0 0 auto;
    max-width: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
    white-space: nowrap;
  }

  .lead-header-contact__phone {
    gap: 7px;
  }

  .lead-header-contact__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .lead-header-contact__icon svg {
    width: 16px;
    height: 16px;
  }

  .lead-header-contact__number {
    font-size: 14px;
  }

  .lead-header-contact__callback {
    width: auto;
    align-self: flex-end;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .lead-header-contact {
    flex-basis: auto;
    max-width: none;
  }

  .lead-header-contact__number {
    font-size: 11px;
  }

  .lead-header-contact__icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .lead-header-contact__icon svg {
    width: 14px;
    height: 14px;
  }

  .lead-header-contact__callback {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 9px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .lead-header-contact {
    display: none;
  }

  .lead-header-contact__callback {
    width: auto;
  }
}

@media (max-width: 768px) {
  .lead-header-contact {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px 12px;
    background: #fff;
  }

  .lead-header-contact__number {
    font-size: 14px;
  }

  .lead-header-contact__callback {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 11px;
    letter-spacing: .02em;
  }

  .lead-ui {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .lead-dialog {
    width: 100%;
    max-height: 85dvh;
    border-radius: 22px 22px 0 0;
  }

  .lead-dialog--order {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .lead-dialog__head {
    padding: 16px 18px 6px;
  }

  .lead-dialog__title {
    font-size: clamp(24px, 7vw, 27px);
  }

  .lead-form {
    gap: 9px;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .lead-form--order {
    grid-template-columns: 1fr;
  }

  .lead-field--wide,
  .lead-form--order .lead-consent,
  .lead-form--order .lead-field-error[data-lead-error-for="consent"],
  .lead-form--order .lead-form__message,
  .lead-form--order .lead-submit {
    grid-column: auto;
  }

  .lead-field input,
  .lead-field select,
  .lead-field textarea {
    min-height: 45px;
    padding: 9px 12px;
  }

  .lead-field textarea {
    min-height: 82px;
  }

  .lead-consent {
    font-size: 12px;
    line-height: 1.35;
  }

  .lead-submit {
    width: 100%;
  }

  .lead-ui-open .gtt-float-widget {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

@media (max-width: 420px) {
  .lead-header-contact {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .lead-header-contact__phone {
    flex: 1 1 170px;
  }

  .lead-header-contact__callback {
    flex: 1 1 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-header-contact__icon::after,
  .lead-header-contact__icon svg {
    animation: none;
  }
}
