.sh-lead-card {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line, #dfe2e6);
  border-top: 4px solid var(--red, #f43e3e);
  border-radius: 6px;
  background: var(--white, #fff);
  color: var(--ink, #17191d);
}

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

.sh-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.sh-lead-field {
  min-width: 0;
}

.sh-lead-field--wide {
  grid-column: 1 / -1;
}

.sh-lead-field label:not(.sh-lead-upload),
.sh-lead-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--ink, #17191d);
  font-size: 14px;
  font-weight: 500;
}

.sh-lead-field label > span:not([aria-hidden]),
.sh-lead-field__label small {
  color: var(--muted, #626872);
  max-width: 210px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.sh-lead-field label:not(.sh-lead-upload) > span[aria-hidden] {
  color: var(--red, #f43e3e);
}

.sh-lead-field input,
.sh-lead-field select,
.sh-lead-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #b8bec6;
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #17191d);
  font: inherit;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sh-lead-field input,
.sh-lead-field select {
  height: 50px;
  padding: 0 14px;
}

.sh-lead-field .iti {
  display: block;
  width: 100%;
  --iti-border-color: #b8bec6;
  --iti-country-selector-bg: #fff;
  --iti-hover-color: #f2f5f6;
  --iti-icon-color: #626872;
}

.sh-lead-field .iti__selected-country {
  min-width: 82px;
  border-right: 1px solid #dfe2e6;
  background: #f5f7f8;
  border-radius: 4px 0 0 4px;
}

.sh-lead-field .iti__selected-country-primary {
  padding-right: 8px;
  padding-left: 10px;
}

.sh-lead-field .iti__selected-country:hover,
.sh-lead-field .iti__selected-country:focus-visible {
  background: #edf1f2;
}

.sh-lead-field .iti__selected-dial-code {
  color: var(--ink, #17191d);
  font-size: 14px;
  font-weight: 500;
}

.sh-lead-field .iti__country-selector,
.iti--detached-country-selector .iti__country-selector {
  z-index: 50;
  overflow: hidden;
  border: 1px solid #b8bec6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 25, 29, 0.2);
}

.sh-lead-field .iti--inline-country-selector .iti__country-selector {
  top: calc(100% + 6px);
}

.sh-lead-field .iti__search-input-wrapper,
.iti--detached-country-selector .iti__search-input-wrapper {
  padding: 10px;
  border-bottom: 1px solid #dfe2e6;
  background: #f5f7f8;
}

.sh-lead-field .iti__search-input,
.iti--detached-country-selector .iti__search-input {
  height: 42px;
  padding: 0 38px;
  border: 1px solid #b8bec6;
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #17191d);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.sh-lead-field .iti__search-input:focus,
.iti--detached-country-selector .iti__search-input:focus {
  border-color: var(--red, #c92d2d);
  box-shadow: 0 0 0 3px rgba(201, 45, 45, 0.12);
  outline: 0;
}

.sh-lead-field .iti__search-icon,
.iti--detached-country-selector .iti__search-icon {
  left: 22px;
}

.sh-lead-field .iti__search-clear,
.iti--detached-country-selector .iti__search-clear {
  right: 14px;
}

.sh-lead-field .iti__country-list,
.iti--detached-country-selector .iti__country-list {
  max-height: 264px;
  padding: 5px 0;
  scrollbar-color: #aeb4bd transparent;
  scrollbar-width: thin;
}

.sh-lead-field .iti__country,
.iti--detached-country-selector .iti__country {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink, #17191d);
  font-size: 14px;
  line-height: 1.35;
}

.sh-lead-field .iti__country:hover,
.sh-lead-field .iti__country.iti__highlight,
.iti--detached-country-selector .iti__country:hover,
.iti--detached-country-selector .iti__country.iti__highlight {
  background: #f2f5f6;
}

.sh-lead-field .iti__country[aria-selected="true"],
.iti--detached-country-selector .iti__country[aria-selected="true"] {
  background: #fff1f1;
}

.sh-lead-field .iti__country[aria-selected="true"] .iti__country-name,
.iti--detached-country-selector .iti__country[aria-selected="true"] .iti__country-name {
  font-weight: 500;
}

.sh-lead-field .iti__country:nth-child(5),
.iti--detached-country-selector .iti__country:nth-child(5) {
  margin-bottom: 5px;
  border-bottom: 1px solid #dfe2e6;
}

.sh-lead-field .iti__dial-code,
.iti--detached-country-selector .iti__dial-code {
  color: var(--muted, #626872);
  font-size: 13px;
}

.sh-lead-field .iti__country-check,
.iti--detached-country-selector .iti__country-check {
  margin-left: auto;
  color: var(--red-dark, #a51f1f);
}

.sh-lead-field .iti__flag,
.iti--detached-country-selector .iti__flag {
  flex: 0 0 var(--iti-flag-width);
}

.sh-lead-field.has-error .iti__search-input {
  border-color: #b8bec6;
  box-shadow: none;
}

@media (max-width: 500px) {
  .iti--fullscreen-popup.iti--detached-country-selector {
    padding: 12px;
    background: rgba(23, 25, 29, 0.46);
    backdrop-filter: blur(2px);
  }

  .iti--detached-country-selector .iti__country-selector {
    margin-top: auto;
    border-radius: 8px;
  }

  .iti--detached-country-selector .iti__country-list {
    max-height: none;
  }
}

.sh-lead-field textarea {
  min-height: 112px;
  padding: 13px 14px;
  resize: vertical;
}

.sh-lead-field input:focus,
.sh-lead-field select:focus,
.sh-lead-field textarea:focus {
  border-color: var(--red, #f43e3e);
  box-shadow: 0 0 0 3px rgba(201, 45, 45, 0.14);
  outline: 0;
}

.sh-lead-field.has-error input,
.sh-lead-field.has-error select,
.sh-lead-field.has-error textarea,
.sh-lead-field.has-error .sh-lead-upload,
.sh-lead-consent-wrap.has-error .sh-lead-consent {
  border-color: #b42318;
}

.sh-lead-field.has-error input:focus,
.sh-lead-field.has-error select:focus,
.sh-lead-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.13);
}

.sh-lead-field__error {
  display: block;
  margin-top: 6px;
  color: #9f1f18;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.sh-lead-field__error:empty {
  display: none;
}

.sh-lead-upload {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 22px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #9ba2ab;
  border-radius: 5px;
  background: var(--soft, #f5f6f7);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.sh-lead-upload:hover,
.sh-lead-upload.is-dragging {
  border-color: var(--red, #c92d2d);
  background: #fff5f5;
}

.sh-lead-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sh-lead-upload__icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--red-dark, #a51f1f) !important;
  background: #fae9e9;
  border: 1px solid #efcaca;
  border-radius: 50%;
}

.sh-lead-upload__icon svg {
  width: 24px;
  height: 24px;
}

.sh-lead-upload strong {
  color: var(--ink, #17191d);
  font-size: 14px;
}

.sh-lead-upload small {
  margin-top: 3px;
  color: var(--muted, #626872);
  font-size: 12px;
}

.sh-lead-files {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--graphite, #3b3e43);
  font-size: 12px;
  list-style: none;
}

.sh-lead-files li::before {
  margin-right: 6px;
  color: var(--success, #21875a);
  content: "✓";
}

.sh-lead-files li {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.sh-lead-files li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-lead-files li small {
  margin-left: auto;
  color: var(--muted, #626872);
  white-space: nowrap;
}

.sh-lead-optional {
  border-top: 1px solid var(--line, #dfe2e6);
  border-bottom: 1px solid var(--line, #dfe2e6);
}

.sh-lead-optional summary {
  display: flex;
  min-height: 48px;
  padding: 10px 2px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink, #17191d);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.sh-lead-optional summary::-webkit-details-marker {
  display: none;
}

.sh-lead-optional summary::after {
  color: var(--muted, #626872);
  content: "+";
  font-size: 22px;
  font-weight: 400;
}

.sh-lead-optional[open] summary::after {
  content: "−";
}

.sh-lead-optional summary span {
  margin-left: auto;
  color: var(--muted, #626872);
  font-size: 12px;
  font-weight: 400;
}

.sh-lead-optional__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 6px 0 18px;
}

.sh-lead-consent-wrap {
  min-width: 0;
}

.sh-lead-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted, #626872);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
  border-radius: 4px;
}

.sh-lead-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red, #f43e3e);
}

.sh-lead-consent a {
  color: var(--ink, #17191d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sh-lead-submit {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
}

.sh-lead-submit button {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--red, #c92d2d);
  border-radius: 5px;
  background: var(--red, #c92d2d);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sh-lead-submit button:hover,
.sh-lead-submit button:focus-visible {
  border-color: var(--red-dark, #a51f1f);
  background: var(--red-dark, #a51f1f);
}

.sh-lead-submit button:disabled {
  border-color: #9a9ea4;
  background: #9a9ea4;
  cursor: wait;
}

.sh-lead-submit button span {
  margin-left: 8px;
}

.sh-lead-submit p {
  margin: 0;
  color: var(--muted, #626872);
  font-size: 13px;
  line-height: 1.5;
}

.sh-lead-requirements {
  padding-left: 12px;
  border-left: 2px solid var(--line, #dfe2e6);
  transition: color 160ms ease, border-color 160ms ease;
}

.sh-lead-requirements.is-error {
  color: #8b2020;
  border-left-color: #b72727;
}

.sh-lead-message {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 5px;
  line-height: 1.5;
}

.sh-lead-message p {
  margin: 4px 0 0;
}

.sh-lead-message--success {
  border: 1px solid #acd7c2;
  background: #edf8f2;
  color: #165f3e;
}

.sh-lead-message--error {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  border: 1px solid #efb2b2;
  background: #fff2f2;
  color: #8b2020;
}

.sh-lead-form-message {
  margin-bottom: 20px;
}

.sh-lead-message__icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #21875a;
  color: #fff;
  font-weight: 500;
}

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

@media (max-width: 720px) {
  .sh-lead-card {
    padding: 24px 18px;
  }

  .sh-lead-form,
  .sh-lead-submit,
  .sh-lead-optional__grid {
    grid-template-columns: 1fr;
  }

  .sh-lead-field {
    grid-column: 1 / -1;
  }

  .sh-lead-submit {
    gap: 12px;
  }

  .sh-lead-submit button {
    width: 100%;
  }

  .sh-lead-field label:not(.sh-lead-upload),
  .sh-lead-field__label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .sh-lead-field label > span:not([aria-hidden]),
  .sh-lead-field__label small {
    max-width: none;
    text-align: left;
  }

  .sh-lead-upload {
    min-height: 112px;
    padding: 18px;
  }
}
