/* JS&A Foreign Education Equivalency Popup (scoped; avoids .modal conflicts) */
:root{
  --jsa-navy:#0b3a62;
  --jsa-navy2:#0a2f50;
  --jsa-ink:#0f172a;
  --jsa-muted:#5b6475;
  --jsa-border:rgba(15,23,42,.12);
  --jsa-bg:#ffffff;
  --jsa-accent:#d4a74a; /* subtle gold */
  --jsa-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.jsa-fee-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.jsa-fee-modal.is-open{ display:block; }

.jsa-fee-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .55s ease;
}

.jsa-fee-modal.is-open .jsa-fee-backdrop{ opacity: 1; }

.jsa-fee-dialog{
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  position:absolute;
  left: 50%;
  top: 50%;
  max-width: 980px;
  width: min(980px, calc(100% - 32px));
  background: var(--jsa-bg);
  border-radius: 16px;
  box-shadow: var(--jsa-shadow);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.2);

  /* Slightly above true center */
  transform: translate(-50%, -56%) scale(.985);
  opacity: 0;

  /* Smooth entrance */
  animation: jsaFeeIn .75s cubic-bezier(.18,.95,.2,1) forwards;
}

@keyframes jsaFeeIn{
  from { opacity: 0; transform: translate(-50%, -49%) scale(.97); }
  to   { opacity: 1; transform: translate(-50%, -56%) scale(1); }
}

.jsa-fee-close{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.jsa-fee-close span{
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.jsa-fee-close:hover{
  transform: scale(1.04);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

.jsa-fee-header{
  background: linear-gradient(90deg, var(--jsa-navy), var(--jsa-navy2));
  padding: 18px 56px 18px 22px;
  display:flex;
  align-items:center;
  gap: 14px;
  color:#fff;
  border-bottom: 3px solid rgba(212,167,74,.55);
}

.jsa-fee-mark{
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  gap:6px;
}

.jsa-fee-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--jsa-accent);
  box-shadow: 0 0 0 4px rgba(212,167,74,.18);
}
.jsa-fee-dot--thin{
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.85);
  box-shadow:none;
}

.jsa-fee-kicker{
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .95;
  white-space: nowrap;
}

.jsa-fee-body{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 0;

  flex: 1;
  overflow: auto;
}


.jsa-fee-left{
  padding: 22px 22px 20px;
}

.jsa-fee-title{
  margin: 0 0 10px;
  color: var(--jsa-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 800;
}

.jsa-fee-copy p{
  margin: 0 0 10px;
  color: var(--jsa-muted);
  font-size: 16px;
  line-height: 1.55;
}

.jsa-fee-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}

.jsa-fee-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--jsa-navy);
  color:#fff !important;
  text-decoration:none;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(11,58,98,.22);
  box-shadow: 0 10px 20px rgba(11,58,98,.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.jsa-fee-cta:hover{
  transform: translateY(-1px);
  background: #0a3357;
  box-shadow: 0 14px 26px rgba(11,58,98,.22);
}

.jsa-fee-footnote{
  margin-top: 14px;
  display:flex;
  gap: 8px;
  align-items:center;
  color: rgba(91,100,117,.9);
  font-size: 12px;
}

.jsa-fee-right{
  background: linear-gradient(180deg, rgba(11,58,98,.06), rgba(11,58,98,.02));
  border-left: 1px solid var(--jsa-border);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.jsa-fee-image{
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--jsa-border);
  box-shadow: 0 12px 24px rgba(15,23,42,.12);
  background:#fff;
}

/* Mobile */
@media (max-width: 820px){
  .jsa-fee-dialog{
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display:flex;
  flex-direction:column; margin-top: 5vh; }
  .jsa-fee-body{ grid-template-columns: 1fr; }
  .jsa-fee-right{
    border-left:none;
    border-top: 1px solid var(--jsa-border);
  }
  .jsa-fee-header{ padding-right: 56px; }
  .jsa-fee-dialog{
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-height: calc(100svh - 24px);
  }

  .jsa-fee-left{
    padding: 18px 16px 16px;
  }

  .jsa-fee-title{
    font-size: 22px;
  }

  .jsa-fee-right{
    padding: 12px 16px 16px;
  }

  .jsa-fee-image{
    max-width: 320px;
    max-height: 240px;
    object-fit: contain;
  }

  .jsa-fee-close{
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.18);
  }
}

@media (prefers-reduced-motion: reduce){
  .jsa-fee-dialog{
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display:flex;
  flex-direction:column; animation:none; transform:none; }
}
