/* =====================================================================
   Rakt Setu — scoped stylesheet
   All classes prefixed with rs- to avoid conflicts with global styles.
   Uses Bootstrap 5 utility classes where possible.
   ===================================================================== */

/* Color tokens — Rakt Setu accent is blood red */
:root {
  --rs-red: #A32D2D;
  --rs-red-dark: #7a1f1f;
  --rs-red-bg: #FCEBEB;
  --rs-red-border: #F7C1C1;
  --rs-accent-bg: #E6F1FB;
  --rs-accent: #185FA5;
  --rs-warning-bg: #FAEEDA;
  --rs-warning-border: #FAC775;
  --rs-warning-text: #854F0B;
  --rs-success: #3B6D11;
  --rs-success-bg: #EAF3DE;
  --rs-text-primary: #1a1a1a;
  --rs-text-secondary: #555;
  --rs-text-muted: #888;
  --rs-border: #e5e5e5;
  --rs-surface: #ffffff;
  --rs-surface-alt: #f8f8f6;
}

/* ===== HERO ===== */
.rs-hero {
  background: linear-gradient(180deg, #fef7f7 0%, #ffffff 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.rs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--rs-red-bg);
  color: var(--rs-red-dark);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.rs-hero-badge i {
  font-size: 14px;
}

.rs-hero-title {
  font-size: 42px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.rs-hero-subtitle {
  font-size: 17px;
  color: var(--rs-text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ===== CTA GRID ===== */
.rs-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.rs-cta-card {
  background: var(--rs-surface);
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rs-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.rs-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}

.rs-cta-icon-donor {
  background: var(--rs-red-bg);
  color: var(--rs-red);
}

.rs-cta-icon-search {
  background: var(--rs-accent-bg);
  color: var(--rs-accent);
}

.rs-cta-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--rs-text-primary);
}

.rs-cta-desc {
  font-size: 14px;
  color: var(--rs-text-secondary);
  margin: 0 0 18px;
  line-height: 1.5;
}

.rs-cta-btn {
  width: 100%;
  font-weight: 500;
  padding: 10px 16px;
}

/* Override Bootstrap btn-danger to match blood-red palette */
.btn-danger.rs-cta-btn,
.rs-final-cta .btn-danger {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
}

.btn-danger.rs-cta-btn:hover,
.rs-final-cta .btn-danger:hover {
  background-color: var(--rs-red-dark);
  border-color: var(--rs-red-dark);
}

/* ===== DISCLAIMER ===== */
.rs-disclaimer-wrap {
  padding: 24px 0 8px;
}

.rs-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--rs-warning-bg);
  border: 1px solid var(--rs-warning-border);
  border-radius: 8px;
  color: var(--rs-warning-text);
  font-size: 14px;
  line-height: 1.6;
}

.rs-disclaimer i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.rs-disclaimer a {
  color: var(--rs-warning-text);
  text-decoration: underline;
  font-weight: 500;
}

.rs-disclaimer a:hover {
  color: var(--rs-red-dark);
}

/* ===== HOW IT WORKS ===== */
.rs-how-wrap {
  padding: 50px 0 40px;
}

.rs-section-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--rs-text-primary);
  margin: 0 0 6px;
}

.rs-section-sub {
  text-align: center;
  color: var(--rs-text-secondary);
  font-size: 15px;
  margin: 0 0 32px;
}

.rs-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rs-how-card {
  background: var(--rs-surface);
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.rs-how-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rs-red-bg);
  color: var(--rs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto 12px;
}

.rs-how-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 8px;
}

.rs-how-desc {
  font-size: 14px;
  color: var(--rs-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== TRUST POINTS ===== */
.rs-trust-wrap {
  padding: 30px 0 50px;
  background: var(--rs-surface-alt);
}

.rs-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.rs-trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--rs-surface);
  border-radius: 8px;
  border: 1px solid var(--rs-border);
}

.rs-trust-item i {
  color: var(--rs-success);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.rs-trust-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin-bottom: 2px;
}

.rs-trust-item span {
  font-size: 13px;
  color: var(--rs-text-secondary);
  line-height: 1.5;
}

/* ===== FINAL CTA STRIP ===== */
.rs-final-cta {
  padding: 50px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fef7f7 100%);
}

.rs-final-cta h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--rs-text-primary);
}

.rs-final-cta p {
  color: var(--rs-text-secondary);
  font-size: 15px;
  margin: 0 0 20px;
}

.rs-final-cta .btn-lg {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
}

.rs-final-cta .btn-lg i {
  margin-right: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rs-hero {
    padding: 40px 0 30px;
  }

  .rs-hero-title {
    font-size: 32px;
  }

  .rs-hero-subtitle {
    font-size: 15px;
    padding: 0 20px;
  }

  .rs-cta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
  }

  .rs-how-grid,
  .rs-trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rs-section-title {
    font-size: 24px;
  }

  .rs-final-cta h3 {
    font-size: 20px;
  }
}


/* =====================================================================
   FORM PAGES (register.php, register-form.php, and future forms)
   ===================================================================== */

.rs-page-wrap {
  padding: 40px 0 60px;
  background: var(--rs-surface-alt);
  min-height: 60vh;
}

/* ===== PROGRESS INDICATOR ===== */
.rs-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 32px;
  gap: 12px;
}

.rs-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-progress-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--rs-text-muted);
  border: 2px solid var(--rs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.rs-progress-label {
  font-size: 14px;
  color: var(--rs-text-muted);
  font-weight: 500;
}

.rs-progress-active .rs-progress-num {
  background: var(--rs-red);
  color: #fff;
  border-color: var(--rs-red);
}

.rs-progress-active .rs-progress-label {
  color: var(--rs-red);
}

.rs-progress-done .rs-progress-num {
  background: var(--rs-success);
  color: #fff;
  border-color: var(--rs-success);
}

.rs-progress-done .rs-progress-label {
  color: var(--rs-success);
}

.rs-progress-line {
  flex: 1;
  height: 2px;
  background: var(--rs-border);
  max-width: 60px;
}

.rs-progress-line-done {
  background: var(--rs-success);
}

/* ===== FORM CARD ===== */
.rs-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.rs-form-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rs-border);
}

.rs-form-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rs-red-bg);
  color: var(--rs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.rs-form-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 6px;
}

.rs-form-subtitle {
  font-size: 15px;
  color: var(--rs-text-secondary);
  margin: 0;
}

.rs-flash {
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== CONSENT BLOCKS ===== */
.rs-consent-block {
  background: var(--rs-surface-alt);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--rs-border);
}

.rs-consent-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rs-consent-heading i {
  color: var(--rs-red);
  font-size: 18px;
}

.rs-consent-intro {
  font-size: 13px;
  color: var(--rs-text-secondary);
  margin: 0 0 10px;
}

.rs-consent-list {
  margin: 0;
  padding-left: 22px;
}

.rs-consent-list li {
  font-size: 13px;
  color: var(--rs-text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.rs-consent-list li strong {
  color: var(--rs-text-primary);
  font-weight: 600;
}

/* ===== CHECKBOX ROWS ===== */
.rs-consent-form {
  margin-top: 22px;
}

.rs-checkbox-row {
  margin-bottom: 12px;
}

.rs-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  background: #ffffff;
}

.rs-checkbox:hover {
  background: var(--rs-surface-alt);
  border-color: var(--rs-red-border);
}

.rs-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rs-checkbox-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--rs-border);
  background: #ffffff;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.12s ease;
}

.rs-checkbox input:checked + .rs-checkbox-mark {
  background: var(--rs-red);
  border-color: var(--rs-red);
}

.rs-checkbox input:checked + .rs-checkbox-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rs-checkbox input:focus + .rs-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(163, 45, 45, 0.15);
}

.rs-checkbox-text {
  font-size: 14px;
  color: var(--rs-text-primary);
  line-height: 1.55;
}

.rs-checkbox-text strong {
  font-weight: 600;
}

/* ===== FORM FIELDS ===== */
.rs-form {
  margin-top: 8px;
}

.rs-field {
  margin-bottom: 22px;
}

.rs-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.rs-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin-bottom: 6px;
}

.rs-required {
  color: var(--rs-red);
}

.rs-input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: var(--rs-text-primary);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.rs-input:focus {
  outline: none;
  border-color: var(--rs-red);
  box-shadow: 0 0 0 3px rgba(163, 45, 45, 0.12);
}

.rs-input-date {
  padding-right: 8px;
}

.rs-help {
  font-size: 12px;
  color: var(--rs-text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ===== RADIO OPTIONS ===== */
.rs-radio-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.rs-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.12s ease;
}

.rs-radio:hover {
  background: var(--rs-surface-alt);
  border-color: var(--rs-red-border);
}

.rs-radio input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--rs-red);
}

.rs-radio input[type="radio"]:checked ~ .rs-radio-body {
  color: var(--rs-text-primary);
}

.rs-radio:has(input:checked) {
  border-color: var(--rs-red);
  background: var(--rs-red-bg);
}

.rs-radio-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.rs-radio-body strong {
  font-weight: 600;
  color: var(--rs-text-primary);
}

.rs-radio-body span {
  color: var(--rs-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.rs-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  align-self: flex-start;
}

.rs-badge-safe {
  background: var(--rs-success-bg);
  color: var(--rs-success);
}

/* ===== FORM ACTIONS ===== */
.rs-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rs-border);
}

.rs-btn-primary {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
  color: #ffffff;
  font-weight: 500;
}

.rs-btn-primary:hover:not(:disabled) {
  background-color: var(--rs-red-dark);
  border-color: var(--rs-red-dark);
  color: #ffffff;
}

.rs-btn-primary:disabled {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
  color: #ffffff;
  opacity: 0.45;
  cursor: not-allowed;
}

.rs-form-actions .btn i {
  margin-right: 4px;
}

.rs-form-actions .rs-btn-primary i {
  margin-right: 0;
  margin-left: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .rs-form-card {
    padding: 24px 20px;
  }

  .rs-form-title {
    font-size: 20px;
  }

  .rs-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rs-progress-label {
    display: none;
  }

  .rs-progress-line {
    max-width: 40px;
  }

  .rs-form-actions {
    flex-direction: column-reverse;
  }

  .rs-form-actions .btn {
    width: 100%;
  }
}


/* =====================================================================
   PROFILE PAGE (Slice 4)
   ===================================================================== */

.rs-profile-header {
  max-width: 720px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 4px;
}

.rs-profile-header-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.rs-profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rs-red-bg);
  color: var(--rs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.rs-profile-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 2px;
}

.rs-profile-sub {
  font-size: 14px;
  color: var(--rs-text-secondary);
  margin: 0;
}

/* Status badge */
.rs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #f0f0f0;
  color: var(--rs-text-secondary);
  border: 1px solid var(--rs-border);
}

.rs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.rs-status-available {
  background: var(--rs-success-bg);
  color: var(--rs-success);
  border-color: transparent;
}

.rs-status-paused {
  background: var(--rs-warning-bg);
  color: var(--rs-warning-text);
  border-color: transparent;
}

.rs-status-unavailable {
  background: #f2e3e3;
  color: #7a1f1f;
  border-color: transparent;
}

/* Card variations for profile */
.rs-card {
  max-width: 720px;
  margin: 0 auto 20px;
}

.rs-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rs-border);
}

.rs-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rs-card-title i {
  color: var(--rs-red);
  font-size: 20px;
}

.rs-card-desc {
  font-size: 14px;
  color: var(--rs-text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

.rs-card-danger {
  border-color: #f5c6c6;
}

.rs-card-danger .rs-card-title i {
  color: #8b0000;
}

/* Link-style button (Edit) */
.rs-link-btn {
  background: none;
  border: none;
  color: var(--rs-red);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rs-link-btn:hover {
  background: var(--rs-red-bg);
}

/* Info grid (view mode) */
.rs-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.rs-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rs-info-label {
  font-size: 12px;
  color: var(--rs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.rs-info-value {
  font-size: 15px;
  color: var(--rs-text-primary);
  font-weight: 500;
}

.rs-blood-group {
  display: inline-block;
  padding: 4px 12px;
  background: var(--rs-red-bg);
  color: var(--rs-red);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  width: fit-content;
}

/* Static input (non-editable field in edit form) */
.rs-input-static {
  padding: 10px 14px;
  background: var(--rs-surface-alt);
  border: 1px dashed var(--rs-border);
  border-radius: 8px;
  color: var(--rs-text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-input-static small {
  color: var(--rs-text-muted);
  font-weight: 400;
}

/* Donation summary */
.rs-donation-summary {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rs-border);
}

.rs-pause-banner {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--rs-warning-bg);
  border: 1px solid var(--rs-warning-border);
  border-radius: 8px;
  color: var(--rs-warning-text);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.rs-pause-banner i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rs-empty-state {
  padding: 16px;
  background: var(--rs-surface-alt);
  border-radius: 8px;
  color: var(--rs-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  margin: 0;
  border: 1px dashed var(--rs-border);
}

.rs-empty-state i {
  color: var(--rs-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Inline form (log donation) */
.rs-inline-form {
  margin-top: 8px;
}

.rs-inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

.rs-inline-row .btn {
  white-space: nowrap;
  padding: 8px 16px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .rs-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rs-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rs-inline-row {
    grid-template-columns: 1fr;
  }

  .rs-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* =====================================================================
   SEARCH PAGE (Slice 5)
   ===================================================================== */

.rs-search-hero {
  background: linear-gradient(180deg, #fef7f7 0%, #ffffff 100%);
  padding: 40px 0 20px;
}

.rs-search-hero-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.rs-search-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 12px 0 8px;
  letter-spacing: -0.5px;
}

.rs-search-subtitle {
  font-size: 15px;
  color: var(--rs-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.rs-search-section {
  padding: 20px 0 30px;
}

.rs-search-form {
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rs-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rs-search-field {
  display: flex;
  flex-direction: column;
}

.rs-pincode-hint {
  font-size: 11px;
  color: var(--rs-text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.rs-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rs-border);
}

.rs-search-actions .btn {
  padding: 8px 18px;
  font-weight: 500;
}

.rs-search-actions .btn i {
  margin-right: 4px;
}

/* Results */
.rs-results-section {
  padding: 20px 0 40px;
  min-height: 300px;
}

.rs-results-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rs-border);
}

.rs-results-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 4px;
}

.rs-results-summary {
  font-size: 13px;
  color: var(--rs-text-secondary);
  margin: 0;
}

.rs-results-summary strong {
  color: var(--rs-text-primary);
  font-weight: 600;
}

.rs-results-empty {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 500px;
  margin: 0 auto;
}

.rs-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rs-surface-alt);
  color: var(--rs-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.rs-results-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 8px;
}

.rs-results-empty p {
  font-size: 14px;
  color: var(--rs-text-secondary);
  line-height: 1.6;
  margin: 0 0 10px;
}

.rs-results-empty a {
  color: var(--rs-red);
  text-decoration: underline;
}

.rs-cta-inline {
  margin-top: 18px;
}

.rs-results-more {
  text-align: center;
  font-size: 13px;
  color: var(--rs-text-muted);
  margin-top: 20px;
  padding: 12px;
  background: var(--rs-surface-alt);
  border-radius: 8px;
}

/* Donor cards grid */
.rs-donor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.rs-donor-card {
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.rs-donor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.rs-donor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.rs-donor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rs-accent) 0%, #0f4581 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
}

.rs-donor-blood {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--rs-red-bg);
  color: var(--rs-red);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.rs-donor-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--rs-text-primary);
  margin: 0 0 4px;
}

.rs-donor-location {
  font-size: 13px;
  color: var(--rs-text-secondary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rs-donor-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rs-donor-action {
  margin-top: auto;
}

.rs-donor-btn {
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Search page mobile */
@media (max-width: 768px) {
  .rs-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rs-search-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .rs-search-grid {
    grid-template-columns: 1fr;
  }
  .rs-search-actions {
    flex-direction: column-reverse;
  }
  .rs-search-actions .btn {
    width: 100%;
  }
}


/* =====================================================================
   DONOR CARD — CALL + WHATSAPP button row (Slice 5B)
   ===================================================================== */

.rs-donor-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rs-donor-btn-half {
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 500;
}

.rs-donor-btn-wa {
  background-color: #25D366;
  border-color: #25D366;
  color: #ffffff;
}

.rs-donor-btn-wa:hover {
  background-color: #1eb257;
  border-color: #1eb257;
  color: #ffffff;
}

.rs-donor-phone-small {
  font-size: 12px;
  color: var(--rs-text-muted);
  text-align: center;
  margin: 6px 0 0;
  font-family: -apple-system, monospace;
  letter-spacing: 0.3px;
}

/* Mobile — stack the buttons */
@media (max-width: 380px) {
  .rs-donor-btn-row {
    grid-template-columns: 1fr;
  }
}
