/* ==================================================================
   RSACHARYA.COM — Brand theme (Section 3)
   Royal blue & gold · Poppins 16px · soft, rounded, premium, calm
   ================================================================== */

:root {
  /* Royal blue */
  --rs-blue:        #171590;
  --rs-blue-bright: #201CC4;
  --rs-navy:        #11107E;
  /* Gold */
  --rs-gold:        #F2B505;
  --rs-gold-light:  #FFD23D;
  /* Neutrals */
  --rs-text:        #1B1B2A;
  --rs-bg:          #F5F6FB;
  --rs-white:       #FFFFFF;
  --rs-muted:       #4d5167;
  --rs-border:      #e4e6f0;
  --rs-danger:      #c0392b;
  --rs-success:     #1e7e4f;

  --rs-radius:      16px;
  --rs-radius-sm:   12px;
  --rs-shadow:      0 18px 50px -22px rgba(17, 16, 126, .45);
  --rs-shadow-sm:   0 6px 20px -10px rgba(17, 16, 126, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Poppins', 'Nunito', 'Quicksand', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--rs-text);
  background: var(--rs-bg);
  -webkit-font-smoothing: antialiased;
}

/* Soft branded backdrop for auth screens */
.rs-auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(242, 181, 5, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(32, 28, 196, .16), transparent 55%),
    linear-gradient(180deg, #fbfbff 0%, var(--rs-bg) 100%);
}

/* ---------------- Brand mark ---------------- */
.rs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}
.rs-brand__logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--rs-gold-light);
  font-weight: 700; font-size: 22px;
  background: linear-gradient(145deg, var(--rs-blue-bright), var(--rs-navy));
  box-shadow: var(--rs-shadow-sm);
}
.rs-brand__name {
  font-weight: 700; font-size: 20px; letter-spacing: .3px;
  color: var(--rs-navy);
}
.rs-brand__tag {
  text-align: center; color: var(--rs-muted);
  font-size: 14px; margin: 2px 0 22px;
}

/* ---------------- Card ---------------- */
.rs-card {
  width: 100%;
  max-width: 460px;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
  padding: 32px 30px;
}
.rs-card--wide { max-width: 560px; }

.rs-title {
  font-size: 24px; font-weight: 600; color: var(--rs-navy);
  margin: 0 0 4px;
}
.rs-subtitle { color: var(--rs-muted); font-size: 14px; margin: 0 0 22px; }

/* ---------------- Form fields ---------------- */
.rs-field { margin-bottom: 16px; }
.rs-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--rs-text); margin-bottom: 6px;
}
.rs-label .rs-req { color: var(--rs-danger); }
.rs-input, .rs-select, textarea.rs-input {
  width: 100%;
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  color: var(--rs-text);
  background: #fbfbfe;
  border: 1.5px solid #c0c4da;
  border-radius: var(--rs-radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rs-input:hover, .rs-select:hover { border-color: #a7abc9; }
.rs-input:focus, .rs-select:focus {
  outline: none;
  border-color: var(--rs-blue-bright);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 28, 196, .12);
}
.rs-input::placeholder { color: #9aa0b8; }

.rs-row { display: flex; gap: 12px; }
.rs-row > .rs-field { flex: 1; }

.rs-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--rs-text); margin: 4px 0 4px;
}
.rs-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--rs-blue-bright); }

.rs-hint { font-size: 13px; color: var(--rs-muted); margin-top: 6px; }

/* ---------------- Buttons ---------------- */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 13px 18px;
  border: none; border-radius: var(--rs-radius-sm);
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--rs-blue-bright), var(--rs-navy));
  box-shadow: var(--rs-shadow-sm);
  transition: transform .08s, box-shadow .15s, opacity .15s;
}
.rs-btn:hover { box-shadow: 0 12px 30px -12px rgba(17,16,126,.6); }
.rs-btn:active { transform: translateY(1px); }
.rs-btn:disabled { opacity: .6; cursor: not-allowed; }
.rs-btn--gold { background: linear-gradient(135deg, var(--rs-gold-light), var(--rs-gold)); color: #3a2b00; }
.rs-btn--ghost {
  background: transparent; color: var(--rs-blue);
  border: 1.5px solid var(--rs-border); box-shadow: none;
}

.rs-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.rs-link { color: var(--rs-blue-bright); text-decoration: none; font-weight: 500; }
.rs-link:hover { text-decoration: underline; }
.rs-center { text-align: center; }
.rs-mt { margin-top: 18px; }

/* ---------------- Alerts ---------------- */
.rs-alert {
  font-size: 14px; padding: 11px 14px; border-radius: var(--rs-radius-sm);
  margin-bottom: 16px; display: none;
}
.rs-alert.show { display: block; }
.rs-alert--error   { background: #fdecea; color: var(--rs-danger); border: 1px solid #f5c6c0; }
.rs-alert--success { background: #e7f6ee; color: var(--rs-success); border: 1px solid #b7e3c9; }

/* ---------------- OTP boxes ---------------- */
.rs-otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0 6px; }
.rs-otp input {
  width: 48px; height: 56px; text-align: center;
  font-size: 22px; font-weight: 600; color: var(--rs-navy);
  border: 1.5px solid var(--rs-border); border-radius: var(--rs-radius-sm);
  background: #fbfbfe;
}
.rs-otp input:focus {
  outline: none; border-color: var(--rs-blue-bright);
  box-shadow: 0 0 0 4px rgba(32,28,196,.12); background: #fff;
}
.rs-resend { text-align: center; font-size: 14px; color: var(--rs-muted); margin-top: 14px; }

/* ---------------- Service buttons grid (Section 3 preview) ---------------- */
.rs-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--rs-border);
}
.rs-shell { max-width: 980px; margin: 0 auto; padding: 28px 18px 60px; }
.rs-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.rs-service {
  border-radius: var(--rs-radius);
  padding: 22px 18px; min-height: 140px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rs-border);
  background: #fff; box-shadow: var(--rs-shadow-sm);
}
.rs-service__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; color: var(--rs-navy);
  background: linear-gradient(145deg, var(--rs-gold-light), var(--rs-gold));
}
.rs-service__name { font-weight: 600; color: var(--rs-navy); }
.rs-service__soon { font-size: 12px; color: var(--rs-muted); }
.rs-service--filled {
  background: linear-gradient(145deg, var(--rs-blue-bright), var(--rs-navy)); color: #fff;
}
.rs-service--filled .rs-service__name { color: #fff; }
.rs-service--filled .rs-service__soon { color: #cdd0f5; }

@media (max-width: 480px) {
  .rs-card { padding: 26px 20px; }
  .rs-row { flex-direction: column; gap: 0; }
  .rs-otp input { width: 42px; height: 50px; font-size: 20px; }
}

/* ---------------- Password show/hide toggle ---------------- */
.rs-pass { position: relative; }
.rs-pass .rs-input { padding-right: 48px; }
.rs-pass__toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: none; background: none; cursor: pointer;
  color: var(--rs-muted); border-radius: 9px;
  transition: color .15s, background .15s;
}
.rs-pass__toggle:hover { color: var(--rs-blue-bright); background: #f0f1f8; }
.rs-pass__toggle:focus-visible { outline: 2px solid var(--rs-blue-bright); outline-offset: 1px; }
.rs-pass__toggle svg { width: 20px; height: 20px; display: block; }
.rs-pass__toggle .ico-eye-off { display: none; }
.rs-pass__toggle.is-visible .ico-eye { display: none; }
.rs-pass__toggle.is-visible .ico-eye-off { display: block; }

/* ---------------- Module 2: dynamic forms, services, admin ---------------- */
.rs-checkgroup { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.rs-checkgroup--inline { flex-direction: row; gap: 20px; }
.rs-file { padding: 9px 12px; background: #fbfbfe; }

/* service cards as links */
a.rs-service { text-decoration: none; color: inherit; transition: transform .08s, box-shadow .15s; }
a.rs-service:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(17,16,126,.5); }
.rs-service__desc { font-size: 12.5px; color: var(--rs-muted); line-height: 1.4; }
.rs-service--filled .rs-service__desc { color: #d3d5f7; }

/* ---- Admin shell (corporate) ---- */
.rs-admin { display: flex; min-height: 100vh; background: #F5F6FB; }
.rs-admin__side {
  width: 244px; flex-shrink: 0; position: sticky; top: 0; align-self: flex-start;
  min-height: 100vh; background: linear-gradient(185deg, var(--rs-navy), #0d0c5e);
  color: #fff; padding: 22px 16px; display: flex; flex-direction: column;
}
.rs-admin__logo { display: flex; align-items: center; gap: 11px; padding: 2px 6px 18px; }
.rs-admin__logo-badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rs-blue-bright), var(--rs-gold));
  color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; flex-shrink: 0;
}
.rs-admin__logo-badge img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.rs-admin__logo-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.rs-admin__logo-sub { font-size: 11px; color: #b9bbf0; margin-top: 1px; }
.rs-admin__navlabel { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8f92d6; margin: 14px 8px 6px; }
.rs-admin__nav a {
  display: flex; align-items: center; gap: 11px; color: #d7d8f7; text-decoration: none;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 2px;
  position: relative; transition: background .15s, color .15s;
}
.rs-admin__nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.rs-admin__nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.rs-admin__nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.rs-admin__nav a.active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--rs-gold);
}
.rs-admin__nav--bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.10); }
.rs-admin__nav--bottom a { color: #a9abe0; font-size: 13px; }

.rs-admin__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-admin__topbar {
  min-height: 62px; background: #fff; border-bottom: 1px solid #e7e8f3;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 5;
}
.rs-admin__topbar-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-muted); font-weight: 600; }
.rs-admin__user { display: flex; align-items: center; gap: 10px; }
.rs-admin__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--rs-blue-bright), var(--rs-navy)); color: #fff; font-weight: 700; font-size: 13px; }
.rs-admin__user-meta { line-height: 1.25; text-align: right; }
.rs-admin__user-name { font-size: 13.5px; font-weight: 600; color: var(--rs-text); }
.rs-admin__user-role { font-size: 11px; color: var(--rs-gold); font-weight: 700; text-transform: capitalize; }
.rs-admin__body { padding: 28px; max-width: 1040px; }
.rs-admin__body h1 { color: var(--rs-navy); font-size: 23px; margin: 0 0 4px; letter-spacing: -.01em; }

/* stat cards */
.rs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.rs-stat { position: relative; background: #fff; border: 1px solid #e9eaf4; border-radius: 16px; padding: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,16,126,.04); }
.rs-stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--rs-blue-bright), var(--rs-gold)); }
.rs-stat__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #eef0fb; color: var(--rs-blue-bright); margin-bottom: 13px; }
.rs-stat__icon svg { width: 21px; height: 21px; }
.rs-stat__num { font-size: 30px; font-weight: 700; color: var(--rs-navy); line-height: 1; }
.rs-stat__label { font-size: 13px; color: var(--rs-muted); margin-top: 6px; }

/* tables (corporate) */
.rs-table { width: 100%; border-collapse: collapse; margin: 14px 0; background: #fff; border: 1px solid #e9eaf4; border-radius: 14px; overflow: hidden; }
.rs-table th, .rs-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef0f6; font-size: 14px; }
.rs-table th { color: var(--rs-muted); font-weight: 600; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; background: #fafbfe; }
.rs-table tbody tr:last-child td { border-bottom: none; }
.rs-table tbody tr:hover { background: #fafbff; }
.rs-btn--sm { width: auto; padding: 8px 15px; font-size: 14px; display: inline-flex; }
.rs-btn--danger { background: linear-gradient(135deg, #e05a4d, #c0392b); }
.rs-btn--row { width: auto; padding: 6px 11px; font-size: 13px; }
.rs-inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rs-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #eef0fb; color: var(--rs-navy); }
.rs-pill--off { background: #f2f2f5; color: #999; }
.rs-preview { background: #fff; border: 1px solid #e9eaf4; border-radius: 16px; padding: 6px 22px; }
.rs-preview__row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef0f6; font-size: 14px; }
.rs-preview__row:last-child { border-bottom: none; }
.rs-preview__label { width: 42%; color: var(--rs-muted); }
.rs-preview__value { flex: 1; color: var(--rs-text); font-weight: 500; }

/* quick-action cards */
.rs-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; margin-top: 20px; }
.rs-quick a { display: flex; gap: 13px; text-decoration: none; background: #fff; border: 1px solid #e9eaf4; border-radius: 14px; padding: 16px 18px; transition: transform .08s, box-shadow .15s, border-color .15s; }
.rs-quick a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(17,16,126,.4); border-color: #d7d9ef; }
.rs-quick__ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: #eef0fb; color: var(--rs-blue-bright); }
.rs-quick__ic svg { width: 20px; height: 20px; }
.rs-quick__title { font-weight: 600; color: var(--rs-navy); font-size: 15px; margin-bottom: 2px; }
.rs-quick__desc { font-size: 12.5px; color: var(--rs-muted); line-height: 1.45; }

/* Mobile / tablet: sidebar becomes a slide-in drawer toggled by the ☰ button */
.rs-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.rs-mobilebar { display: none; }
.rs-menu-overlay { display: none; }

@media (max-width: 860px) {
  .rs-mobilebar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: #fff; border-bottom: 1px solid #e4e6f0;
    position: sticky; top: 0; z-index: 45;
  }
  .rs-hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
    color: var(--rs-navy, #201CC4); background: #eef0fb;
  }
  .rs-hamburger svg { width: 22px; height: 22px; }
  .rs-mobilebar__brand { font-weight: 700; color: var(--rs-navy, #201CC4); font-size: 16px; }

  .rs-admin { flex-direction: row; }
  .rs-admin__side {
    position: fixed; top: 0; left: 0;
    width: 260px; height: 100vh; height: 100dvh; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 60; padding-bottom: 40px;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  /* let items flow top-to-bottom so the whole menu scrolls */
  .rs-admin__nav--bottom { margin-top: 20px; }
  .rs-menu-toggle:checked ~ .rs-admin .rs-admin__side { transform: translateX(0); }

  .rs-menu-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 55;
  }
  .rs-menu-toggle:checked ~ .rs-admin .rs-menu-overlay { opacity: 1; pointer-events: auto; }

  .rs-admin__main { width: 100%; min-width: 0; }
  .rs-admin__body { padding: 18px; }
}

/* ---- Stage B: customer notice + tip banners, contact ---- */
.rs-notice {
  background: #fff8e6; border: 1px solid #f2d98a; color: #7a5a00;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.5;
}
.rs-tip {
  text-align: center;
  max-width: 720px;
  margin: 6px auto 14px;
  padding: clamp(12px, 2.4vw, 18px) clamp(16px, 4vw, 30px);
  background: linear-gradient(180deg, #fffdf5 0%, #fff8ea 100%);
  border: 1px solid #f0dfa8;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(242, 181, 5, 0.08);
}
.rs-tip__head {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(19px, 4vw, 26px);
  font-style: italic;
  font-weight: 600;
  color: #201CC4;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  line-height: 1.25;
}
.rs-tip__body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 3vw, 18px);
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.rs-tip__sep {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 10px; color: #F2B505;
}
.rs-tip__sep::before, .rs-tip__sep::after {
  content: ""; height: 2px; width: clamp(32px, 12vw, 64px); border-radius: 2px;
}
.rs-tip__sep::before { background: linear-gradient(90deg, transparent, #F2B505); }
.rs-tip__sep::after  { background: linear-gradient(90deg, #F2B505, transparent); }
.rs-tip__sep span { font-size: clamp(15px, 3.5vw, 18px); line-height: 1; }
.rs-contact-card {
  background: #fff; border: 1px solid #e4e6f0; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
}
.rs-contact-card a { color: #201CC4; text-decoration: none; }
.rs-contact-row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.rs-contact-row b { min-width: 90px; color: #555; font-weight: 600; }

/* Customer section heading (e.g. "Book a Service") */
.rs-section-head {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 600;
  color: #201CC4;
  margin: 6px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F2B505;
  display: inline-block;
}

/* Edit profile / Log out actions in the admin topbar (left of the avatar) */
.rs-admin__topbar-actions { display: flex; gap: 8px; align-items: center; margin-right: 6px; }
@media (max-width: 640px) {
  .rs-admin__user-meta { display: none; }
  .rs-admin__topbar-actions .rs-btn { padding: 6px 10px; font-size: 12px; }
}

/* Customer portal: contact numbers in the header */
.rs-cust-contact {
  display: inline-flex; align-items: center; gap: 8px;
  color: #201CC4; text-decoration: none; font-weight: 600; font-size: 14px;
  background: #eef0fb; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.rs-cust-contact svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 720px) {
  .rs-admin__topbar-label { display: none; }
  .rs-cust-contact { font-size: 13px; padding: 6px 12px; }
}
@media (max-width: 420px) {
  .rs-cust-contact span { font-size: 12px; }
}

/* Dashboard welcome heading (bigger on wide screens) */
.rs-welcomemsg {
  font-size: clamp(24px, 4.2vw, 40px);
  font-weight: 700;
  color: var(--rs-navy, #201CC4);
  margin: 2px 0 16px;
  line-height: 1.2;
}
/* Dashboard two-column recent tables */
.rs-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.rs-dash-col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
@media (max-width: 820px) { .rs-dash-cols { grid-template-columns: 1fr; } }

/* ============================================================
   Readability + responsive tables on phones/tablets
   ============================================================ */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .rs-subtitle { font-size: 15.5px; }
  .rs-label { font-size: 15px; }
  .rs-input, .rs-select { font-size: 16px; }
  .rs-hint { font-size: 14px; color: #4d5167; }
  .rs-admin__nav a { font-size: 16px; }
  .rs-admin__navlabel { font-size: 12px; }
  .rs-pill { font-size: 13px; padding: 4px 11px; }
  .rs-preview__row { font-size: 15.5px; }
  .rs-preview__label { color: #3f4358; }
  .rs-link, .rs-btn--row { font-size: 15px; }
  .rs-title { font-size: 22px; }
}

/* Tables become stacked cards on small screens — no sideways scrolling */
@media (max-width: 700px) {
  .rs-table { border: none; background: transparent; box-shadow: none; }
  .rs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rs-table, .rs-table tbody, .rs-table tr, .rs-table td { display: block; width: 100%; }
  .rs-table tr {
    margin: 0 0 14px; padding: 6px 16px;
    border: 1px solid #e2e4f0; border-radius: 14px; background: #fff;
    box-shadow: 0 4px 14px -10px rgba(17,16,126,.25);
  }
  .rs-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    text-align: right; padding: 11px 0; border-bottom: 1px solid #f0f1f6;
    font-size: 15.5px; color: #1f2333;
  }
  .rs-table tr td:last-child { border-bottom: none; }
  .rs-table td::before {
    content: attr(data-label); font-weight: 600; color: #4d5167;
    text-align: left; flex: none; font-size: 14px;
  }
  .rs-table td:empty { display: none; }
  /* action cells: let buttons sit on the right and wrap neatly */
  .rs-table td.rs-td-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---- Dashboard "cool colour" tables ---- */
.rs-dtable { border-radius: 14px; overflow: hidden; border: 1px solid #e7e8f3;
  box-shadow: 0 8px 22px -14px rgba(17,16,126,.35); margin-bottom: 4px; }
.rs-dtable thead th {
  background: linear-gradient(135deg, var(--rs-blue-bright), var(--rs-navy));
  color: #fff; font-size: 12px; letter-spacing: .04em; border-bottom: none;
}
.rs-dtable--gold thead th {
  background: linear-gradient(135deg, var(--rs-gold-light), var(--rs-gold));
  color: #4a3600;
}
.rs-dtable tbody tr:nth-child(even) { background: #f7f8ff; }
.rs-dtable tbody tr:hover { background: #eef0fb; }
.rs-dtable td { border-bottom: 1px solid #eef0f6; }

@media (max-width: 700px) {
  /* let the dashboard tables become clean cards too */
  .rs-dtable { border: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .rs-dtable tbody tr:nth-child(even) { background: #fff; }
}

/* App footer */
.rs-footer { margin-top: 40px; padding: 22px 16px; text-align: center; }
.rs-footer__inner { color: #7a7e93; font-size: 13.5px; }
.rs-admin__main .rs-footer { margin-top: 24px; border-top: 1px solid #eceef6; }
/* On centered auth pages, keep the footer at the bottom instead of beside the card */
.rs-auth-bg { position: relative; padding-bottom: 96px; }
.rs-auth-bg .rs-footer { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 24px 16px 20px; }

/* Pager bar */
.rs-pager { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:14px; }
.rs-pager__per a { margin-left:8px; }
.rs-pager__on { font-weight:700; text-decoration:underline; }
.rs-pager__nav { margin-left:auto; display:flex; gap:8px; }

/* Print: show only the report content */
@media print {
  .rs-admin__side, .rs-mobilebar, .rs-admin__topbar, .rs-noprint, .rs-btn, .rs-pager__nav { display:none !important; }
  .rs-admin, .rs-admin__main, .rs-admin__body { display:block !important; margin:0 !important; padding:0 !important; }
  body { background:#fff !important; }
  .rs-dtable thead th, .rs-table thead th { background:#eee !important; color:#000 !important; -webkit-print-color-adjust:exact; }
}

.rs-report-head { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; justify-content:space-between; }

/* Appointments: in-person CTA on the home page */
.rs-inperson-cta { display:flex; align-items:center; gap:14px; margin:16px 0 4px; padding:16px 18px; border:1px solid #e2e4f0; border-left:5px solid var(--rs-gold,#F2B505); border-radius:12px; background:#fffdf5; text-decoration:none; color:inherit; }
.rs-inperson-cta:hover { background:#fff8e6; }
.rs-inperson-cta__icon { font-size:24px; }
.rs-inperson-cta__arrow { margin-left:auto; color:var(--rs-navy,#11107E); font-size:20px; font-weight:700; }

/* Appointments: customer slot picker */
.rs-slotpick__day { margin:10px 0 14px; }
.rs-slotpick__date { font-weight:700; color:var(--rs-navy,#11107E); margin-bottom:8px; }
.rs-slotpick__times { display:flex; flex-wrap:wrap; gap:8px; }
.rs-slotchip { position:relative; display:inline-flex; }
.rs-slotchip input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.rs-slotchip span { display:inline-block; padding:8px 14px; border:1.5px solid #d7dae8; border-radius:999px; font-size:13.5px; cursor:pointer; transition:all .12s; background:#fff; }
.rs-slotchip input:checked + span { background:var(--rs-primary,#201CC4); border-color:var(--rs-primary,#201CC4); color:#fff; font-weight:600; }
.rs-slotchip input:focus-visible + span { outline:2px solid var(--rs-gold,#F2B505); }

/* Prominent auth cross-links (Sign up / Log in) */
.rs-authlink { text-align:center; margin:4px 0 14px; font-size:15px; font-weight:600; color:var(--rs-muted,#4d5167); }
.rs-authlink a { color:var(--rs-primary,#201CC4); font-weight:800; text-decoration:none; }
.rs-authlink a:hover { text-decoration:underline; }

/* Sub-tabs (Appointments: Bookings / Availability) */
.rs-tabs { display:flex; gap:6px; margin:6px 0 14px; border-bottom:2px solid #eceef6; }
.rs-tab { padding:8px 16px; font-weight:600; color:var(--rs-muted,#4d5167); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; }
.rs-tab:hover { color:var(--rs-primary,#201CC4); }
.rs-tab--active { color:var(--rs-primary,#201CC4); border-bottom-color:var(--rs-primary,#201CC4); }

/* In-person appointment: prominent blue call-to-action button */
.rs-inperson-btn { display:flex; align-items:center; justify-content:center; width:100%; margin:6px 0 22px; padding:16px 18px; font-size:16.5px; font-weight:700; box-shadow:0 4px 14px rgba(32,28,196,.22); }
.rs-inperson-btn:hover { transform:translateY(-1px); }

/* Home-visit CTA — gold variant to distinguish from the blue appointment button */
.rs-homevisit-btn { background:#F2B505 !important; color:#3a2b00 !important; box-shadow:0 4px 14px rgba(242,181,5,.28); }
.rs-homevisit-btn:hover { background:#e0a800 !important; }

/* ── How-it-works process strip ─────────────────────────── */
.rs-steps { display:flex; align-items:stretch; justify-content:center; flex-wrap:wrap; gap:6px; margin:14px 0 18px; }
.rs-steps__item { flex:1 1 0; min-width:96px; max-width:150px; background:#f4f5ff; border:1px solid #e4e6fb; border-radius:12px; padding:12px 8px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:7px; }
.rs-steps__num { width:34px; height:34px; border-radius:50%; background:#201CC4; color:#fff; font-weight:700; font-size:16px; line-height:34px; box-shadow:0 3px 8px rgba(32,28,196,.28); }
.rs-steps__label { font-size:12px; font-weight:600; color:#25263a; line-height:1.35; }
.rs-steps__arrow { align-self:center; color:#F2B505; font-size:20px; font-weight:700; }
@media (max-width:640px){
  .rs-steps__arrow { transform:rotate(90deg); }
  .rs-steps__item { flex-basis:100%; max-width:none; flex-direction:row; justify-content:flex-start; gap:12px; text-align:left; padding:10px 14px; }
  .rs-steps__label { font-size:13.5px; }
}

/* ── Stacked 3-language welcome message ─────────────────── */
.rs-welcomemsg { background:#fffdf3; border:1px solid #eceadf; border-left:5px solid #F2B505; border-radius:12px; padding:14px 18px; margin:6px 0 16px; }
.rs-welcomemsg__line { margin:0 0 10px; font-size:13.5px; line-height:1.75; color:#33344a; }
.rs-welcomemsg__line:last-child { margin-bottom:0; }
.rs-welcomemsg__line[lang="hi"], .rs-welcomemsg__line[lang="te"] { border-top:1px dashed #ece7d4; padding-top:10px; }
.rs-welcomemsg__line b { color:#11107E; }

/* Bold + underlined auth cross-link (Login Here / Register Here) */
.rs-authlink__u { text-decoration:underline !important; text-underline-offset:2px; }

/* Registration: intro (steps + message) stacked above the form card */
.rs-auth-stack { display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; }
.rs-auth-intro { width:100%; max-width:560px; margin:0 auto; }
.rs-auth-intro .rs-steps { margin-top:0; }
