.form-dialog {
  width: 360px;
  max-width: calc(100vw - 20px);
  padding: 0;
  margin: auto;
  border: 0;
  background: var(--color-white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s, display 0.2s allow-discrete, overlay 0.2s allow-discrete;

  &[open] {
    opacity: 1;
    animation: form-dialog-fade 0.2s;
  }

  &::backdrop {
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
  }

  &[open]::backdrop {
    opacity: 1;
    animation: form-dialog-fade 0.2s;
  }

  & form {
    position: relative;
    padding: 30px 30px 40px;
  }
}

@keyframes form-dialog-fade {
  from {
    opacity: 0;
  }
}

.callback-form__title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.callback-form__text {
  font-size: 16px;
  text-align: center;
}

.callback-form__fieldset {
  margin-bottom: 5px;
}

.callback-form__btn {
  width: 100%;
}

.callback-form__privacy {
  text-align: center;
}

.simplecallback-close {
  position: absolute;
  top: 0;
  right: 0;
  min-width: auto;
  min-height: auto;
  width: 35px;
  height: 35px;
  padding: 10px;

  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  line-height: 15px;

  &:hover {
    color: var(--color-accent);
  }
}

.simplecallback-send {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  z-index: 1;

  background: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 400;
  text-align: center;

  &[hidden] {
    display: none;
  }
}

.simplecallback-send--success {
  color: #24a63d;
}

.simplecallback-send--error {
  color: #7c0000;
}
