/* ==============================================
   RENTSAFE — uses ONLY existing TrufinOps tokens
   No new fonts, no new base sizes, no overrides
============================================== */

/* ── ALERT BANNER ── */
.rs-alert-banner{
  background:rgba(245,158,11,.08);
  border-bottom:1px solid rgba(245,158,11,.2);
  padding:12px 22px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--text);
  justify-content:center;
}
.rs-alert-icon{ font-size:16px; flex-shrink:0; }
.rs-alert-cta{
  padding:8px 18px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#000;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  flex-shrink:0;
}

/* ── PENALTY STRIP ── */
.rs-penalty-strip{
  background:rgba(255,255,255,.02);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:40px 22px;
}
.rs-penalty-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-around;
  flex-wrap:wrap;
  gap:24px;
}
.rs-penalty-item{
  text-align:center;
}
.rs-penalty-item strong{
  display:block;
  font-size:28px;
  font-weight:700;
  color:#f87171;
  margin-bottom:6px;
}
.rs-penalty-item span{
  font-size:13px;
  color:var(--muted);
  max-width:160px;
  display:block;
  margin:0 auto;
}
.rs-penalty-item.rs-penalty-safe strong{
  color:var(--accent);
}
.rs-penalty-divider{
  width:1px;
  height:50px;
  background:var(--border);
}
@media(max-width:640px){
  .rs-penalty-divider{ display:none; }
  .rs-penalty-item strong{ font-size:22px; }
}

/* ── HOW IT WORKS STEPS ── */
.rs-steps{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-top:40px;
  flex-wrap:wrap;
}
.rs-step{
  flex:1;
  min-width:200px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.rs-step-num{
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#000;
  font-weight:700;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.rs-step-content h3{
  font-size:15px;
  font-weight:600;
  margin-bottom:6px;
}
.rs-step-content p{
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}
.rs-step-arrow{
  font-size:22px;
  color:var(--muted);
  padding-top:28px;
  flex-shrink:0;
}
@media(max-width:768px){
  .rs-step-arrow{ display:none; }
  .rs-steps{ flex-direction:column; }
  .rs-step{ min-width:unset; }
}

/* ── INCLUDED SECTION ── */
.rs-included-section{
  background:rgba(255,255,255,.01);
}

/* ── TDS CALCULATOR WIDGET ── */
.rs-calc-widget{
  margin-top:36px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}
@media(max-width:768px){
  .rs-calc-widget{ grid-template-columns:1fr; }
}
.rs-calc-input{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
}
.rs-calc-result{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
}
.rs-calc-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  font-size:14px;
}
.rs-calc-row span{ color:var(--muted); }
.rs-calc-divider{
  border:none;
  border-top:1px solid var(--border);
  margin:8px 0;
}
.rs-calc-total span{ font-weight:600; color:var(--text); }
.rs-calc-total strong{ font-size:18px; color:var(--accent); }

/* ── CHECKLIST ── */
.rs-checklist{
  margin-top:32px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.rs-check-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:20px 22px;
}
.rs-check-icon{
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(108,242,194,.15);
  border:1px solid rgba(108,242,194,.3);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:700;
  flex-shrink:0;
}
.rs-check-item strong{
  display:block;
  font-size:15px;
  margin-bottom:4px;
}
.rs-check-item p{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* ── PRICING ── */
.rs-pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
  margin-top:40px;
}
.rs-price-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
  position:relative;
}
.rs-price-card.rs-price-popular{
  border-color:rgba(108,242,194,.35);
  background:rgba(108,242,194,.04);
}
.rs-price-badge{
  position:absolute;
  top:-12px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#000;
  font-size:11px;
  font-weight:700;
  padding:4px 14px;
  border-radius:100px;
  white-space:nowrap;
}
.rs-price-name{
  font-size:15px;
  font-weight:600;
  margin-bottom:12px;
  color:var(--text);
}
.rs-price-amount{
  font-size:36px;
  font-weight:700;
  color:var(--text);
  line-height:1;
  margin-bottom:4px;
}
.rs-price-sub{
  font-size:12px;
  color:var(--muted);
  margin-bottom:22px;
}
.rs-price-list{
  list-style:none;
  padding:0;
  margin-bottom:24px;
}
.rs-price-list li{
  font-size:13px;
  color:var(--muted);
  padding:5px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.rs-price-list li:last-child{ border:none; }

/* ── FAQ ── */
.rs-faq{
  margin-top:36px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.rs-faq-item{
  border-bottom:1px solid var(--border);
}
.rs-faq-item:last-child{ border-bottom:none; }
.rs-faq-q{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  background:none;
  border:none;
  color:var(--text);
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  text-align:left;
  gap:16px;
}
.rs-faq-q:hover{ background:rgba(255,255,255,.03); }
.rs-faq-icon{
  font-size:20px;
  color:var(--muted);
  flex-shrink:0;
  transition:.2s;
}
.rs-faq-a{
  display:none;
  padding:0 22px 18px;
}
.rs-faq-a p{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
  margin:0;
}
.rs-faq-item.open .rs-faq-a{ display:block; }
.rs-faq-item.open .rs-faq-icon{
  transform:rotate(45deg);
  color:var(--accent);
}

/* ── FINAL CTA ── */
.rs-final-cta{ padding-bottom:60px; }
.rs-cta-card{
  background:var(--surface);
  border:1px solid rgba(108,242,194,.2);
  border-radius:var(--radius);
  padding:50px 40px;
  text-align:center;
}
.rs-cta-card h2{
  font-size:30px;
  margin-bottom:14px;
}
.rs-cta-card > p{
  color:var(--muted);
  font-size:15px;
  max-width:520px;
  margin:0 auto 30px;
}
.rs-cta-card .cta{ justify-content:center; }
@media(max-width:640px){
  .rs-cta-card{ padding:32px 22px; }
  .rs-cta-card h2{ font-size:24px; }
}

/* ==============================================
   FORM PAGE STYLES
============================================== */

.rs-form-layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:32px;
  align-items:start;
}
@media(max-width:900px){
  .rs-form-layout{ grid-template-columns:1fr; }
  /* On mobile: hide the sticky sidebar entirely — form fills full width */
  .rs-summary-panel{ display:none; }
}

/* Progress bar */
.rs-progress{
  display:flex;
  align-items:center;
  margin-bottom:36px;
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:0;
  padding:4px 0;
}
.rs-progress-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.rs-progress-step span{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.rs-prog-dot{
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid var(--border);
  background:var(--surface);
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
}
.rs-progress-step.active .rs-prog-dot{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border-color:transparent;
  color:#000;
}
.rs-progress-step.done .rs-prog-dot{
  background:rgba(108,242,194,.15);
  border-color:rgba(108,242,194,.4);
  color:var(--accent);
}
.rs-progress-step.active span,
.rs-progress-step.done span{ color:var(--text); }
.rs-progress-line{
  flex:1;
  height:2px;
  background:var(--border);
  margin:0 8px;
  margin-bottom:18px;
  min-width:20px;
}

/* Form sections */
.rs-form-section{ display:none; }
.rs-form-section.active{ display:block; }

.rs-section-header{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-bottom:28px;
  padding-bottom:20px;
  border-bottom:1px solid var(--border);
}
.rs-section-num{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(108,242,194,.1);
  border:1px solid rgba(108,242,194,.2);
  color:var(--accent);
  font-size:16px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.rs-section-header h2{
  font-size:20px;
  margin-bottom:4px;
}
.rs-section-header p{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* Inputs — inherits from emi.css patterns */
.rs-input{
  width:100%;
  background:#0c1020;
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px 14px;
  color:var(--text);
  font-size:16px;
  font-family:'Inter',sans-serif;
  outline:none;
  transition:.2s;
}
.rs-input:focus{
  border-color:rgba(108,242,194,.4);
  background:#0e1428;
}
.rs-input.error{ border-color:#f87171; }
.rs-select{ cursor:pointer; }
.rs-select option{ background:#0f1422; color:var(--text); }

.rs-field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media(max-width:480px){ .rs-field-row{ grid-template-columns:1fr; } }

.rs-hint{
  font-size:11px;
  color:rgba(255,255,255,.35);
  margin-top:6px;
}
.rs-required{ color:#f87171; }
.rs-error{
  font-size:12px;
  color:#f87171;
  margin-top:5px;
  min-height:16px;
}

.rs-info-box{
  display:flex;
  gap:12px;
  background:rgba(122,162,255,.07);
  border:1px solid rgba(122,162,255,.18);
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:22px;
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}
.rs-info-box span{ font-size:16px; flex-shrink:0; }
.rs-link-btn{
  background:none;
  border:none;
  color:var(--accent);
  font-size:13px;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}

.rs-nav-btns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--border);
}

/* Review section */
.rs-review-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
@media(max-width:480px){ .rs-review-grid{ grid-template-columns:1fr; } }
.rs-review-col{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px;
}
.rs-review-col h4{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  margin-bottom:12px;
}
.rs-review-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.rs-review-row:last-child{ border:none; }
.rs-review-row span{ color:var(--muted); }
.rs-review-row strong{ font-weight:500; text-align:right; max-width:55%; word-break:break-all; }

.rs-payment-box{
  background:rgba(108,242,194,.04);
  border:1px solid rgba(108,242,194,.15);
  border-radius:14px;
  padding:22px;
  margin-top:16px;
}
.rs-payment-box h4{
  font-size:13px;
  font-weight:600;
  margin-bottom:14px;
}
.rs-pay-row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  padding:8px 0;
}
.rs-pay-row span{ color:var(--muted); }
.rs-pay-divider{
  border:none;
  border-top:1px solid var(--border);
  margin:6px 0;
}
.rs-pay-total span{ font-weight:600; color:var(--text); }
.rs-pay-total strong{ font-size:18px; color:var(--accent); }
.rs-pay-note{
  font-size:11px;
  color:var(--muted);
  margin-top:12px;
  line-height:1.6;
}

.rs-terms{
  margin-top:18px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.rs-terms input{ margin-top:3px; flex-shrink:0; accent-color:var(--accent); }

.rs-secure-note{
  margin-top:16px;
  font-size:12px;
  color:rgba(255,255,255,.3);
  text-align:center;
}

/* Sticky summary panel */
.rs-summary-panel{
  position:sticky;
  top:90px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.rs-summary-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
}
.rs-summary-card h4{
  font-size:13px;
  font-weight:600;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.rs-sum-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:7px 0;
}
.rs-sum-row span{ color:var(--muted); }
.rs-sum-divider{
  border:none;
  border-top:1px solid var(--border);
  margin:4px 0;
}
.rs-sum-total span{ font-weight:600; color:var(--text); }
.rs-sum-total strong{ font-size:16px; color:var(--accent); }
.rs-sum-note{
  font-size:11px;
  color:rgba(255,255,255,.3);
  margin-top:14px;
  line-height:1.6;
}

.rs-trust-mini{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.rs-trust-mini div{
  flex:1;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-size:11px;
  color:var(--muted);
  text-align:center;
  min-width:80px;
}

.rs-support{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
}
.rs-support p{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

/* ==============================================
   STATUS PAGE
============================================== */

.rs-status-wrap{
  max-width:560px;
  margin:60px auto;
}
.rs-status-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:48px 40px;
  text-align:center;
}
@media(max-width:640px){ .rs-status-card{ padding:30px 22px; } }
.rs-status-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  margin:0 auto 22px;
}
.rs-status-done{
  background:rgba(108,242,194,.15);
  border:2px solid rgba(108,242,194,.4);
  color:var(--accent);
}
.rs-status-card h1{ font-size:28px; margin-bottom:10px; }
.rs-status-card > p{ font-size:15px; color:var(--muted); margin-bottom:32px; }

.rs-timeline{
  text-align:left;
  margin:28px 0;
}
.rs-tl-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.rs-tl-line{
  width:2px;
  height:20px;
  background:var(--border);
  margin:4px 0 4px 15px;
}
.rs-tl-dot{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  flex-shrink:0;
  border:2px solid var(--border);
  background:var(--surface);
  color:var(--muted);
}
.rs-tl-item.done .rs-tl-dot{
  background:rgba(108,242,194,.15);
  border-color:rgba(108,242,194,.4);
  color:var(--accent);
}
.rs-tl-content strong{
  display:block;
  font-size:14px;
  margin-bottom:2px;
}
.rs-tl-content span{
  font-size:12px;
  color:var(--muted);
}

.rs-ref-box{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 28px;
  margin-top:8px;
}
.rs-ref-box span{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.rs-ref-box strong{ font-size:18px; font-family:monospace; color:var(--accent); }

.rs-upsell{
  margin-top:28px;
  background:rgba(122,162,255,.06);
  border:1px solid rgba(122,162,255,.15);
  border-radius:12px;
  padding:16px 20px;
}
.rs-upsell p{ font-size:13px; color:var(--muted); margin-bottom:8px; }
.rs-upsell-link{
  font-size:13px;
  color:var(--accent2);
  font-weight:500;
}


/* ══════════════════════════════════════════
   MOBILE INLINE SUMMARY (shown instead of sidebar)
   Only visible on screens < 900px
══════════════════════════════════════════ */

.rs-mobile-summary{
  display:none; /* hidden on desktop — sidebar handles it */
  background:rgba(108,242,194,.04);
  border:1px solid rgba(108,242,194,.15);
  border-radius:14px;
  padding:16px 18px;
  margin-bottom:24px;
}
.rs-mobile-summary h4{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  margin-bottom:10px;
}
.rs-mobile-sum-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:5px 0;
}
.rs-mobile-sum-row span{ color:var(--muted); }
.rs-mobile-sum-total{
  border-top:1px solid var(--border);
  margin-top:6px;
  padding-top:10px;
}
.rs-mobile-sum-total span{ font-weight:600; color:var(--text); }
.rs-mobile-sum-total strong{ font-size:16px; color:var(--accent); }

@media(max-width:900px){
  .rs-mobile-summary{ display:block; }
}

/* ── Fix H1 sizes on RentSafe pages on mobile ── */
@media(max-width:640px){
  .hero h1{ font-size:30px !important; }
  /* RentSafe landing hero */
  section.hero h1{ font-size:30px; }
}

/* ── RentSafe alert banner on homepage — compact single line on mobile ── */
.rs-home-banner{ display:none; } /* removed from homepage — now handled in category section */

/* ── RentSafe additional mobile fixes ── */
@media (max-width: 768px) {
  /* Input font-size >= 16px prevents iOS zoom */
  .rs-input,
  .rs-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
  /* Pricing cards: single column */
  .rs-pricing-grid { grid-template-columns: 1fr !important; gap: 16px; }
  /* Progress bar: smaller text */
  .rs-progress { gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .rs-progress-step span { font-size: 11px; }
  /* Form padding */
  .rs-form-main { padding: 0; }
}
@media (max-width: 480px) {
  .rs-price-card { padding: 22px 18px; }
  .rs-progress-line { flex: 1; min-width: 20px; }
}

/* ============================================================
   RENTSAFE MOBILE FIXES (appended — desktop unchanged)
   ============================================================ */
@media (max-width: 768px) {
  /* All inputs: 16px font prevents iOS zoom */
  .rs-input,
  .rs-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select, textarea {
    font-size: 16px !important;
    box-sizing: border-box;
    width: 100%;
  }

  /* Pricing cards: single column */
  .rs-pricing-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Progress stepper: scrollable if needed */
  .rs-progress {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .rs-progress-step span { font-size: 11px; white-space: nowrap; }

  /* Form section padding */
  .rs-form-section { padding: 0; }

  /* Review grid: single column */
  .rs-review-grid { grid-template-columns: 1fr !important; gap: 12px; }

  /* Payment note: wrap text */
  .rs-pay-note { font-size: 12px; word-break: break-word; }

  /* Terms: prevent overflow */
  .rs-terms label { font-size: 13px; line-height: 1.55; }

  /* Nav buttons: stack on tiny screens */
  .rs-nav-btns { flex-wrap: wrap; gap: 10px; }
  .rs-nav-btns .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
}

@media (max-width: 480px) {
  .rs-price-card     { padding: 22px 16px; }
  .rs-progress-line  { min-width: 16px; flex: 1; }
  .rs-section-header { flex-direction: column; gap: 8px; }
  .rs-field-row      { grid-template-columns: 1fr !important; }
}
