.of-lead {
  display: flex;
  justify-content: center;
  padding: 68px 40px;
  background: #FFE2E8;
  scroll-margin-top: 100px;
}

.of-lead__card {
  display: flex;
  align-items: center;
  gap: 44px;
  width: 100%;
  max-width: 1100px;
  padding: 50px 48px;
  border: 1px solid var(--of-border);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 20px 40px -28px rgba(39, 39, 39, 0.15);
}

.of-lead__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.of-lead__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--of-border);
  border-radius: 20px;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--of-dark);
}

.of-lead__badge img {
  width: 13px;
  height: 13px;
}

.of-lead__title {
  margin-bottom: 16px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.14;
  color: var(--of-dark);
}

.of-lead__text {
  max-width: 400px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--of-muted);
}

.of-lead__logos-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--of-muted);
}

.of-lead__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.of-lead__logos img {
  display: block;
  object-fit: contain;
}

.of-lead__form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: 480px;
  max-width: 100%;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--of-border);
  border-radius: 18px;
  background: #FFFDFD;
}

.of-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.of-form[hidden] {
  display: none;
}

.of-form__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--of-dark);
}

.of-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.of-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.of-form__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--of-dark);
}

.of-form__label--muted {
  font-size: 12px;
  color: var(--of-text);
}

.of-form__required {
  font-size: 12px;
  color: var(--of-red);
}

.of-form__optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--of-muted);
}

.of-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--of-border);
  border-radius: 9px;
  background: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--of-dark);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}

.of-form__input::placeholder {
  color: var(--of-placeholder);
}

.of-form__input:focus {
  border-color: rgba(229, 33, 76, 0.5);
}

.of-form__textarea {
  height: 68px;
  resize: vertical;
}

.of-form__error,
.of-form__submit-error {
  display: none;
  font-size: 11px;
  line-height: 1.3;
  color: #CC2626;
}

.of-form__field.is-invalid .of-form__input {
  border: 1.5px solid #CC2626;
}

.of-form__field.is-invalid .of-form__checkbox {
  border-color: #CC2626;
}

.of-form__field.is-invalid .of-form__error,
.of-form.has-submit-error .of-form__submit-error {
  display: block;
}

.of-form__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--of-muted);
  cursor: pointer;
}

.of-form__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.of-form__consent a {
  color: var(--of-muted);
  text-decoration: underline;
}

.of-form__checkbox {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--of-border);
  border-radius: 4px;
  background: #FFFFFF;
  transition: background-color 0.2s, border-color 0.2s;
}

.of-form__consent input:checked + .of-form__checkbox {
  border-color: var(--of-red);
  background: var(--of-red);
}

.of-form__consent input:checked + .of-form__checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.of-form__consent input:focus-visible + .of-form__checkbox {
  outline: 2px solid rgba(229, 33, 76, 0.4);
  outline-offset: 2px;
}

.of-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7B2D 15%, #E5214C 85%);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
}

.of-form__submit-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.of-form__submit-loading {
  display: none;
  font-size: 12px;
}

.of-form.is-loading .of-form__submit {
  background: rgba(229, 33, 76, 0.6);
  cursor: default;
}

.of-form.is-loading .of-form__submit-label {
  display: none;
}

.of-form.is-loading .of-form__submit-loading {
  display: inline;
}

.of-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  text-align: center;
}

.of-form-success[hidden] {
  display: none;
}

.of-form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.12);
  color: #28A745;
}

.of-form-success__title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--of-dark);
}

.of-form-success__text {
  max-width: 260px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--of-muted);
}

@media (max-width: 990px) {
  .of-lead {
    padding: 56px 24px;
    scroll-margin-top: 70px;
  }

  .of-lead__card {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 40px 32px;
  }

  .of-lead__form-card {
    width: 100%;
  }

  .of-lead__title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .of-lead {
    padding: 40px 12px;
  }

  .of-lead__card {
    padding: 28px 16px;
  }

  .of-lead__title {
    font-size: 28px;
  }

  .of-lead__form-card {
    padding: 20px 16px;
  }

  .of-form__row {
    grid-template-columns: 1fr;
  }

  .of-lead__logos {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }

  .of-lead__logos img {
    flex: 0 1 auto;
    min-width: 0;
    height: auto;
  }
}
