.callback-modal-lock {
  overflow: hidden;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 58, 131, 0.52);
  backdrop-filter: blur(10px);
}

.callback-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(220, 232, 245, 0.95);
  border-radius: 12px;
  background: #ffffff;
  color: #142033;
  box-shadow: 0 26px 80px -34px rgba(7, 89, 200, 0.56);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.callback-modal.is-open .callback-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.callback-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dce8f5;
  padding: 22px 22px 18px;
}

.callback-modal__eyebrow {
  margin: 0 0 8px;
  color: #0759c8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.callback-modal__title {
  margin: 0;
  font-family: Nunito, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
}

.callback-modal__copy {
  margin: 10px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.callback-modal__close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: #f4f9ff;
  color: #142033;
  font-size: 28px;
  line-height: 1;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.callback-modal__close:hover {
  background: #eaf3ff;
}

.callback-modal__close:active {
  transform: translateY(1px);
}

.callback-modal__form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.callback-modal__field {
  display: grid;
  gap: 8px;
}

.callback-modal__label {
  color: #142033;
  font-size: 14px;
  font-weight: 700;
}

.callback-modal__input,
.callback-modal__textarea {
  width: 100%;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: #ffffff;
  color: #142033;
  outline: none;
  padding: 12px 14px;
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.callback-modal__textarea {
  min-height: 84px;
  resize: vertical;
}

.callback-modal__input:focus,
.callback-modal__textarea:focus {
  border-color: #0759c8;
  box-shadow: 0 0 0 4px rgba(7, 89, 200, 0.12);
}

.callback-modal__error {
  min-height: 20px;
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.callback-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  background: #0759c8;
  color: #ffffff;
  font-weight: 900;
  transition:
    background-color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.callback-modal__submit:hover {
  background: #083a83;
}

.callback-modal__submit:active {
  transform: translateY(1px);
}

.callback-modal__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.callback-modal__status {
  display: none;
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.45;
}

.callback-modal__status.is-visible {
  display: block;
}

.callback-modal__status.is-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.callback-modal__status.is-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 520px) {
  .callback-modal {
    align-items: flex-end;
    padding: 0;
  }

  .callback-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    overflow: auto;
    border-radius: 12px 12px 0 0;
  }

  .callback-modal__header,
  .callback-modal__form {
    padding-left: 18px;
    padding-right: 18px;
  }
}
