.dofin-lead-steps,
.dofin-lead-steps *,
.dofin-lead-steps *::before,
.dofin-lead-steps *::after {
  box-sizing: border-box;
}

.dofin-lead-steps {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.dofin-lead-steps-form {
  color: #1f3551;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dofin-lead-step-message {
  display: none;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.dofin-lead-step-message.is-visible {
  display: block;
}

.dofin-lead-step-message.is-error {
  background: #fbe9e4;
  color: #8e3e2b;
}

.dofin-lead-step-message.is-success {
  background: #e6f4ea;
  color: #285c39;
}

.dofin-lead-submit-message {
  display: none;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.dofin-lead-submit-message.is-visible {
  display: block;
}

.dofin-lead-submit-message.is-error {
  background: #fbe9e4;
  color: #8e3e2b;
}

.dofin-lead-submit-message.is-success {
  background: #e6f4ea;
  color: #285c39;
}

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

.dofin-lead-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dofin-lead-grid--two {
  grid-template-columns: minmax(0, 1fr);
}

.dofin-lead-field {
  min-width: 0;
  max-width: 100%;
}

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

.dofin-lead-label {
  display: block;
  margin-bottom: 7px;
  color: #20324d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.dofin-lead-required {
  color: #d14a45;
}

.dofin-lead-control {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dofin-lead-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: #dce9f5;
  color: #20324d;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  padding: 16px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dofin-lead-input::placeholder {
  color: #60738b;
}

.dofin-lead-input:focus {
  outline: 0;
  border-color: #4c77b7;
  box-shadow: 0 0 0 4px rgba(76, 119, 183, 0.18);
  background: #e5eff8;
}

.dofin-lead-control select.dofin-lead-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #314c6d 50%),
    linear-gradient(135deg, #314c6d 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

.dofin-lead-control--phone .dofin-lead-input {
  padding-left: 82px;
}

.dofin-lead-phone-prefix,
.dofin-lead-phone-code {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #233752;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}

.dofin-lead-phone-prefix {
  left: 14px;
}

.dofin-lead-phone-code {
  left: 35px;
}

.dofin-lead-textarea {
  min-height: 96px;
  border-radius: 28px;
  resize: vertical;
}

.dofin-lead-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #233752;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.dofin-lead-checkbox input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 3px;
}

.dofin-lead-checkbox a {
  color: #1f4e88;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dofin-lead-error {
  margin: 8px 0 0;
  color: #b33a36;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.dofin-lead-field.has-error .dofin-lead-input,
.dofin-lead-field.has-error .dofin-lead-checkbox {
  border-color: #c94b45;
  box-shadow: 0 0 0 4px rgba(201, 75, 69, 0.14);
}

.dofin-lead-field.has-error .dofin-lead-checkbox {
  border: 1px solid #c94b45;
  border-radius: 24px;
  padding: 14px 16px;
}

.dofin-lead-progress {
  margin-top: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dofin-lead-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dofin-lead-progress-count {
  color: #314c6d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.dofin-lead-progress-bar {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #d8e4f2;
}

.dofin-lead-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7697d8;
  transition: width 0.24s ease;
}

.dofin-lead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dofin-lead-button {
  max-width: 100%;
  min-width: 138px;
  min-height: 56px;
  border: 0;
  border-radius: 30px;
  padding: 15px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dofin-lead-button:hover,
.dofin-lead-button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.dofin-lead-button--primary {
  background: #9f5638;
  color: #fff;
  box-shadow: 0 14px 24px rgba(159, 86, 56, 0.22);
}

.dofin-lead-button--primary:hover,
.dofin-lead-button--primary:focus-visible {
  background: #8d4b31;
}

.dofin-lead-button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.dofin-lead-button--secondary {
  background: #ede8e3;
  color: #6d422f;
}

.dofin-lead-button--secondary:hover,
.dofin-lead-button--secondary:focus-visible {
  background: #e0d5cc;
}

@container (min-width: 860px) {
  .dofin-lead-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .dofin-lead-grid--two {
    grid-template-columns: 1fr;
  }

  .dofin-lead-input {
    min-height: 54px;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 28px;
  }

  .dofin-lead-control--phone .dofin-lead-input {
    padding-left: 80px;
  }

  .dofin-lead-phone-prefix,
  .dofin-lead-phone-code {
    font-size: 15px;
  }

  .dofin-lead-progress-count {
    font-size: 22px;
  }

  .dofin-lead-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .dofin-lead-button {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}
