/* World Study Expo — registration form, popup and CTA-bar embed (8 Oct 2026).
   Same style family as the worldaiexpo.io lead popup: white panel, thin accent line, short intro, compact
   two-column form, small labels, one primary button. Site tokens for colours and type. */
.wse-reg{position:relative;background:#fff;color:var(--text,#1A2230);border:1px solid var(--line-strong,#CBD2DC);border-radius:12px;padding:1.15rem 1.2rem 1.25rem;box-shadow:0 1px 2px rgba(11,30,61,.05),0 10px 30px rgba(11,30,61,.08);font-family:var(--body,"IBM Plex Sans",sans-serif);max-width:100%;text-align:left;overflow:hidden}
.wse-reg::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--navy,#0B1E3D),var(--blue,#1B54A8) 55%,var(--gold,#C9A227))}
.wse-reg *{box-sizing:border-box}
/* Intro — the call to action above the form */
.wse-intro{margin:0 0 .8rem;padding-right:2.4rem}
.wse-intro[hidden]{display:none}
.wse-badge{display:inline-block;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-dark,#7A600C);background:var(--gold-tint,#FAF4E2);border:1px solid #EAD9A5;border-radius:999px;padding:.26rem .6rem;margin-bottom:.5rem}
.wse-intro-title{font-family:var(--display,Georgia,serif);font-size:1.15rem;line-height:1.25;margin:0 0 .25rem;color:var(--navy,#0B1E3D)}
.wse-intro-text{margin:0;font-size:.84rem;line-height:1.5;color:var(--muted,#5F6B7C)}
.wse-title{font-family:var(--display,Georgia,serif);font-size:1.1rem;line-height:1.25;margin:0 0 .25rem;color:var(--navy,#0B1E3D)}
.wse-title[hidden],.wse-sub[hidden]{display:none}
.wse-sub{margin:0 0 .8rem;color:var(--muted,#5F6B7C);font-size:.84rem;line-height:1.5}
.wse-sub:empty{display:none}
/* Form grid */
.wse-form{display:grid;grid-template-columns:1fr 1fr;gap:.55rem .7rem;align-items:start}
.wse-form .full{grid-column:1/-1}
.wse-field{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.wse-field label{font-size:.76rem;font-weight:600;color:var(--navy,#0B1E3D)}
.wse-req{color:var(--red,#C8102E);font-weight:600}
.wse-reg input[type=text],.wse-reg input[type=email],.wse-reg input[type=tel],.wse-reg select,.wse-reg textarea{font-family:inherit;font-size:.85rem;color:var(--text,#1A2230);padding:.5rem .65rem;border:1px solid var(--line-strong,#CBD2DC);border-radius:7px;background:#fff;width:100%;min-width:0;line-height:1.3}
.wse-reg select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6B7C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .55rem center;padding-right:2rem}
.wse-reg input::placeholder,.wse-reg textarea::placeholder{color:#8794AD}
.wse-reg input:focus,.wse-reg select:focus,.wse-reg textarea:focus{outline:none;border-color:var(--blue,#1B54A8);box-shadow:0 0 0 3px rgba(27,84,168,.16)}
.wse-reg .is-invalid,.wse-reg input.is-invalid,.wse-field.is-invalid select{border-color:var(--red,#C8102E)!important}
/* Phone row: ISD picker + number */
.wse-phone{display:grid;grid-template-columns:112px 1fr;gap:.45rem}
.wse-isd{position:relative}
.wse-isd-input{font-weight:600}
.wse-isd-menu{position:absolute;z-index:40;top:calc(100% + 4px);left:0;min-width:280px;max-width:min(92vw,360px);max-height:240px;overflow:auto;background:#fff;border:1px solid var(--line-strong,#CBD2DC);border-radius:10px;box-shadow:0 12px 32px rgba(11,30,61,.14)}
.wse-isd-opt{padding:.5rem .7rem;font-size:.84rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wse-isd-opt:hover,.wse-isd-opt.is-active{background:var(--blue-tint,#E9F0FA)}
.wse-isd-empty{padding:.6rem .7rem;color:var(--muted,#5F6B7C);font-size:.82rem}
/* Consent + button */
.wse-terms{display:flex;gap:.55rem;align-items:flex-start;font-size:.78rem;line-height:1.45;color:var(--muted,#5F6B7C);padding:.1rem 0;border-radius:6px}
.wse-terms.is-invalid{outline:2px solid var(--red,#C8102E);outline-offset:4px}
.wse-terms input{width:18px;height:18px;flex:none;margin-top:.05rem;accent-color:var(--blue,#1B54A8)}
.wse-terms a{color:var(--blue,#1B54A8);text-decoration:underline}
.wse-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.wse-submit{display:inline-flex;align-items:center;justify-content:center;width:auto;font-family:inherit;font-size:.88rem;font-weight:700;line-height:1;padding:.62rem 1.2rem;border-radius:8px;border:0;cursor:pointer;color:#fff;background:linear-gradient(90deg,var(--blue,#1B54A8),var(--navy,#0B1E3D));box-shadow:0 6px 16px rgba(27,84,168,.25);transition:transform .15s,box-shadow .15s,opacity .15s;margin-top:.15rem}
.wse-submit:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(27,84,168,.3)}
.wse-submit[disabled]{opacity:.7;cursor:wait;transform:none}
.wse-msg{font-size:.8rem;padding:.55rem .7rem;border-radius:7px;margin-bottom:.6rem}
.wse-msg.err{background:#FDECEC;color:#8A0B1E;border:1px solid #F3B6B6}
.wse-msg.ok{background:#E7F6EF;color:#0E7A55;border:1px solid #A5D9C1}
.wse-pills{display:flex;flex-wrap:wrap;gap:.4rem}
.wse-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border:1px solid var(--line-strong,#CBD2DC);border-radius:999px;font-size:.78rem;cursor:pointer;background:#fff}
.wse-pill input{margin:0;width:14px;height:14px;accent-color:var(--blue,#1B54A8)}
.wse-pill:has(input:checked){border-color:var(--blue,#1B54A8);background:var(--blue-tint,#E9F0FA)}
.wse-actions{display:flex;gap:.9rem;align-items:center;flex-wrap:wrap}
.wse-actions .wse-submit{width:auto}
.wse-skip{background:none;border:0;color:var(--muted,#5F6B7C);text-decoration:underline;cursor:pointer;font:inherit;font-size:.82rem}
.wse-thanks p{margin:0;font-size:.9rem;line-height:1.5}
.wse-thanks a{color:var(--blue,#1B54A8)}
/* Inside a call-to-action bar */
.ctabar .wse-reg{margin-top:1.2rem}
.ctabar.dark .wse-reg{color:var(--text,#1A2230)}
/* Popup — same model as the worldaiexpo.io lead modal */
.wse-popup{position:fixed;inset:0;z-index:9999;background:rgba(5,13,31,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:wse-fade .22s ease-out}
.wse-popup-card{position:relative;width:100%;max-width:520px;max-height:min(90dvh,calc(100vh - 2rem));overflow:auto;border-radius:14px;background:#fff;box-shadow:0 24px 64px rgba(0,0,0,.35);animation:wse-rise .25s ease-out;scrollbar-width:none}
.wse-popup-card::-webkit-scrollbar{display:none}
.wse-popup-card .wse-reg{border:0;border-radius:14px;box-shadow:none;padding:1.1rem 1.1rem 1.2rem}
.wse-close{position:absolute;top:.6rem;right:.6rem;z-index:2;width:34px;height:34px;border:1px solid var(--line,#E1E5EB);border-radius:50%;background:#fff;font-size:22px;line-height:1;color:var(--muted,#5F6B7C);cursor:pointer;display:flex;align-items:center;justify-content:center}
.wse-close:hover{color:var(--navy,#0B1E3D);border-color:var(--blue,#1B54A8);background:var(--grey-bg,#F5F6F8)}
html.wse-lock,html.wse-lock body{overflow:hidden}
@keyframes wse-fade{from{opacity:0}to{opacity:1}}
@keyframes wse-rise{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@media (max-width:640px){.wse-reg{padding:1rem}.wse-form{grid-template-columns:1fr}.wse-phone{grid-template-columns:104px 1fr}.wse-popup{align-items:flex-end;padding:0}.wse-popup-card{max-height:92dvh;border-radius:14px 14px 0 0;animation:none}}
@media (prefers-reduced-motion:reduce){.wse-popup,.wse-popup-card{animation:none}.wse-submit{transition:none}}
