/* Компактная верхняя форма. Нижний блок cooperation не затрагивается. */

.cooperation-top,
.cooperation-top * {
  box-sizing: border-box;
}

.cooperation-top {
  position: relative;
  width: 100%;
  max-width: 1700px;
  height: 225px;
  margin: 34px auto;
  padding: 23px 48px 22px;
  overflow: hidden;
  border-radius: 10px;
  background: #42315e;
  color: #fff;
  font-family: "cregular", robotolight, tahoma, sans-serif;
}

.cooperation-top__form {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.cooperation-top__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.cooperation-top__field {
  display: block;
  min-width: 0;
  margin: 0;
}

.cooperation-top__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cooperation-top__field input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 2px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .48);
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 16px/1.2 "cregular", robotolight, tahoma, sans-serif;
  text-transform: uppercase;
}

.cooperation-top__field input::placeholder {
  color: rgba(255, 255, 255, .94);
  opacity: 1;
}

.cooperation-top__field input:focus {
  border-bottom-color: #e0a000;
}

.cooperation-top__field.is-error input {
  border-bottom-color: #ff7979;
}

.cooperation-top__controls {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 304px 150px;
  gap: 42px;
  align-items: center;
  min-height: 90px;
  margin-top: 15px;
}

.cooperation-top .cooperation-top__consents {
  align-self: center;
  margin: 0;
}

.cooperation-top .cooperation-top__consents label {
  position: relative;
  display: block;
  margin: 0 0 5px !important;
  padding-left: 22px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.cooperation-top .cooperation-top__consents label:last-child {
  margin-bottom: 0 !important;
}

.cooperation-top .cooperation-top__consents input[type="checkbox"] {
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 14px;
  margin: 0;
}

.cooperation-top .cooperation-top__consents a {
  display: inline;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.cooperation-top__captcha {
  position: relative;
  width: 304px;
  min-height: 78px;
}

.cooperation-top__captcha .g-recaptcha {
  width: 304px;
  min-height: 78px;
}

.cooperation-top__captcha-error {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  color: #ffb0b0;
  font-size: 11px;
  line-height: 1.2;
}

.cooperation-top__captcha.is-error .cooperation-top__captcha-error {
  display: block;
}

.cooperation-top__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 52px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #df9700;
  color: #fff;
  cursor: pointer;
  font: 16px/1 "cmedium", "cregular", robotolight, tahoma, sans-serif;
  transition: background-color .18s ease;
}

.cooperation-top__submit:hover,
.cooperation-top__submit:focus-visible {
  background: #c98500;
}

.cooperation-top__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cooperation-top__submit:disabled {
  cursor: default;
  opacity: .48;
}

.cooperation-top.is-loading .cooperation-top__submit {
  cursor: wait;
}

.cooperation-top__status {
  min-height: 16px;
  margin: -5px 0 0;
  color: #ffb0b0;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.cooperation-top__success {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  background: #35234f;
  color: #fff;
  text-align: center;
}

.cooperation-top__success strong {
  font: 28px/1.25 "cmedium", "cregular", robotolight, tahoma, sans-serif;
}

.cooperation-top__success span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
}

.cooperation-top.is-success .cooperation-top__form {
  visibility: hidden;
}

.cooperation-top.is-success .cooperation-top__success {
  display: flex;
}

@media (max-width: 1250px) {
  .cooperation-top {
    padding-right: 32px;
    padding-left: 32px;
  }

  .cooperation-top__fields,
  .cooperation-top__controls {
    gap: 24px;
  }

  .cooperation-top__controls {
    grid-template-columns: minmax(290px, 1fr) 304px 135px;
  }

  .cooperation-top__submit {
    width: 135px;
  }
}

@media (max-width: 1100px) {
  .cooperation-top {
    height: auto;
    min-height: 225px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .cooperation-top__controls {
    grid-template-columns: minmax(0, 1fr) 304px;
  }

  .cooperation-top__submit {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: -6px;
  }

  .cooperation-top__status {
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .cooperation-top {
    margin: 24px auto;
    padding: 26px 22px 28px;
  }

  .cooperation-top__fields,
  .cooperation-top__controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cooperation-top__field input {
    height: 40px;
  }

  .cooperation-top__controls {
    margin-top: 22px;
  }

  .cooperation-top__captcha {
    transform-origin: left top;
  }

  .cooperation-top__submit {
    grid-column: auto;
    justify-self: start;
    width: 150px;
    margin-top: 0;
  }

  .cooperation-top__status {
    margin-top: 14px;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .cooperation-top .cooperation-top__consents label {
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.4;
  }

  .cooperation-top__captcha {
    width: 274px;
    min-height: 71px;
  }

  .cooperation-top__captcha .g-recaptcha {
    transform: scale(.9);
    transform-origin: left top;
  }
}
