:root {
  --lead-form-bg: #ffffff;
  --lead-form-panel-bg: #ffffff;
  --lead-form-input-bg: #edf3fc;
  --lead-form-border: rgba(4, 27, 78, 0.12);
  --lead-form-text: #041b4e;
  --lead-form-muted: #4b5563;
}

.lead-form-panel {
  background: var(--lead-form-panel-bg) !important;
  border: 1px solid var(--lead-form-border);
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(4, 27, 78, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  padding: clamp(32px, 4vw, 60px) !important;
}

.lead-form {
  display: grid !important;
  gap: 20px !important;
  left: auto !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  right: auto !important;
  width: 100% !important;
}

.lead-form .form-field {
  display: grid;
  gap: 8px;
  margin: 0 !important;
  min-width: 0;
}

.lead-form .form-label {
  color: var(--lead-form-text) !important;
  display: block;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  margin: 0 !important;
}

.lead-form .form-input,
.lead-form .form-select {
  appearance: none;
  background: var(--lead-form-input-bg) !important;
  border: 1px solid rgba(4, 27, 78, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: #1c1c1c !important;
  font-size: 16px !important;
  height: 50px !important;
  line-height: 1.2;
  margin: 0 !important;
  min-width: 0;
  outline: none;
  padding: 0 16px !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100% !important;
}

.lead-form .form-select {
  background-image:
    linear-gradient(45deg, transparent 50%, #041b4e 50%),
    linear-gradient(135deg, #041b4e 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 40px !important;
}

.lead-form .form-input:focus,
.lead-form .form-select:focus,
.lead-form .form-phone:focus-within {
  border-color: var(--lead-form-text) !important;
  box-shadow: 0 0 0 1px rgba(4, 27, 78, 0.08) !important;
}

.lead-form .form-phone {
  align-items: center;
  background: var(--lead-form-input-bg) !important;
  border: 1px solid rgba(4, 27, 78, 0.12) !important;
  border-radius: 8px !important;
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto minmax(0, 1fr);
  height: 50px;
  min-width: 0;
  padding: 0 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lead-form .form-phone__flag {
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  height: auto;
  width: 20px;
}

.lead-form .form-phone__code {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.lead-form .form-input--phone {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 48px !important;
  min-width: 0;
  padding: 0 !important;
}

.lead-form .form-input--phone:focus {
  box-shadow: none !important;
}

.lead-form .form-consent {
  align-items: center;
  cursor: pointer;
  display: flex !important;
  gap: 12px !important;
  margin: 0 !important;
  min-height: 24px;
}

.lead-form .form-consent__checkbox {
  appearance: none;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(4, 27, 78, 0.28) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(4, 27, 78, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 20px !important;
}

.lead-form .form-consent__checkbox:checked {
  background-color: var(--lead-form-text) !important;
  background-image:
    url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 10.2 8.2 13.3 15 6.7' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e"),
    linear-gradient(180deg, #082667 0%, var(--lead-form-text) 100%) !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 16px 16px, 100% 100% !important;
  border-color: var(--lead-form-text) !important;
  box-shadow: 0 4px 10px rgba(4, 27, 78, 0.22) !important;
}

.lead-form .form-consent__checkbox::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 6px;
  opacity: 0;
  position: absolute;
  top: 3px;
  transform: rotate(45deg) scale(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
  width: 5px;
}

.lead-form .form-consent__checkbox:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.lead-form .form-consent__checkbox:hover {
  border-color: rgba(4, 27, 78, 0.55) !important;
}

.lead-form .form-consent__checkbox:focus-visible {
  outline: 2px solid rgba(64, 129, 253, 0.55);
  outline-offset: 3px;
}

.lead-form .form-consent__text {
  color: var(--lead-form-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.lead-form .btn--submit {
  background: var(--lead-form-text) !important;
  border: 1px solid var(--lead-form-text) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 20px rgba(4, 27, 78, 0.14);
  color: #fff !important;
  display: inline-flex !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  height: 50px !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 18px !important;
  text-align: center;
  transform: none !important;
  white-space: nowrap;
  width: 100% !important;
}

.lead-form .btn--submit:hover {
  filter: brightness(1.08);
}

.lead-form .form-message {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  min-height: 18px;
}

.lead-form .form-message[data-state="error"] {
  color: #9f1239;
}

.lead-form .form-message[data-state="success"] {
  color: #166534;
}

.lead-form .form-message[data-state="info"] {
  color: var(--lead-form-muted);
}

.form-honeypot,
.lead-form .form-honeypot {
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
}

@media (max-width: 768px) {
  main > section:first-child,
  main.tw > section:first-child,
  main section:first-child[class*="pt-"],
  main section:first-child[class*="py-"] {
    margin-top: 0 !important;
    padding-top: 24px !important;
  }

  main .section,
  main section[class*="py-16"],
  main section[class*="py-20"] {
    padding-bottom: 48px !important;
    padding-top: 48px !important;
  }

  main .section + .section,
  main section + section[class*="py-16"],
  main section + section[class*="py-20"] {
    padding-top: 28px !important;
  }

  .lead-form-panel {
    border-radius: 16px !important;
    padding: 24px !important;
    width: 100% !important;
  }

  .lead-form {
    gap: 18px !important;
  }

  .lead-form .form-input,
  .lead-form .form-select,
  .lead-form .form-phone,
  .lead-form .btn--submit {
    height: 50px !important;
  }

  .lead-form .form-consent__text {
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  .lead-form-panel {
    padding: 20px !important;
  }

  .lead-form .btn--submit {
    font-size: 15px !important;
    padding: 0 12px !important;
  }
}
