/* ============================================================
   Workspace4You — shared design tokens & components
   Used by apply.html and track.html. index.html and admin.html
   keep their own inline styles untouched (no shared risk).
   ============================================================ */
*{margin:0;padding:0;box-sizing:border-box}
:root{--blue:#0B3A8D;--gold:#F4B400;--dark:#101828;--light:#F8FAFC;--white:#fff;--gray:#6B7280;--lightblue:#E8F0FE;--green:#059669;--red:#DC2626}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;color:var(--dark);background:var(--light);min-height:100vh}
h1,h2,h3,h4{font-family:'Poppins',sans-serif}

/* NAV */
.ws4y-nav{position:sticky;top:0;left:0;right:0;z-index:100;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;background:var(--blue);box-shadow:0 2px 16px rgba(0,0,0,0.12)}
.ws4y-logo{color:#fff;font-family:'Poppins',sans-serif;font-size:20px;font-weight:800;display:flex;align-items:center;gap:10px;text-decoration:none}
.ws4y-logo span{color:var(--gold)}
.ws4y-logo img{width:34px;height:34px;border-radius:50%}
.ws4y-nav-link{color:rgba(255,255,255,0.8);font-size:13px;font-weight:600;text-decoration:none}
.ws4y-nav-link:hover{color:var(--gold)}

.wrap{max-width:680px;margin:0 auto;padding:36px 20px 80px}

/* URGENCY / FAST-FILL DISCOUNT BANNER */
.urgency-banner{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;background:linear-gradient(135deg,#DC2626,#F4B400);color:#fff;font-size:13.5px;font-weight:800;text-align:center;padding:12px 16px;border-radius:14px;margin-bottom:20px;box-shadow:0 6px 22px rgba(220,38,38,0.3);animation:urgencyPulse 1.8s ease-in-out infinite}
.urgency-banner strong{font-size:15px}
#urgencyTimer{font-variant-numeric:tabular-nums;background:rgba(0,0,0,0.18);padding:2px 8px;border-radius:6px;letter-spacing:0.5px}
@keyframes urgencyPulse{0%,100%{transform:scale(1);box-shadow:0 6px 22px rgba(220,38,38,0.3)}50%{transform:scale(1.015);box-shadow:0 8px 28px rgba(220,38,38,0.45)}}

/* PROGRESS TRACKER */
.progress-track{display:flex;gap:6px;margin-bottom:28px;flex-wrap:wrap}
.progress-step{flex:1;min-width:70px;text-align:center;font-size:11px;font-weight:700;color:var(--gray);padding-bottom:8px;border-bottom:3px solid #E5E7EB}
.progress-step.done{color:var(--green);border-color:var(--green)}
.progress-step.active{color:var(--blue);border-color:var(--blue)}

/* CARD */
.card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 4px 28px rgba(11,58,141,0.08);margin-bottom:20px}
.card h2{font-size:24px;font-weight:800;color:var(--dark);margin-bottom:6px}
.card .sub{font-size:14px;color:var(--gray);margin-bottom:24px;line-height:1.6}

/* FORM */
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;font-weight:700;color:var(--dark);margin-bottom:6px}
.form-group .hint{font-weight:400;color:var(--gray);font-size:12px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:13px 16px;border:1.5px solid #E5E7EB;border-radius:10px;font-size:14px;font-family:'Inter',sans-serif;outline:none;color:var(--dark);background:#fff}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,58,141,0.1)}
.form-row{display:flex;gap:12px}
.form-row .form-group{flex:1}
.check-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;font-size:14px;color:var(--dark)}
.check-row input{margin-top:3px}
.radio-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.radio-card{border:2px solid #E5E7EB;border-radius:12px;padding:14px;cursor:pointer;text-align:center;transition:all .2s;font-size:13px;font-weight:700}
.radio-card.selected{border-color:var(--blue);background:var(--lightblue);color:var(--blue)}
.select-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}
@media(max-width:520px){.select-cards,.radio-cards{grid-template-columns:1fr}.form-row{flex-direction:column;gap:0}}

/* BUTTONS */
.btn-primary{width:100%;background:var(--gold);color:var(--dark);padding:15px;border-radius:10px;font-weight:700;font-size:15px;border:none;cursor:pointer;transition:all .2s;font-family:'Poppins',sans-serif}
.btn-primary:hover{background:#e6a800}
.btn-primary:disabled{opacity:.6;cursor:not-allowed}
.btn-secondary{width:100%;background:none;border:1.5px solid #E5E7EB;color:var(--gray);padding:13px;border-radius:10px;font-weight:600;font-size:14px;cursor:pointer;margin-top:10px}
.btn-secondary:hover{border-color:var(--blue);color:var(--blue)}
.btn-link{background:none;border:none;color:var(--blue);font-weight:700;font-size:13px;cursor:pointer;text-decoration:underline}

/* STATUS */
.status-badge{display:inline-block;padding:5px 14px;border-radius:24px;font-size:12px;font-weight:800}
.status-yellow{background:#FEF3C7;color:#92400E}
.status-green{background:#D1FAE5;color:#065F46}
.status-gray{background:#F3F4F6;color:var(--gray)}
.status-red{background:#FEE2E2;color:#991B1B}

.error-msg{color:var(--red);font-size:13px;margin-top:6px;display:none}
.info-box{background:var(--lightblue);border-left:3px solid var(--blue);border-radius:10px;padding:14px 16px;font-size:13px;color:var(--dark);line-height:1.6;margin-bottom:20px}
.warn-box{background:#FFFBEB;border-left:3px solid var(--gold);border-radius:10px;padding:14px 16px;font-size:13px;color:#7c5a00;line-height:1.6;margin-bottom:16px}

/* PRICE SUMMARY */
.price-row{display:flex;justify-content:space-between;padding:8px 0;font-size:14px;border-bottom:1px solid #F3F4F6}
.price-row:last-child{border:none}
.price-total{font-weight:800;font-size:18px;color:var(--blue)}

/* TOAST */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--dark);color:#fff;padding:12px 22px;border-radius:10px;font-size:14px;font-weight:600;z-index:9999;opacity:0;transition:all .3s;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.step{display:none}
.step.active{display:block}

/* TRUST BAR (apply.html) */
.ws4y-trustbar{background:var(--dark);color:rgba(255,255,255,0.85);font-size:12px;font-weight:600;text-align:center;padding:9px 16px;letter-spacing:.2px}
.ws4y-trustbar strong{color:var(--gold)}
.ws4y-trustbar .sep{margin:0 8px;color:rgba(255,255,255,0.3)}

/* APPLY LAYOUT — trust sidebar + wizard */
.apply-shell{max-width:980px;margin:0 auto;padding:36px 20px 0;display:flex;gap:28px;align-items:flex-start}
.apply-shell .wrap{flex:1;min-width:0;margin:0;padding:0 0 60px}
.trust-sidebar{width:300px;flex-shrink:0;align-self:flex-start}
.trust-card{background:#fff;border-radius:20px;box-shadow:0 4px 28px rgba(11,58,141,0.08);overflow:hidden;margin-bottom:14px}

/* PHOTO SLIDESHOW */
.trust-slideshow{position:relative;width:100%;height:190px;overflow:hidden;background:var(--dark);touch-action:pan-y}
.trust-slideshow .slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease}
.trust-slideshow .slide.active{opacity:1}
.trust-slideshow::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,0.55) 100%);pointer-events:none}
.slide-tag{position:absolute;top:12px;right:12px;z-index:2;background:linear-gradient(135deg,var(--gold),#ffce3d);color:var(--dark);font-size:10.5px;font-weight:800;padding:5px 11px;border-radius:20px;transform:rotate(3deg);box-shadow:0 4px 14px rgba(244,180,0,.45)}
.slide-caption{position:absolute;left:12px;bottom:26px;z-index:2;color:#fff;font-size:12.5px;font-weight:700;letter-spacing:.2px;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.slide-dots{position:absolute;left:0;right:0;bottom:10px;z-index:2;display:flex;justify-content:center;gap:5px}
.slide-dots .dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,0.5);cursor:pointer;transition:all .25s}
.slide-dots .dot.active{width:18px;border-radius:4px;background:#fff}

/* TYPOGRAPHY + STAT PILLS */
.trust-card-body{padding:20px 18px 18px}
.trust-headline{font-family:'Poppins',sans-serif;font-size:18px;font-weight:800;line-height:1.28;color:var(--dark);margin-bottom:5px}
.trust-headline .grad{background:linear-gradient(135deg,var(--blue) 15%,#2f6fe0 55%,var(--gold) 110%);-webkit-background-clip:text;background-clip:text;color:transparent}
.trust-sub{font-size:12.5px;color:var(--gray);margin-bottom:14px}
.stat-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.stat-pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;padding:6px 11px;border-radius:20px;background:var(--lightblue);color:var(--blue);white-space:nowrap}
.stat-pill.gold{background:#FEF3C7;color:#92400E}
.stat-pill.green{background:#D1FAE5;color:#065F46}

.trust-row{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;color:var(--gray);margin-bottom:11px;line-height:1.5}
.trust-row:last-child{margin-bottom:0}
.trust-row svg{flex-shrink:0;margin-top:2px;color:var(--blue)}
.trust-row a{color:var(--blue);font-weight:700;text-decoration:none}

/* TESTIMONIAL CAROUSEL */
.trust-testi{position:relative;background:#fff;border-radius:16px;box-shadow:0 4px 28px rgba(11,58,141,0.08);padding:18px 18px 34px;margin-bottom:14px;min-height:96px}
.trust-testi .t-slide{display:none}
.trust-testi .t-slide.active{display:block;animation:testiIn .4s ease}
@keyframes testiIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.trust-testi .stars{color:var(--gold);font-size:12px;margin-bottom:6px;letter-spacing:1px}
.trust-testi p{font-size:12.5px;color:var(--dark);line-height:1.6;font-style:italic;margin-bottom:10px}
.trust-testi .who{display:flex;align-items:center;gap:8px}
.trust-testi .avatar{width:27px;height:27px;border-radius:50%;background:linear-gradient(135deg,var(--blue),#2f6fe0);color:#fff;font-size:10.5px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.trust-testi .who-text{font-size:11px;line-height:1.4;color:var(--gray);font-weight:700}
.t-dots{position:absolute;right:18px;bottom:14px;display:flex;gap:5px}
.t-dots .dot{width:5px;height:5px;border-radius:50%;background:#E5E7EB;cursor:pointer;transition:all .2s}
.t-dots .dot.active{width:14px;border-radius:3px;background:var(--blue)}

.trust-secure{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--gray);padding:14px 18px;background:#fff;border-radius:16px;box-shadow:0 4px 28px rgba(11,58,141,0.08)}

@media(max-width:860px){
  .apply-shell{flex-direction:column;padding:16px 20px 0;gap:14px}
  /* On mobile, DOM order = scroll order (flex-direction:column), and the
     sidebar comes first in the HTML (it's the left column on desktop) —
     without this, someone has to scroll past the whole photo/headline/
     testimonial block before ever reaching the actual form, which is
     very likely why real visitors load the page (creating a draft) but
     never get as far as typing their name. Reordering visually here
     keeps the desktop DOM/JS untouched and just puts the form first. */
  .wrap{order:-1}
  .trust-sidebar{width:100%}
  .trust-slideshow{height:160px}
  .trust-secure{display:none}
  .trust-testi{display:none}
}

/* FOOTER (apply.html) */
.ws4y-footer{text-align:center;font-size:11.5px;color:var(--gray);padding:18px 20px 28px;line-height:1.6}

/* TIMELINE (Track Application) */
.timeline{list-style:none}
.timeline li{display:flex;align-items:flex-start;gap:12px;padding:10px 0;font-size:14px}
.timeline .dot{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex-shrink:0;background:#E5E7EB;color:var(--gray)}
.timeline .dot.done{background:var(--green);color:#fff}
.timeline .dot.active{background:var(--gold);color:var(--dark)}
