.success-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
}

.success-modal.is-open {
  display: flex;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 24, 0.54);
  backdrop-filter: blur(4px);
}

.success-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 56px 56px 48px;
  background: #fff;
  border: 1px solid rgba(0, 77, 102, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  color: #1c2b30;
  text-align: center;
}

.success-modal__icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: rgba(0, 128, 132, 0.12);
  color: #008878;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-modal__icon svg {
  width: 39px;
  height: 39px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.success-modal__title {
  margin: 0 0 14px;
  color: #1c2b30;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 800;
}

.success-modal__text {
  max-width: 430px;
  margin: 0 auto;
  color: #4a6570;
  font-size: 18px;
  line-height: 1.55;
}

.success-modal__text + .success-modal__text {
  margin-top: 8px;
}

.success-modal__button {
  margin-top: 34px;
  min-width: 220px;
  height: 58px;
  border: 0;
  border-radius: 5px;
  background: #004d66;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.success-modal__button:hover {
  background: #003d52;
}

body.success-modal-open {
  overflow: hidden;
}

.form-field.is-invalid label {
  color: rgba(170, 60, 60, 0.78);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: rgba(255, 120, 120, 0.8) !important;
}

.form-field .field-error {
  margin: 6px 0 0;
  color: rgba(170, 60, 60, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .success-modal {
    padding: 16px;
  }

  .success-modal__dialog {
    padding: 46px 24px 34px;
  }

  .success-modal__text {
    font-size: 16px;
  }

  .success-modal__button {
    width: 100%;
    min-width: 0;
  }
}
