/* 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
  }
}


/* Aether high-fidelity demo request redesign - presentation only, existing behavior preserved */
.aether-demo-modal{max-width:min(940px,calc(100vw - 32px));font-family:Inter,"Segoe UI",Arial,sans-serif;color:#07164c}
.aether-demo-modal::backdrop{background:rgba(3,14,43,.62);backdrop-filter:blur(6px)}
.aether-demo-modal .adm-card{isolation:isolate;border-radius:24px;padding:30px 46px 72px;box-shadow:0 30px 95px rgba(4,18,57,.34);border:1px solid #dce8f8;max-height:calc(100dvh - 36px);overflow:auto;background:linear-gradient(160deg,#fff 15%,#f9fbff 82%,#e6f2ff 100%)}
.aether-demo-modal .adm-card::before{content:"";position:absolute;right:-18%;top:-32%;width:67%;height:58%;border-radius:0 0 0 100%;background:linear-gradient(140deg,rgba(219,236,255,.15),rgba(174,209,254,.56));pointer-events:none;z-index:-1}
.aether-demo-modal .adm-card::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:75px;background:url('assets/aether-wave-bottom.svg') center bottom / 100% 100% no-repeat;pointer-events:none;z-index:-1}
.aether-demo-modal .adm-brand{display:flex;gap:8px;align-items:center;margin-bottom:21px;position:relative;z-index:1}
.aether-demo-modal .adm-brand img{width:43px;height:43px;object-fit:contain}
.aether-demo-modal .adm-brand span{display:flex;flex-direction:column;gap:0;line-height:1.03}
.aether-demo-modal .adm-brand strong{font-size:26px;font-weight:780;letter-spacing:-.065em;color:#07164c}
.aether-demo-modal .adm-brand small{font-size:12px;color:#07164c;font-weight:600;letter-spacing:-.03em}
.aether-demo-modal .adm-close{z-index:3;top:22px;right:26px;height:44px;width:44px;background:rgba(235,243,255,.85);color:#07164c;font-size:29px;font-weight:300;border-radius:50%}
.aether-demo-modal .adm-close:hover{background:#cfe4ff}
.aether-demo-modal .adm-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(33px,4.2vw,49px);font-weight:700;line-height:1.08;letter-spacing:-.045em;margin:0 0 9px}
.aether-demo-modal .adm-sub{font-size:15.5px;color:#263761;line-height:1.5;margin:0 0 28px}
.aether-demo-modal .adm-row{gap:26px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.aether-demo-modal .adm-field{font-size:13px;color:#07164c;font-weight:760;margin-bottom:21px;line-height:1.4}
.aether-demo-modal .adm-req{color:#142657}
.aether-demo-modal .adm-opt{font-weight:450;color:#647694}
.aether-demo-modal .adm-control{display:block;position:relative;margin-top:8px}
.aether-demo-modal .adm-control-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:22px;font-weight:400;line-height:1;color:#16427e;z-index:1}
.aether-demo-modal .adm-message .adm-control-icon{top:25px}
.aether-demo-modal input,.aether-demo-modal textarea{margin:0;width:100%;padding:14px 15px 14px 48px;font-size:14px;font-weight:420;border:1.2px solid #aebed9;border-radius:10px;box-shadow:0 1px 3px rgba(7,22,76,.03);background:rgba(255,255,255,.92);color:#07164c}
.aether-demo-modal input{height:52px}
.aether-demo-modal textarea{min-height:98px;resize:vertical;padding-top:17px}
.aether-demo-modal input::placeholder,.aether-demo-modal textarea::placeholder{color:#61718e;opacity:.88}
.aether-demo-modal .adm-actions{align-items:center;gap:12px;margin-top:5px;position:relative;z-index:1}
.aether-demo-modal .adm-btn{font-size:14px;border-radius:10px;min-height:47px;padding:11px 22px}
.aether-demo-modal .adm-primary{background:#0759ed;box-shadow:0 3px 8px rgba(11,124,255,.12);display:inline-flex;align-items:center;gap:14px;justify-content:center}
.aether-demo-modal .adm-primary:hover{background:#004bd5}
.aether-demo-modal .adm-secondary{border-color:#b9c8e0;background:rgba(255,255,255,.93);color:#07164c}
.aether-demo-modal .adm-check{background:#e1efff;color:#0b7cff}
@media(max-width:690px){.aether-demo-modal .adm-card{padding:24px 19px 76px;border-radius:17px}.aether-demo-modal .adm-brand{margin-bottom:15px}.aether-demo-modal .adm-brand strong{font-size:23px}.aether-demo-modal .adm-title{font-size:35px}.aether-demo-modal .adm-sub{font-size:14px;margin-bottom:19px}.aether-demo-modal .adm-row{grid-template-columns:1fr;gap:0}.aether-demo-modal .adm-field{margin-bottom:13px}.aether-demo-modal input{height:47px}.aether-demo-modal textarea{min-height:82px}.aether-demo-modal .adm-btn{padding:9px 12px}.aether-demo-modal .adm-card::after{height:52px}}


/* Review 2: compact, no unnecessary interior scroll, centered close icon and supplied pictograms */
.aether-demo-modal{width:min(670px,calc(100vw - 28px));max-width:min(670px,calc(100vw - 28px));max-height:calc(100dvh - 16px);overflow:visible}
.aether-demo-modal .adm-card{padding:19px 29px 41px;max-height:none;overflow:visible;border-radius:17px;box-shadow:0 18px 56px rgba(4,18,57,.26)}
.aether-demo-modal .adm-card::before{height:47%;width:53%;right:-14%;top:-28%}
.aether-demo-modal .adm-card::after{height:44px}
.aether-demo-modal .adm-brand{margin-bottom:6px;gap:4px}
.aether-demo-modal .adm-brand img{width:31px;height:31px;object-fit:contain}
.aether-demo-modal .adm-brand strong{font-size:22px}
.aether-demo-modal .adm-brand small{font-size:10px}
.aether-demo-modal .adm-title{font-size:34px;line-height:1.12;margin-bottom:4px}
.aether-demo-modal .adm-sub{font-size:12px;line-height:1.5;margin-bottom:15px;max-width:570px}
.aether-demo-modal .adm-row{gap:15px}
.aether-demo-modal .adm-field{font-size:12px;margin-bottom:11px;font-weight:700}
.aether-demo-modal .adm-control{margin-top:5px}
.aether-demo-modal .adm-control-icon{left:11px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:0}
.aether-demo-modal .adm-control-icon img{width:18px;height:18px;object-fit:contain;display:block}
.aether-demo-modal .adm-message .adm-control-icon{top:18px}
.aether-demo-modal input,.aether-demo-modal textarea{border-radius:8px;padding-left:39px;font-size:12px;border-color:#bccbe1}
.aether-demo-modal input{height:39px}
.aether-demo-modal textarea{min-height:66px;height:66px;resize:none;padding-top:12px}
.aether-demo-modal .adm-actions{gap:9px;margin-top:6px}
.aether-demo-modal .adm-btn{min-height:37px;padding:8px 14px;font-size:12px;border-radius:8px}
.aether-demo-modal .adm-close{position:absolute;top:15px;right:17px;display:flex;align-items:center;justify-content:center;padding:0;width:30px;height:30px;min-width:30px;min-height:30px;font-family:Arial,sans-serif;line-height:1;font-size:21px;font-weight:400;border-radius:50%;background:#e7f0ff;color:#07164c;box-sizing:border-box}
.aether-demo-modal .adm-close:hover{background:#cee3ff}
.aether-demo-modal .adm-check{margin-top:15px}
@media(max-width:620px){
  .aether-demo-modal .adm-card{padding:17px 19px 44px;border-radius:14px}
  .aether-demo-modal .adm-brand{margin-bottom:6px}
  .aether-demo-modal .adm-brand img{width:28px;height:28px}
  .aether-demo-modal .adm-title{font-size:29px}
  .aether-demo-modal .adm-sub{margin-bottom:10px}
  .aether-demo-modal .adm-row{grid-template-columns:1fr;gap:0}
  .aether-demo-modal .adm-field{margin-bottom:8px}
  .aether-demo-modal input{height:37px}
  .aether-demo-modal textarea{min-height:55px;height:55px}
  .aether-demo-modal .adm-close{top:12px;right:12px}
}
/* Real scroll is necessary on very short viewports or zoomed screens to keep submit accessible. */
@media(max-height:610px){.aether-demo-modal{overflow-y:auto;max-height:calc(100dvh - 12px)}.aether-demo-modal .adm-card{padding-top:12px;padding-bottom:22px}}
/* Clip the decorative art at the dialog boundary without creating an inner scrollbar. */
.aether-demo-modal .adm-card{overflow:hidden}
.aether-demo-modal .adm-close{border:0;outline:none}
.aether-demo-modal .adm-close:focus-visible{outline:2px solid #0b7cff;outline-offset:2px}
