.lead-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #cbd8ce;
  border-radius: 18px;
  background: #f1f0e9;
  color: #173c31;
}

.lead-form-heading {
  display: grid;
  gap: 6px;
}

.lead-form-heading h3 {
  margin: 0;
  color: #173c31;
  font: 750 24px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: -.025em;
}

.lead-form-heading p,
.lead-field-hint,
.lead-field-error,
.lead-consent-error,
.lead-form-status {
  margin: 0;
}

.lead-form-heading p {
  color: #60736a;
  font-size: 14px;
  line-height: 1.55;
}

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

.lead-field label {
  color: #29483e;
  font-size: 13px;
  font-weight: 750;
}

.lead-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #aebfb4;
  border-radius: 13px;
  background: #fbfaf5;
  color: #102b25;
  font: 650 16px/1.3 Manrope, Arial, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lead-field input::placeholder {
  color: #6d7e75;
  opacity: 1;
}

.lead-field input:hover {
  border-color: #658177;
}

.lead-field input:focus-visible,
.lead-consent input:focus-visible,
.lead-consent a:focus-visible {
  outline: 3px solid #29493f;
  outline-offset: 2px;
}

.lead-field input[aria-invalid="true"] {
  border-color: #9b3f34;
  box-shadow: 0 0 0 1px #9b3f34;
}

.lead-field-hint {
  color: #60736a;
  font-size: 12px;
  line-height: 1.45;
}

.lead-field-error,
.lead-consent-error {
  color: #8b342a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.lead-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  min-height: 44px;
}

.lead-consent input {
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  border-radius: 5px;
  accent-color: #29493f;
}

.lead-consent input[aria-invalid="true"] {
  outline: 2px solid #9b3f34;
  outline-offset: 2px;
}

.lead-consent label {
  color: #4d6259;
  font-size: 12px;
  line-height: 1.55;
}

.lead-consent a {
  color: #173c31;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lead-submit.button {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid #173c31;
  border-radius: 14px;
  background: #173c31;
  color: #fff;
  text-align: center;
  box-shadow: none;
}

.lead-submit.button:hover {
  background: #29493f;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 43, 37, .14);
}

.lead-submit.button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.lead-form[aria-busy="true"] .lead-field input,
.lead-form[aria-busy="true"] .lead-consent {
  opacity: .7;
}

.lead-form-status {
  min-height: 0;
  color: #4d6259;
  font-size: 13px;
  line-height: 1.5;
}

.lead-form-status:empty {
  display: none;
}

.lead-form-status[data-state="success"] {
  padding: 13px 15px;
  border-left: 3px solid #29493f;
  border-radius: 0 10px 10px 0;
  background: #dce8dc;
  color: #173c31;
  font-weight: 700;
}

.lead-form-status[data-state="error"] {
  color: #8b342a;
  font-weight: 650;
}

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

.booking-contact-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  color: #60736a;
  font-size: 12px;
  line-height: 1.3;
}

.booking-contact-divider::before,
.booking-contact-divider::after {
  content: "";
  height: 1px;
  background: #cbd8ce;
}

.booking-dialog .contact-actions,
.utm-offer-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.booking-dialog .contact-action {
  justify-content: center;
  min-width: 0;
  min-height: 60px;
  padding: 10px 9px;
  gap: 9px;
  font-size: 13px;
}

.booking-dialog .contact-action-icon {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.booking-dialog .contact-action-icon svg {
  width: 20px;
  height: 20px;
}

.lead-form--offer {
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
}

.lead-form--offer .lead-field input,
.lead-form--offer .lead-submit.button {
  min-height: 52px;
}

.lead-form--offer .lead-consent {
  min-height: 0;
}

.utm-offer-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 17px 0 0;
  color: #60736a;
  font-size: 11px;
  line-height: 1.3;
}

.utm-offer-divider::before,
.utm-offer-divider::after {
  content: "";
  height: 1px;
  background: #cbd8ce;
}

.utm-offer-actions {
  margin-top: 12px;
}

.utm-offer-action {
  min-height: 58px;
  padding: 10px 8px;
  gap: 7px;
  font-size: 12px;
}

.utm-offer-action--phone {
  background: #1f4a3d;
}

.utm-offer-action--phone .utm-offer-action-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-form--offer {
  border-color: #345449;
  background: #1a382f;
  color: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-field label,
.utm-offer-dialog[data-offer-variant="b"] .lead-form-status {
  color: #e5ece7;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-field-hint,
.utm-offer-dialog[data-offer-variant="b"] .lead-consent label {
  color: #bdcbc3;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-consent a {
  color: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-field-error,
.utm-offer-dialog[data-offer-variant="b"] .lead-consent-error,
.utm-offer-dialog[data-offer-variant="b"] .lead-form-status[data-state="error"] {
  color: #ffb5a9;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-form-status[data-state="success"] {
  border-left-color: #b9d0c3;
  background: #29493f;
  color: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-submit.button {
  border-color: #e6eee5;
  background: #e6eee5;
  color: #102b25;
}

.utm-offer-dialog[data-offer-variant="b"] .lead-submit.button:hover {
  background: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-divider {
  color: #bdcbc3;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-divider::before,
.utm-offer-dialog[data-offer-variant="b"] .utm-offer-divider::after {
  background: #345449;
}

@media (max-width: 600px) {
  .booking-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .booking-dialog-header {
    padding: 18px 16px;
  }

  .booking-dialog-header h2 {
    max-width: calc(100% - 58px);
    font-size: 25px;
  }

  .booking-dialog-content {
    padding: 16px;
  }

  .lead-form {
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .lead-form-heading h3 {
    font-size: 21px;
  }

  .booking-contact-divider {
    margin: 20px 0;
  }

  .booking-dialog .contact-actions,
  .utm-offer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .booking-dialog .contact-action,
  .utm-offer-action {
    flex-direction: column;
    min-height: 68px;
    padding: 8px 4px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.15;
  }

  .booking-dialog .contact-action-icon,
  .utm-offer-action-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    border-radius: 7px;
  }

  .booking-dialog .contact-action-icon svg,
  .utm-offer-action-icon svg {
    width: 19px;
    height: 19px;
  }

  .lead-form--offer {
    gap: 12px;
    margin-top: 15px;
    padding: 14px;
  }

  .lead-form--offer .lead-field input,
  .lead-form--offer .lead-submit.button {
    min-height: 50px;
  }

  .lead-form--offer .lead-consent label {
    font-size: 11px;
    line-height: 1.45;
  }

  .utm-offer-divider {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-field input,
  .lead-submit.button {
    transition: none;
  }

  .lead-submit.button:hover {
    transform: none;
  }
}

@media print {
  .lead-form,
  .booking-contact-divider,
  .utm-offer-divider {
    display: none !important;
  }
}
