.callback-modal[hidden] {
  display: none !important;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000005;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.callback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.callback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.66);
}

.callback-modal-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: #1f2937;
  text-align: left;
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.callback-modal.is-open .callback-modal-card {
  transform: translateY(0);
}

.callback-modal-accent {
  width: 64px;
  height: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #63bc46;
}

.callback-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  font: 400 28px/34px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.callback-modal-close:hover,
.callback-modal-close:focus {
  background: #f4f8f2;
  border-color: #63bc46;
}

.callback-modal-kicker {
  margin: 0 48px 8px 0;
  color: #4fa836;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.callback-modal-title {
  margin: 0 42px 10px 0;
  color: #111827;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.18;
}

.callback-modal-text {
  margin: 0 0 22px;
  color: #5f6672;
  font-size: 16px;
  line-height: 1.55;
}

.callback-field-label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.callback-phone-input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 2px solid #d9e1d5;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 19px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.callback-phone-input:focus {
  border-color: #63bc46;
  box-shadow: 0 0 0 4px rgba(99, 188, 70, 0.14);
}

.callback-phone-input[aria-invalid="true"] {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.callback-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: #ef4136;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(239, 65, 54, 0.24);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.callback-submit:hover,
.callback-submit:focus {
  background: #d9362d;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(239, 65, 54, 0.3);
}

.callback-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.callback-form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #c62828;
  font-size: 14px;
  line-height: 1.45;
}

.callback-form-status.is-success {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef9ea;
  color: #2f7d22;
  font-weight: 700;
}

.callback-legal {
  margin: 12px 0 0;
  color: #7a808a;
  font-size: 12px;
  line-height: 1.45;
}

.callback-legal a {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #4f6750;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callback-honeypot {
  display: none !important;
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

@media (max-width: 540px) {
  .callback-modal {
    align-items: end;
    padding: 10px;
  }

  .callback-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 28px 20px 22px;
    border-radius: 18px 18px 10px 10px;
  }

  .callback-modal-title {
    font-size: 25px;
  }

  .callback-modal-text {
    font-size: 15px;
  }

  .callback-phone-input,
  .callback-submit {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .callback-modal,
  .callback-modal-card,
  .callback-submit {
    transition: none;
  }
}
