/* ============================================================
   LocumSmart — Redesign Tokens + Shared Components
   Load this ONCE from base.html. All redesigned public pages
   use these tokens; per-page files hold page-specific overrides.
   ============================================================ */

:root {
  --teal: #1BA39C; --teal-dark: #148982; --teal-darker: #0F6B66;
  --mint: #B3E5DB; --mint-light: #E7F6F3;
  --blue: #5B8FD8; --coral: #FF6B6B; --red: #E74C3C;
  --charcoal: #2A2F36; --grey: #5A6472; --grey-light: #9AA3B0;
  --bg: #FFFFFF; --bg-soft: #F7FAFB; --border: #E4EAEE;
  --shadow-sm: 0 1px 3px rgba(15,107,102,.06), 0 1px 2px rgba(15,107,102,.04);
  --shadow-md: 0 10px 25px rgba(15,107,102,.08), 0 4px 10px rgba(15,107,102,.04);
  --shadow-lg: 0 20px 40px rgba(15,107,102,.12);
  --radius: 12px; --radius-lg: 20px;
}

/* --- Reset (scoped to redesigned pages only via .rs-page wrapper if needed) --- */
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
.rs body, .rs { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--charcoal); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.rs a { color: inherit; }
html { scroll-behavior: smooth; }

/* --- Layout --- */
.rs .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Header + Nav --- */
.rs header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.rs .nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.rs .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rs .logo-icon { width: 40px; height: 40px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(27,163,156,.3); }
.rs .logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--charcoal); }
.rs .logo-text span { color: var(--teal); }
.rs .nav-links { display: flex; gap: 6px; align-items: center; }
.rs .nav-links > a { color: var(--grey); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 8px; transition: color .15s, background .15s; }
.rs .nav-links > a:hover, .rs .nav-links > a.active { color: var(--teal); background: var(--mint-light); }

/* --- Buttons --- */
.rs .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: none; transition: all .2s; font-family: inherit; }
.rs .btn-primary { background: var(--teal); color: white; box-shadow: 0 4px 12px rgba(27,163,156,.35); }
.rs .btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27,163,156,.45); }
.rs .btn-secondary { background: white; color: var(--teal); border: 2px solid var(--teal); }
.rs .btn-secondary:hover { background: var(--mint-light); }
.rs .btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }

/* --- Hero --- */
.rs .hero { background: linear-gradient(135deg, var(--mint-light) 0%, #FFFFFF 60%); padding: 70px 0 100px; position: relative; overflow: hidden; }
.rs .hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(179,229,219,.5) 0%, transparent 70%); border-radius: 50%; }
.rs .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.rs .badge { display: inline-flex; align-items: center; gap: 8px; background: white; padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--teal-darker); border: 1px solid var(--mint); margin-bottom: 20px; }
.rs .badge .dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; animation: rs-pulse 2s infinite; }
@keyframes rs-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.rs h1 { font-size: 52px; line-height: 1.08; letter-spacing: -1.5px; color: var(--charcoal); font-weight: 800; margin-bottom: 20px; }
.rs h1 .accent { color: var(--teal); }
.rs .hero-sub { font-size: 19px; color: var(--grey); margin-bottom: 32px; max-width: 540px; }
.rs .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.rs .hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.rs .hero-trust .divider { color: var(--grey-light); }
.rs .hero-trust strong { color: var(--charcoal); font-weight: 700; }
.rs .hero-visual { position: relative; height: 500px; }
.rs .hero-card { position: absolute; background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); animation: rs-float 6s ease-in-out infinite; }
@keyframes rs-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rs .hero-card-1 { top: 0; left: 0; width: 285px; }
.rs .hero-card-2 { top: 90px; right: 0; width: 260px; animation-delay: 1.5s; }
.rs .hero-card-3 { bottom: 30px; left: 40px; width: 300px; animation-delay: 3s; }
.rs .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--blue)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.rs .avatar.a2 { background: linear-gradient(135deg, var(--coral), #F59E0B); }
.rs .avatar.a3 { background: linear-gradient(135deg, var(--blue), #8B5CF6); }
.rs .card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rs .card-name { font-weight: 700; font-size: 15px; }
.rs .card-role { font-size: 12px; color: var(--grey); }
.rs .card-stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.rs .card-stat { font-size: 12px; color: var(--grey); }
.rs .card-stat strong { display: block; color: var(--charcoal); font-size: 15px; font-weight: 700; }
.rs .rating { color: #FBB040; letter-spacing: 2px; font-size: 14px; }
.rs .status-tag { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; background: var(--mint-light); color: var(--teal-darker); }
.rs .status-tag.orange { background: #FFF4E6; color: #B7691F; }

/* --- Logo strip --- */
.rs .logos { padding: 40px 0; border-bottom: 1px solid var(--border); background: white; }
.rs .logos-label { text-align: center; font-size: 12.5px; color: var(--grey); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 24px; }
.rs .logos-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; }
.rs .client-logo { font-weight: 700; font-size: 22px; color: var(--grey-light); letter-spacing: -.5px; opacity: .75; }

/* --- Sections --- */
.rs section.pad { padding: 100px 0; }
.rs .section-tag { display: inline-block; color: var(--teal); font-weight: 800; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.rs h2 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; color: var(--charcoal); font-weight: 800; margin-bottom: 16px; }
.rs .section-sub { font-size: 18px; color: var(--grey); max-width: 620px; }
.rs .section-head { margin-bottom: 56px; }
.rs .section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.rs .section-head.center .section-sub { margin: 0 auto; }

/* --- Cards --- */
.rs .problem-grid, .rs .solution-grid, .rs .testimonials-grid { display: grid; gap: 24px; }
.rs .problem-grid { grid-template-columns: repeat(3, 1fr); }
.rs .solution-grid { grid-template-columns: repeat(2, 1fr); }
.rs .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.rs .problem-card, .rs .feature-card, .rs .testimonial { background: white; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.rs .problem-icon { width: 52px; height: 52px; border-radius: 12px; background: #FFE9E9; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.rs .problem-card h3, .rs .feature-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.rs .problem-card p, .rs .feature-card p { color: var(--grey); font-size: 15px; }
.rs .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mint); transition: all .2s; }
.rs .feature-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 20px; }
.rs .testimonial { position: relative; }
.rs .testimonial .quote-mark { font-size: 60px; color: var(--mint); line-height: .8; font-family: Georgia, serif; position: absolute; top: 20px; right: 24px; }
.rs .testimonial p { font-size: 15.5px; margin-bottom: 20px; }
.rs .testimonial-author { display: flex; align-items: center; gap: 12px; }

/* --- Show-don't-tell (role tabs) --- */
.rs .proof { background: linear-gradient(180deg, white 0%, var(--mint-light) 100%); }
.rs .proof-card { background: white; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-width: 1080px; margin: 0 auto; }
.rs .role-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.rs .role-tab { padding: 10px 18px; border-radius: 100px; background: none; border: 1.5px solid var(--border); font-family: inherit; font-weight: 600; font-size: 14px; color: var(--grey); cursor: pointer; white-space: nowrap; transition: all .15s; }
.rs .role-tab:hover { border-color: var(--teal); color: var(--teal); }
.rs .role-tab.active { background: var(--teal); color: white; border-color: var(--teal); }
.rs .role-panel { display: none; }
.rs .role-panel.active { display: block; }
.rs .role-panel h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.rs .role-panel .lead { color: var(--grey); font-size: 14.5px; margin-bottom: 20px; }
.rs .questions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.rs .question { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--mint-light); border: 1px solid var(--mint); }
.rs .question .qtick { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--teal); color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 2px; }
.rs .question p { font-size: 14px; color: var(--charcoal); font-weight: 500; line-height: 1.4; }
.rs .proof-foot { text-align: center; font-size: 13.5px; color: var(--grey); margin-top: 22px; font-style: italic; }

/* --- Process timeline --- */
.rs .steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.rs .step { background: var(--bg-soft); padding: 24px 18px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); }
.rs .step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px; }
.rs .step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.rs .step p { font-size: 12.5px; color: var(--grey); line-height: 1.5; }

/* --- Stats band --- */
.rs .stats-band { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-darker) 100%); color: white; padding: 60px 0; position: relative; overflow: hidden; }
.rs .stats-band::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%); }
.rs .stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; position: relative; z-index: 1; }
.rs .stat-num { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 6px; }
.rs .stat-label { font-size: 13.5px; opacity: .9; }

/* --- Join grid --- */
.rs .join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rs .join-card { background: linear-gradient(135deg, var(--mint-light) 0%, white 100%); border: 1px solid var(--mint); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-sm); transition: all .2s; }
.rs .join-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.rs .join-num { font-size: 48px; font-weight: 800; color: var(--teal); letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.rs .join-num span { font-size: 16px; font-weight: 700; color: var(--grey); letter-spacing: 0; display: block; margin-top: 4px; text-transform: uppercase; }
.rs .join-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--charcoal); }
.rs .join-card p { color: var(--grey); font-size: 15px; max-width: 380px; margin: 0 auto 24px; }

/* --- Guarantee --- */
.rs .guarantee { background: var(--charcoal); color: white; padding: 80px 0; }
.rs .guarantee-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.rs .guarantee h2 { color: white; margin-bottom: 32px; }
.rs .promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; margin-bottom: 40px; }
.rs .promise { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); font-size: 15px; font-weight: 500; }
.rs .promise-check { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 700; }
.rs .signature { font-family: Georgia, serif; font-style: italic; font-size: 18px; opacity: .85; }

/* --- FAQ --- */
.rs .faq-list { max-width: 780px; margin: 0 auto; }
.rs .faq-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.rs .faq-q { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.rs .faq-q::-webkit-details-marker { display: none; }
.rs .faq-q::marker { content: ""; }
.rs .faq-q:hover { background: var(--mint-light); }
.rs .faq-a { padding: 0 24px 20px; color: var(--grey); font-size: 15px; }
.rs .faq-item[open] .faq-toggle { transform: rotate(45deg); }
.rs .faq-toggle { color: var(--teal); font-size: 24px; font-weight: 300; transition: transform .2s; display: inline-block; }

/* --- Final CTA --- */
.rs .final-cta { background: linear-gradient(135deg, var(--mint-light) 0%, white 100%); padding: 100px 0; text-align: center; }
.rs .final-cta h2 { font-size: 44px; margin-bottom: 16px; }
.rs .final-cta p { font-size: 18px; color: var(--grey); max-width: 580px; margin: 0 auto 32px; }
.rs .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Forms (shared) --- */
.rs .form-shell { max-width: 780px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.rs .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rs .field { display: flex; flex-direction: column; }
.rs .field.full { grid-column: 1 / -1; }
.rs .field label { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.rs .field label .req { color: var(--red); }
.rs .field input, .rs .field select, .rs .field textarea { font-family: inherit; padding: 13px 16px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px; background: white; color: var(--charcoal); transition: border-color .15s, box-shadow .15s; width: 100%; }
.rs .field input:focus, .rs .field select:focus, .rs .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,163,156,.12); }
.rs .field textarea { min-height: 100px; resize: vertical; }
.rs .field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.rs .field .hint { font-size: 12.5px; color: var(--grey-light); margin-top: 6px; }

/* --- Footer --- */
.rs footer { background: var(--charcoal); color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.rs .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.rs .footer-brand p { margin-top: 16px; font-size: 14px; opacity: .8; max-width: 300px; }
.rs .footer-brand .logo-text { color: white; }
.rs .footer-brand .logo-text span { color: var(--teal); }
.rs .footer-col h5 { color: white; font-size: 13.5px; margin-bottom: 16px; font-weight: 800; letter-spacing: .5px; }
.rs .footer-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.rs .footer-col a:hover { color: var(--teal); }
.rs .footer-social { display: flex; gap: 10px; margin-top: 18px; }
.rs .footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 0; }
.rs .footer-social a:hover { background: var(--teal); }
.rs .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; text-align: center; opacity: .65; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* --- Responsive --- */
@media (max-width: 1000px) { .rs .hero-grid { grid-template-columns: 1fr; gap: 40px; } .rs .hero-visual { height: 420px; } .rs .steps { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) {
  .rs .nav-links { display: none; }
  .rs h1 { font-size: 38px; }
  .rs h2 { font-size: 30px; }
  .rs .problem-grid, .rs .solution-grid, .rs .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .rs .stats-grid { grid-template-columns: 1fr 1fr; }
  .rs .stats-grid > div:nth-child(5) { grid-column: span 2; }
  .rs .questions { grid-template-columns: 1fr; }
  .rs .footer-grid { grid-template-columns: 1fr 1fr; }
  .rs .promises { grid-template-columns: 1fr; }
  .rs .form-grid { grid-template-columns: 1fr; }
  .rs .join-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rs .problem-grid, .rs .solution-grid, .rs .testimonials-grid { grid-template-columns: 1fr; }
  .rs .steps { grid-template-columns: 1fr 1fr; }
  .rs h1 { font-size: 32px; }
  .rs .hero { padding: 40px 0 60px; }
  .rs section.pad { padding: 60px 0; }
  .rs .stat-num { font-size: 34px; }
  .rs .form-shell { padding: 28px 22px; }
}
