.spa-widget[hidden] {
  display: none !important;
}

.spa-widget {
  box-sizing: border-box;
  margin: 14px 0 16px;
  padding: 14px 15px 15px;
  border: 1px solid #dce6f3;
  border-radius: 18px;
  background: #f5f8fc;
  color: #14213a;
  box-shadow: 0 1px 2px rgba(17, 42, 81, 0.03);
}

.spa-widget *,
.spa-widget *::before,
.spa-widget *::after {
  box-sizing: border-box;
}

.spa-widget__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
}

.spa-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6efff;
  color: #1f59b6;
}

.spa-widget__title {
  margin: 0;
  color: #16213a;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.spa-widget__copy {
  margin: 0 0 12px;
  color: #5f6f88;
  font-size: 13.5px;
  line-height: 1.42;
}

.spa-widget__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin: 0;
}

.spa-widget__field {
  min-width: 0;
}

.spa-widget__input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #d2ddeb;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #17213a;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.spa-widget__input::placeholder {
  color: #8795aa;
  opacity: 1;
}

.spa-widget__input:focus {
  border-color: #5c84c9;
  box-shadow: 0 0 0 3px rgba(37, 91, 181, 0.10);
}

.spa-widget__button {
  min-width: 128px;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #245bb5;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease, transform .05s ease;
}

.spa-widget__button:hover,
.spa-widget__button:focus {
  background: #194d9d;
  color: #fff;
}

.spa-widget__button:active {
  transform: translateY(1px);
}

.spa-widget__button:disabled {
  opacity: .65;
  cursor: wait;
}

.spa-widget__message {
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}

.spa-widget__message--success {
  color: #08783e;
}

.spa-widget__message--error {
  color: #b42318;
}

.spa-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 520px) {
  .spa-widget {
    margin: 12px 0 14px;
    padding: 13px 13px 14px;
    border-radius: 17px;
  }

  .spa-widget__title {
    font-size: 16px;
  }

  .spa-widget__copy {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.38;
  }

  .spa-widget__form {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 7px;
  }

  .spa-widget__input,
  .spa-widget__button {
    height: 42px;
  }

  .spa-widget__button {
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .spa-widget__form {
    grid-template-columns: 1fr;
  }

  .spa-widget__button {
    width: 100%;
  }
}
