/* Shared demo-request modal. Self-contained: no dependency on page CSS variables. */
.aether-demo-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  color: #07164c;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}

.aether-demo-modal::backdrop {
  background: rgba(7, 22, 76, .55);
  backdrop-filter: blur(3px)
}

.aether-demo-modal .adm-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(7, 22, 76, .35);
  max-height: calc(100vh - 32px);
  overflow-y: auto
}

.aether-demo-modal .adm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #5b6a8c;
  cursor: pointer;
  border-radius: 50%
}

.aether-demo-modal .adm-close:hover {
  background: #eef3fb
}

.aether-demo-modal .adm-title {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.02em;
  color: #07164c
}

.aether-demo-modal .adm-sub {
  margin: 0 0 20px;
  color: #5b6a8c
}

.aether-demo-modal .adm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.aether-demo-modal .adm-field {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #20305f
}

.aether-demo-modal .adm-req {
  color: #d6334a
}

.aether-demo-modal .adm-opt {
  color: #7a88a8;
  font-weight: 400
}

.aether-demo-modal input,
.aether-demo-modal textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #cfd8ea;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: #07164c;
  background: #fff
}

.aether-demo-modal textarea {
  resize: vertical
}

.aether-demo-modal input:focus,
.aether-demo-modal textarea:focus {
  outline: 2px solid #0b7cff;
  outline-offset: 1px;
  border-color: #0b7cff
}

.aether-demo-modal input[aria-invalid="true"] {
  border-color: #d6334a
}

.aether-demo-modal .adm-error {
  margin: 0 0 12px;
  color: #d6334a;
  font-size: 13px
}

.aether-demo-modal .adm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px
}

.aether-demo-modal .adm-btn {
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent
}

.aether-demo-modal .adm-primary {
  background: #0b7cff;
  color: #fff
}

.aether-demo-modal .adm-primary:hover {
  background: #0868d7
}

.aether-demo-modal .adm-primary:disabled {
  opacity: .6;
  cursor: default
}

.aether-demo-modal .adm-secondary {
  background: #fff;
  border-color: #cfd8ea;
  color: #20305f
}

.aether-demo-modal .adm-success {
  text-align: center;
  padding: 12px 0
}

.aether-demo-modal .adm-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e3f7ee;
  color: #0e9f6e;
  font-size: 28px;
  line-height: 56px
}

.aether-demo-modal .adm-success .adm-actions {
  justify-content: center
}

@media (max-width:560px) {
  .aether-demo-modal .adm-card {
    padding: 24px 18px
  }

  .aether-demo-modal .adm-row {
    grid-template-columns: 1fr;
    gap: 0
  }
}
