@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');
:root{--forest:#1d5a36;--cream:#f7f5ed;--ink:#24342e;--line:#e3e7df}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 35%,#cad7c055,transparent 35%),radial-gradient(ellipse at 90% 75%,#e7dab744,transparent 30%),var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif;min-height:100vh}.topbar{height:82px;border-bottom:1px solid #183c3218;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1160px)/2),6vw);background:#ffffff94}.brand{display:flex;align-items:center;color:var(--forest);text-decoration:none}.brand img{display:block;width:176px;height:auto;max-height:52px;object-fit:contain;object-position:left center}.secure-label{font-size:12px;color:#66756c}.secure-label i,.eyebrow i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ed8a35;margin-right:8px}main{max-width:1160px;margin:auto;padding:0 28px}.hero{min-height:650px;display:grid;grid-template-columns:1.03fr .97fr;gap:70px;align-items:center;padding:65px 0}.hero-copy{padding-left:35px}.eyebrow{color:#698271;font-size:10px;letter-spacing:2.2px;font-weight:700;margin-bottom:26px}.hero h1{font-family:'Playfair Display',serif;font-size:clamp(48px,5.6vw,72px);line-height:1.08;letter-spacing:-1.8px;color:var(--forest);margin:0 0 23px}.hero h1 em{color:#e38736;font-weight:500;font-style:normal}.hero-copy>p{max-width:390px;line-height:1.75;color:#717d75;font-size:15px}.trust{display:flex;align-items:center;gap:13px;margin-top:54px}.trust-icon{height:42px;width:42px;border-radius:50%;display:grid;place-items:center;color:#67815e;background:#e8ede2;font-size:22px}.trust b,.trust small{display:block}.trust b{font-size:12px;color:#3c5145}.trust small{font-size:11px;color:#89928a;margin-top:4px}.verify-card{background:white;border:1px solid #2f543d14;border-radius:16px;padding:40px 43px 26px;box-shadow:0 24px 65px #2d3e2b17}.card-icon{width:44px;height:44px;background:#edf2e9;color:#657e5d;border-radius:12px;display:grid;place-items:center;font-size:25px}.verify-card h2{font-family:'Playfair Display',serif;color:var(--forest);font-size:29px;margin:22px 0 7px}.card-subtitle{font-size:13px;color:#89918b;margin:0 0 27px}.verify-card label{font-size:11px;font-weight:700;letter-spacing:.5px;display:flex;justify-content:space-between;margin-bottom:9px;color:#34453c}.verify-card label span{font-size:9px;letter-spacing:1px;color:#a1a99f;font-weight:500}.input-wrap{height:50px;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;padding:0 14px}.input-wrap:focus-within{border-color:#789477;box-shadow:0 0 0 3px #7894771f}.input-wrap input{height:100%;border:0;outline:0;background:transparent;flex:1;min-width:0;color:var(--ink);font:13px 'DM Sans',sans-serif}.input-wrap input::placeholder{color:#b0b6b0}.input-icon{color:#9aa69a;width:24px;display:inline-flex;align-items:center}.input-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.or{display:flex;align-items:center;gap:12px;color:#a4aba3;font-size:9px;letter-spacing:1px;margin:16px 0}.or:before,.or:after{content:'';height:1px;background:#edf0eb;flex:1}.submit-btn{height:52px;border:0;border-radius:7px;background:var(--forest);color:white;width:100%;margin-top:23px;font:600 13px 'DM Sans',sans-serif;cursor:pointer;position:relative}.submit-btn:hover{background:#e38736}.submit-btn:disabled{opacity:.85;cursor:wait}.arrow{font-size:18px;position:absolute;right:18px;top:13px}.spinner{display:none;width:17px;height:17px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;margin-left:9px}.loading .spinner{display:inline-block}.loading .arrow{display:none}@keyframes spin{to{transform:rotate(360deg)}}.form-error{font-size:11px;color:#b6473e;min-height:0;margin:9px 0 -9px}.privacy{text-align:center;font-size:10px;color:#a0a8a0;margin-top:22px}.privacy span{color:#7d9875;font-size:14px;margin-right:5px}.result{max-width:740px;margin:0 auto 50px;background:white;border-radius:14px;padding:30px 34px;border:1px solid var(--line);box-shadow:0 16px 40px #2d3e2b14;animation:rise .35s ease}.result[hidden]{display:none}.result-head{display:flex;align-items:center;gap:14px;padding-bottom:22px;border-bottom:1px solid var(--line)}.result-check{height:42px;width:42px;border-radius:50%;display:grid;place-items:center;background:#e9f2e7;color:#50814b;font-size:20px}.result-head h3{font:23px 'Playfair Display',serif;color:var(--forest);margin:0 0 4px}.result-head p{font-size:12px;color:#7d897f;margin:0}.verified-pill{margin-left:auto;background:#eff5ed;color:#52784e;border-radius:20px;padding:7px 11px;font-size:10px;font-weight:700}.details{display:grid;grid-template-columns:1fr 1fr;gap:0 32px}.detail{padding:17px 0;border-bottom:1px solid #eff1ed}.detail span{display:block;text-transform:uppercase;font-size:9px;letter-spacing:1px;font-weight:700;color:#94a096;margin-bottom:7px}.detail strong{font-size:14px;font-weight:600;color:#33463a}.course-duration{grid-column:1/-1}.result-note{font-size:11px;color:#8d978e;margin:20px 0 0}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;display:flex;align-items:center;gap:12px;background:#302d29;color:white;border-radius:9px;padding:14px 14px 14px 17px;box-shadow:0 10px 32px #18251d42;font-size:13px;transition:opacity .25s,transform .25s;z-index:5;white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}.toast-icon{display:grid;place-items:center;width:20px;height:20px;border:1px solid #e4a18e;color:#f0a18a;border-radius:50%}.toast button{border:0;background:none;color:#bdbbb5;font-size:20px;cursor:pointer;margin-left:8px}footer{height:65px;border-top:1px solid #183c321a;display:flex;justify-content:space-between;align-items:center;color:#89938a;font-size:10px}@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:800px){.brand img{width:152px}.hero{grid-template-columns:1fr;gap:45px;padding:55px 12px}.hero-copy{padding-left:0}.trust{margin-top:29px}.verify-card{max-width:540px;width:100%;margin:auto}.hero h1{font-size:58px}.topbar{padding:0 25px}}@media(max-width:520px){.topbar{height:70px}.secure-label{font-size:10px}.hero{padding:42px 0;gap:35px}.hero h1{font-size:49px}.verify-card{padding:30px 23px 22px}.result{padding:24px 20px;margin-bottom:35px}.details{grid-template-columns:1fr}.course-duration{grid-column:auto}.verified-pill{font-size:9px}footer{height:auto;padding:18px 0;gap:10px;align-items:flex-start;flex-direction:column}}

/* Make the verification miss notice readable, easy to dismiss, and visible longer. */
.toast{top:24px;bottom:auto;width:min(460px,calc(100vw - 32px));min-height:78px;transform:translate(-50%,-14px);gap:14px;align-items:center;white-space:normal;background:#fff;color:#26362e;border:1px solid #eadfcd;border-left:4px solid #e38736;border-radius:12px;padding:15px 14px 15px 17px;box-shadow:0 16px 42px #183c3240;font-size:13px;z-index:20}
.toast.visible{transform:translate(-50%,0)}
.toast-icon{flex:0 0 34px;width:34px;height:34px;border:0;background:#fff3e5;color:#b65c28;font-size:18px;font-weight:700}
.toast-copy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.toast-copy strong{font-size:13px;color:#234532}
.toast-copy small{font-size:12px;line-height:1.45;color:#68746b}
.toast button.toast-close{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;margin-left:auto;padding:0;border-radius:8px;background:#f4f6f2;color:#637168;font-size:22px;line-height:1}
.toast button.toast-close:hover{background:#e8eee6;color:#234532}
@media(max-width:520px){.toast{top:14px;padding:13px 10px 13px 13px;gap:10px}.toast-copy small{font-size:11px}}

/* Center the not-found dialog and temporarily dim and soften the page behind it. */
body.modal-open{overflow:hidden}
.toast{inset:0;top:0;left:0;bottom:0;width:auto;min-height:0;display:grid;place-items:center;padding:24px;transform:none;visibility:hidden;opacity:0;pointer-events:none;white-space:normal;background:rgba(18,35,27,.56);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:0;border-radius:0;box-shadow:none;z-index:100;transition:opacity .22s ease,visibility .22s ease}
.toast.visible{opacity:1;transform:none;visibility:visible;pointer-events:auto}
.toast-dialog{width:min(460px,100%);min-height:96px;display:flex;align-items:center;gap:14px;padding:20px;background:#fff;border:1px solid #eadfcd;border-left:5px solid #e38736;border-radius:14px;box-shadow:0 24px 70px #101d1690;transform:translateY(10px) scale(.98);transition:transform .22s ease}
.toast.visible .toast-dialog{transform:translateY(0) scale(1)}
@media(max-width:520px){.toast-dialog{gap:11px;padding:17px 14px}}
@media(prefers-reduced-motion:reduce){.toast,.toast-dialog{transition:none}}

/* Show a successful certificate record as the same centered modal treatment. */
.result{position:fixed;inset:0;z-index:90;display:grid;place-items:center;width:auto;max-width:none;margin:0;padding:24px;overflow:auto;background:rgba(18,35,27,.56);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:0;border-radius:0;box-shadow:none;opacity:0;visibility:hidden;pointer-events:none;transform:none;transition:opacity .22s ease,visibility .22s ease}
.result[hidden]{display:none}
.result.visible{display:grid;opacity:1;visibility:visible;pointer-events:auto}
.result-dialog{width:min(1110px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px 34px;box-shadow:0 24px 70px #101d1690;animation:rise .25s ease}
.result-actions{display:flex;justify-content:flex-end;margin-top:18px}
.result-close{min-width:94px;height:38px;padding:0 18px;border:1px solid #dfe7dc;border-radius:7px;background:#f5f8f3;color:#285744;font:600 12px 'DM Sans',sans-serif;cursor:pointer;transition:background .18s,color .18s}
.result-close:hover{background:var(--forest);border-color:var(--forest);color:#fff}
.result-close:focus-visible,.toast-close:focus-visible{outline:3px solid #e38736;outline-offset:3px}
@media(max-width:520px){.result{padding:16px}.result-dialog{max-height:calc(100vh - 32px);padding:24px 20px}.result-actions{margin-top:15px}}
@media(prefers-reduced-motion:reduce){.result,.result-dialog{animation:none;transition:none}}

.result-close{background:#e38736;border-color:#e38736;color:#fff}.result-close:hover{background:#c96f22;border-color:#c96f22;color:#fff}

/* Give the verification badge a warm gold treatment with outward-fading sparkles. */
.verified-pill{position:relative;overflow:visible;background:#fff3cb;color:#8b6419;border:1px solid #e9ca72;box-shadow:0 3px 10px #b885281c}
.verified-pill>span:first-child{position:relative;z-index:1}
.verified-sparkle{position:absolute;left:50%;top:50%;z-index:2;font-style:normal;font-size:9px;line-height:1;color:#d7a62f;opacity:0;pointer-events:none;animation:verified-sparkle-out 2.5s ease-out infinite;will-change:transform,opacity}
.sparkle-one{--sparkle-x:-25px;--sparkle-y:-19px;animation-delay:0s}
.sparkle-two{--sparkle-x:22px;--sparkle-y:-21px;animation-delay:.8s;font-size:8px}
.sparkle-three{--sparkle-x:28px;--sparkle-y:17px;animation-delay:1.6s;font-size:7px}
@keyframes verified-sparkle-out{0%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(0)}15%{opacity:.95}100%{opacity:0;transform:translate(calc(-50% + var(--sparkle-x)),calc(-50% + var(--sparkle-y))) scale(1) rotate(40deg)}}
@media(prefers-reduced-motion:reduce){.verified-sparkle{animation:none;opacity:0}}

/* Increase sparkle contrast and size so the verification animation reads clearly. */
.verified-sparkle{font-size:13px;color:#a96700;text-shadow:0 0 4px #ffe7a2,0 1px 2px #9c660066}
.sparkle-two{font-size:12px}
.sparkle-three{font-size:11px}
@keyframes verified-sparkle-out{0%{opacity:0;transform:translate(-50%,-50%) scale(.45) rotate(0)}12%{opacity:1}38%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--sparkle-x)),calc(-50% + var(--sparkle-y))) scale(1.15) rotate(40deg)}}
