/* DEMO REQUEST MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  transform: translateY(10px) scale(.97);
  transition: transform .25s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--paper-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}

.modal-close:hover {
  background: var(--hairline);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal .eyebrow {
  margin-bottom: 18px;
}

.modal h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.modal-subtext {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ash);
  margin: 0 0 26px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--ink);
}

.form-captcha .captcha-question {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--paper-soft);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

.form-error {
  font-size: 13px;
  font-weight: 600;
  color: #b3261e;
  margin: -6px 0 16px;
}

.form-submit {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: .8;
  cursor: not-allowed;
}

.form-submit.is-loading .btn-label {
  visibility: hidden;
}

.btn-spinner {
  display: none;
}

.form-submit.is-loading .btn-spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-field input:disabled {
  background: var(--paper-soft);
  color: var(--ash);
}

.modal-success {
  text-align: center;
}

.modal-success h3 {
  margin-bottom: 10px;
}

.modal-success p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ash);
  margin: 0 0 26px;
}

.modal-success .btn {
  width: 100%;
}

@media (max-width: 480px) {
  .modal {
    padding: 28px 22px;
  }
}
