/*
 * SBS Website Update – "Talk to an Admissions Advisor" + "Download Brochure" popups
 * @author Sameer Ali
 */
.sbs-pop{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px;font-family:Poppins,Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.sbs-pop.is-open{display:flex}
.sbs-pop *,.sbs-pop *::before,.sbs-pop *::after{box-sizing:border-box}
.sbs-pop__overlay{position:absolute;inset:0;background:rgba(6,18,36,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:sbsPopFade .25s ease}
.sbs-pop__box{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);width:100%;max-width:880px;max-height:calc(100vh - 40px);overflow:hidden;background:#fff;border-radius:22px;box-shadow:0 40px 100px rgba(0,0,0,.45);animation:sbsPopIn .38s cubic-bezier(.2,.9,.3,1.15)}
@keyframes sbsPopIn{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
@keyframes sbsPopFade{from{opacity:0}to{opacity:1}}
.sbs-pop__x{position:absolute;top:14px;right:14px;z-index:3;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:#f1f3f6;color:#0B1F3A;cursor:pointer;transition:background .2s,transform .2s}
.sbs-pop__x:hover{background:#E43D30;color:#fff;transform:rotate(90deg)}

/* --- left visual panel --- */
.sbs-pop__side{position:relative;display:flex;flex-direction:column;justify-content:center;padding:44px 36px;overflow:hidden;color:#fff;background:radial-gradient(120% 90% at 0% 0%,#1d4f8f 0%,#0B1F3A 58%,#081629 100%)}
.sbs-pop__side::before{content:"";position:absolute;width:300px;height:300px;right:-120px;bottom:-120px;border-radius:50%;background:radial-gradient(circle,rgba(228,61,48,.55),rgba(228,61,48,0) 70%)}
.sbs-pop__side::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.09) 1px,transparent 1px);background-size:18px 18px;-webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 70%);mask-image:linear-gradient(180deg,#000 0%,transparent 70%)}
.sbs-pop__side>*{position:relative;z-index:1}
.sbs-pop__badge{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin-bottom:20px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#FF8A80}
.sbs-pop__eyebrow{display:inline-block;margin-bottom:10px;color:#FF8A80;font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase}
.sbs-pop__sidetitle{margin:0 0 22px;color:#fff;font-family:Poppins,Roboto,Arial,sans-serif;font-size:24px;font-weight:700;line-height:1.28}
.sbs-pop__list{margin:0;padding:0;list-style:none}
.sbs-pop__list li{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;padding:0;color:rgba(255,255,255,.92);font-size:14.5px;line-height:1.45}
.sbs-pop__list svg{flex:none;width:24px;height:24px;padding:4px;border-radius:50%;background:#E43D30;color:#fff}
.sbs-pop__sidefoot{margin:16px 0 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.62);font-size:12.5px;line-height:1.6}

/* brochure booklet illustration */
.sbs-pop__book{position:relative;width:118px;height:150px;margin:0 0 26px 6px;transform:rotate(-6deg)}
.sbs-pop__book-back{position:absolute;inset:8px -8px -8px 8px;border-radius:6px 10px 10px 6px;background:#E43D30;opacity:.9}
.sbs-pop__book-cover{position:absolute;inset:0;display:flex;flex-direction:column;padding:16px 14px;border-radius:5px 10px 10px 5px;background:linear-gradient(160deg,#ffffff 0%,#e9eef6 100%);box-shadow:0 18px 30px rgba(0,0,0,.35),inset 6px 0 0 #004A98}
.sbs-pop__book-logo{color:#004A98;font-size:20px;font-weight:800;letter-spacing:1px}
.sbs-pop__book-line{width:30px;height:3px;margin:6px 0 12px;background:#E43D30;border-radius:2px}
.sbs-pop__book-t{color:#0B1F3A;font-size:12px;font-weight:700;line-height:1.25}
.sbs-pop__book-year{margin-top:auto;color:#6b7686;font-size:10px;font-weight:600;letter-spacing:1px}

/* --- right form panel --- */
.sbs-pop__main{position:relative;padding:40px 40px 30px;overflow-y:auto;max-height:calc(100vh - 40px)}
.sbs-pop__head{margin:0 0 22px;padding-right:34px}
.sbs-pop__head h3{margin:0 0 8px;color:#0B1F3A;font-family:Poppins,Roboto,Arial,sans-serif;font-size:26px;font-weight:700;line-height:1.2}
.sbs-pop__head p{margin:0;color:#5b6575;font-size:14.5px;line-height:1.55}
.sbs-pop__form{margin:0}
.sbs-pop__f{margin:0 0 15px}
.sbs-pop__f label{display:block;margin:0 0 7px;color:#0B1F3A;font-size:13.5px;font-weight:600;line-height:1.3}
.sbs-pop__f label b{color:#E43D30;font-weight:700}
.sbs-pop__f input,.sbs-pop__f select{display:block;width:100%;height:50px;margin:0;padding:0 16px;border:1.5px solid #dde2ea;border-radius:11px;background:#f8fafc;color:#1b2430;font:400 15px/1.2 Poppins,Roboto,Arial,sans-serif;box-shadow:none;transition:border-color .2s,box-shadow .2s,background .2s}
.sbs-pop__f select{padding-right:44px;-webkit-appearance:none;appearance:none;cursor:pointer;background:#f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B1F3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center no-repeat}
.sbs-pop__f input::placeholder{color:#97a0ad}
.sbs-pop__f input:hover,.sbs-pop__f select:hover{border-color:#c3cad6}
.sbs-pop__f input:focus,.sbs-pop__f select:focus{outline:none;border-color:#004A98;background-color:#fff;box-shadow:0 0 0 4px rgba(0,74,152,.12)}
.sbs-pop__f .sbs-err{border-color:#E43D30!important;background-color:#fff6f5!important;box-shadow:0 0 0 4px rgba(228,61,48,.1)!important}
.sbs-pop__hint{display:block;margin:6px 0 0 2px;color:#7a8494;font-size:12px;line-height:1.3}
.sbs-pop__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.sbs-pop__submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;margin:6px 0 0;padding:0 20px;border:0;border-radius:12px;background:linear-gradient(135deg,#1f6b53 0%,#164c3c 100%);color:#fff!important;font:600 16px/1 Poppins,Roboto,Arial,sans-serif;letter-spacing:.2px;text-decoration:none!important;cursor:pointer;box-shadow:0 12px 24px rgba(22,76,60,.28);transition:transform .2s,box-shadow .2s,filter .2s}
.sbs-pop__submit:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(22,76,60,.36);filter:brightness(1.06)}
.sbs-pop__submit--green{background:linear-gradient(135deg,#22c147 0%,#14a134 100%);box-shadow:0 12px 24px rgba(20,161,52,.3);text-transform:uppercase;letter-spacing:.8px}
.sbs-pop__submit--green:hover{box-shadow:0 16px 30px rgba(20,161,52,.38)}
.sbs-pop__submit:disabled{opacity:.7;cursor:wait;transform:none}
.sbs-pop__submit.is-loading::after{content:"";width:16px;height:16px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sbsSpin .7s linear infinite}
@keyframes sbsSpin{to{transform:rotate(360deg)}}
.sbs-pop__note{display:flex;align-items:center;justify-content:center;gap:7px;margin:14px 0 0;color:#7a8494;font-size:12.5px;line-height:1.4;text-align:center}
.sbs-pop__note svg{flex:none}
.sbs-pop__msg{min-height:0;margin:10px 0 0;font-size:13.5px;font-weight:500;text-align:center}
.sbs-pop__msg.bad{color:#B8261B}

/* --- success state --- */
.sbs-pop__done{padding:34px 0 10px;text-align:center;animation:sbsPopFade .3s ease}
.sbs-pop__done[hidden]{display:none}
.sbs-pop__done-ico{display:inline-flex;align-items:center;justify-content:center;width:76px;height:76px;margin-bottom:18px;border-radius:50%;background:#e7f7ec;color:#14a134;box-shadow:0 0 0 10px #f3fbf5}
.sbs-pop__done-ico svg{width:38px;height:38px}
.sbs-pop__done h3{margin:0 0 10px;color:#0B1F3A;font-family:Poppins,Roboto,Arial,sans-serif;font-size:24px;font-weight:700}
.sbs-pop__done-text{margin:0 auto 22px;max-width:360px;color:#5b6575;font-size:15px;line-height:1.6}
.sbs-pop__ghost{display:inline-block;margin-top:4px;padding:10px 26px;border:1.5px solid #dde2ea;border-radius:10px;background:#fff;color:#0B1F3A;font:600 14px Poppins,Roboto,Arial,sans-serif;cursor:pointer;transition:border-color .2s,background .2s}
.sbs-pop__ghost:hover{border-color:#0B1F3A;background:#f6f8fb}
body.sbs-pop-lock{overflow:hidden}

/* --- responsive --- */
@media (max-width:820px){
  .sbs-pop{padding:12px;align-items:flex-end}
  .sbs-pop__box{grid-template-columns:1fr;max-width:520px;max-height:calc(100vh - 24px);overflow-y:auto;border-radius:20px}
  .sbs-pop__main{max-height:none;overflow:visible;padding:26px 22px 22px}
  .sbs-pop__side{flex-direction:row;flex-wrap:wrap;align-items:center;padding:22px 64px 20px 22px}
  .sbs-pop__badge{width:44px;height:44px;margin:0 14px 0 0;border-radius:12px}
  .sbs-pop__book{display:none}
  .sbs-pop__eyebrow{margin:0}
  .sbs-pop__sidetitle{width:100%;margin:8px 0 0;font-size:18px}
  .sbs-pop__list,.sbs-pop__sidefoot{display:none}
  .sbs-pop__x{background:rgba(255,255,255,.14);color:#fff}
  .sbs-pop__head{padding-right:0;margin-bottom:18px}
  .sbs-pop__head h3{font-size:22px}
  .sbs-pop__f{margin-bottom:12px}
  .sbs-pop__f input,.sbs-pop__f select{height:48px;font-size:16px}
}
@media (min-width:821px) and (max-height:760px){
  .sbs-pop__main{padding:26px 36px 18px}
  .sbs-pop__side{padding:30px 32px}
  .sbs-pop__head{margin-bottom:14px}
  .sbs-pop__head h3{font-size:23px;margin-bottom:6px}
  .sbs-pop__f{margin-bottom:10px}
  .sbs-pop__f label{margin-bottom:5px}
  .sbs-pop__f input,.sbs-pop__f select{height:44px}
  .sbs-pop__hint{margin-top:4px}
  .sbs-pop__submit{height:50px}
  .sbs-pop__note{margin-top:10px}
  .sbs-pop__badge{width:50px;height:50px;margin-bottom:14px}
  .sbs-pop__book{width:100px;height:128px;margin-bottom:18px}
}
@media (prefers-reduced-motion:reduce){.sbs-pop__box,.sbs-pop__overlay,.sbs-pop__done{animation:none}.sbs-pop__x:hover{transform:none}}
