/* Regal Reign — Kalkulator Pembiayaan
   Theme: Bank Islam Malaysia visual language (maroon/burgundy #8B1538,
   dense card grids, bold headings, flat icons) — RegalReign's own branding
   (name, mark) is kept; only the theme (palette/layout/type mood) follows. */

:root {
  --rr-bg: #faf5f6;
  --rr-surface: #ffffff;
  --rr-ink: #241116;
  --rr-accent: #8b1538;
  --rr-accent-hover: #6e0f2c;
  --rr-accent-soft: #fbeef1;
  --rr-muted: #6b5458;
  --rr-muted-2: #8a7377;
  --rr-border: #ecd9dc;
  --rr-focus: #c2607d;
  --rr-card-shadow: 0 24px 70px rgba(43, 8, 20, .14);
  --rr-success: #1f8a54;
  --rr-success-soft: #e8f6ee;
  --rr-pending: #9a8285;
  --rr-pending-soft: #f1e7e8;
  --rr-error: #d92d20;
  --rr-error-soft: #fdecea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--rr-bg);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--rr-ink);
  line-height: 1.5;
}

a { color: inherit; }

/* Header */

.rr-header {
  background: var(--rr-surface);
  border-bottom: 1px solid var(--rr-border);
}

.rr-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.rr-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
}

.rr-logo-text {
  font-weight: 800;
  font-size: 19px;
  color: var(--rr-ink);
}

.rr-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.rr-nav a {
  text-decoration: none;
  color: var(--rr-ink);
}

.rr-nav-cta {
  background: var(--rr-accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background .15s ease;
}

.rr-nav-cta:hover { background: var(--rr-accent-hover); }

/* Hero */

.rr-hero {
  padding: 56px 24px 24px;
}

.rr-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.rr-eyebrow {
  margin: 0 0 10px;
  color: var(--rr-accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rr-hero h1 {
  margin: 0 0 14px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--rr-ink);
}

.rr-hero-sub {
  margin: 0;
  color: var(--rr-muted);
  font-size: 16px;
}

.rr-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}

.rr-hero-trust {
  margin: 0;
  color: var(--rr-muted-2);
  font-size: 12.5px;
  font-weight: 600;
}

/* Feature card grid (Bank Islam quick-link card pattern) */

.rr-features {
  padding: 8px 24px 40px;
}

.rr-features-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.rr-features-title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--rr-ink);
}

.rr-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rr-feature-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 12px;
  padding: 22px 20px;
}

.rr-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--rr-accent);
}

.rr-feature-icon svg { width: 26px; height: 26px; }

.rr-feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--rr-ink);
}

.rr-feature-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--rr-muted);
  line-height: 1.55;
}

.rr-feature-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--rr-accent);
  text-decoration: none;
}

.rr-feature-link:hover { text-decoration: underline; }

/* Calculator section */

.rr-calc-section {
  padding: 24px 24px 64px;
}

.rr-calc-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.rr-calc-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--rr-ink);
  text-align: center;
}

.rr-calc-intro {
  margin: 0 0 28px;
  color: var(--rr-muted);
  text-align: center;
}

.rr-plan-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto 10px;
  padding: 5px;
  background: var(--rr-accent-soft);
  border-radius: 999px;
}

.rr-plan-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--rr-muted);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.rr-plan-tab span {
  font-weight: 500;
  font-size: 11px;
  color: inherit;
  opacity: .75;
}

.rr-plan-tab.is-active {
  background: var(--rr-surface);
  color: var(--rr-accent);
  box-shadow: 0 6px 18px rgba(43, 8, 20, .12);
}

.rr-plan-tab:not(.is-active):hover { color: var(--rr-accent-hover); }

.rr-takaful-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  max-width: 380px;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--rr-surface);
  border: 1.5px solid var(--rr-accent-soft);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(43, 8, 20, .06);
}

.rr-takaful-tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--rr-muted);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.rr-takaful-tab.is-active {
  background: var(--rr-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 8, 20, .18);
}

.rr-takaful-tab:not(.is-active):hover { color: var(--rr-accent-hover); background: var(--rr-accent-soft); }

.rr-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.rr-calc-card {
  background: var(--rr-surface);
  border-radius: 16px;
  box-shadow: var(--rr-card-shadow);
  padding: 30px;
}

/* Sliders */

.rr-field-block { margin-bottom: 34px; }
.rr-field-block:last-child { margin-bottom: 0; }

.rr-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rr-field-head label {
  font-weight: 700;
  font-size: 15px;
  color: var(--rr-ink);
}

.rr-field-value {
  font-weight: 800;
  font-size: 22px;
  color: var(--rr-accent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 40px;
  background: var(--rr-border);
  outline: none;
  margin: 6px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rr-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(139, 21, 56, .45);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rr-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(139, 21, 56, .45);
  cursor: pointer;
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--rr-focus);
  outline-offset: 4px;
}

.rr-field-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--rr-muted-2);
}

/* Results card */

.rr-calc-results {
  background: var(--rr-ink);
  color: #fff;
}

.rr-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.rr-result-row strong {
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
}

.rr-result-row span {
  font-weight: 700;
  text-align: right;
}

.rr-result-label {
  margin: 20px 0 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
}

.rr-monthly-bubble {
  background: var(--rr-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  padding: 16px 18px;
  border-radius: 12px;
}

.rr-calc-cta {
  width: 100%;
  margin-top: 18px;
}

.rr-calc-cta-note {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 600;
}

.rr-disclaimer {
  margin: 26px 0 0;
  font-size: 12.5px;
  color: var(--rr-muted-2);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */

.rr-cta-band {
  background: var(--rr-accent);
}

.rr-cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rr-cta-copy h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.rr-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.rr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.rr-btn-light {
  background: #fff;
  color: var(--rr-accent);
}

.rr-btn-light:hover { background: var(--rr-accent-soft); }

.rr-btn-primary {
  background: var(--rr-accent);
  color: #fff;
}

.rr-btn-primary:hover { background: var(--rr-accent-hover); }

.rr-btn-primary:disabled {
  background: var(--rr-pending);
  cursor: not-allowed;
}

.rr-btn-outline {
  background: transparent;
  color: var(--rr-accent);
  border: 1.5px solid var(--rr-accent);
  padding: 9px 16px;
  font-size: 13px;
}

.rr-btn-outline:hover { background: var(--rr-accent-soft); }

.rr-btn-outline:disabled {
  color: var(--rr-pending);
  border-color: var(--rr-pending);
  cursor: not-allowed;
}

.rr-btn-ghost {
  background: transparent;
  color: var(--rr-muted);
}

.rr-btn-ghost:hover { color: var(--rr-ink); }

/* Footer */

.rr-footer {
  background: var(--rr-ink);
  padding: 28px 24px;
}

.rr-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.rr-footer-note {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.rr-footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

/* ===================== Application flow modal ===================== */

.rr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 17, 22, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.rr-modal-overlay[hidden] { display: none; }

.rr-modal {
  background: var(--rr-surface);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(20, 5, 12, .35);
}

.rr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rr-border);
}

.rr-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.rr-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--rr-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.rr-modal-close:hover { color: var(--rr-ink); }

/* Stepper */

.rr-stepper {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 16px 24px;
  gap: 4px;
  border-bottom: 1px solid var(--rr-border);
  overflow-x: auto;
}

.rr-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.rr-step-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--rr-pending-soft);
  color: var(--rr-pending);
}

.rr-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rr-muted-2);
  white-space: nowrap;
}

.rr-step.is-active .rr-step-dot { background: var(--rr-accent); color: #fff; }
.rr-step.is-active .rr-step-label { color: var(--rr-ink); }
.rr-step.is-done .rr-step-dot { background: var(--rr-success); color: #fff; }
.rr-step.is-done .rr-step-label { color: var(--rr-ink); }

.rr-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.rr-flow-panel { display: none; }
.rr-flow-panel.is-active { display: block; }

.rr-flow-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.rr-flow-intro {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--rr-muted);
  line-height: 1.55;
}

.rr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rr-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rr-muted);
}

.rr-form-field-wide { grid-column: 1 / -1; }

.rr-form-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.rr-form-field input[type="text"],
.rr-form-field input[type="number"],
.rr-form-field input[type="email"],
.rr-form-field select,
.rr-form-field textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--rr-ink);
  border: 1.5px solid var(--rr-border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--rr-surface);
}

.rr-form-field input:focus-visible,
.rr-form-field select:focus-visible,
.rr-form-field textarea:focus-visible {
  outline: 2px solid var(--rr-focus);
  outline-offset: 1px;
  border-color: var(--rr-accent);
}

.rr-form-field textarea { resize: vertical; }

/* Inline validation — invalid fields get a red border + red error text
   directly beneath them (the "error message" / "inline validation" pattern),
   so the person sees exactly what to fix instead of a blocking alert. */

.rr-error-text {
  display: none;
  color: var(--rr-error);
  font-size: 11.5px;
  font-weight: 700;
}

.rr-form-field.is-invalid input,
.rr-form-field.is-invalid select,
.rr-form-field.is-invalid textarea,
.rr-form-field.is-invalid .rr-datepicker-input {
  border-color: var(--rr-error);
  background: var(--rr-error-soft);
}

.rr-form-field.is-invalid .rr-error-text { display: block; }

.rr-step-error-banner {
  display: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--rr-error-soft);
  color: var(--rr-error);
  font-size: 13px;
  font-weight: 700;
}

.rr-step-error-banner.is-visible { display: block; }

.rr-eligibility-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  display: none;
}

.rr-eligibility-banner.is-visible { display: block; }
.rr-eligibility-banner.is-pass { background: var(--rr-success-soft); color: var(--rr-success); }
.rr-eligibility-banner.is-fail { background: var(--rr-accent-soft); color: var(--rr-accent-hover); }

/* e-KYC modules */

.rr-ekyc-modules {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rr-ekyc-module {
  border: 1.5px solid var(--rr-border);
  border-radius: 12px;
  padding: 16px;
}

.rr-ekyc-module.is-invalid { border-color: var(--rr-error); }

.rr-ekyc-module-error {
  display: none;
  margin: 10px 0 0;
  color: var(--rr-error);
  font-size: 12px;
  font-weight: 700;
}

.rr-ekyc-module.is-invalid .rr-ekyc-module-error { display: block; }

/* Email OTP verification */

.rr-email-verify {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rr-otp-row {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--rr-accent-soft);
}

.rr-otp-hint {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rr-accent-hover);
}

.rr-otp-hint strong { font-variant-numeric: tabular-nums; letter-spacing: 1px; }

.rr-otp-inputs {
  display: flex;
  gap: 8px;
}

.rr-otp-inputs input {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  width: 120px;
  border: 1.5px solid var(--rr-border);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--rr-surface);
  color: var(--rr-ink);
}

.rr-otp-inputs input:focus-visible { outline: 2px solid var(--rr-focus); outline-offset: 1px; }

.rr-ekyc-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.rr-ekyc-module-title {
  font-size: 14px;
  font-weight: 800;
}

.rr-ekyc-module-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--rr-muted);
  line-height: 1.5;
}

.rr-status-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rr-pending-soft);
  color: var(--rr-pending);
}

.rr-status-chip[data-state="processing"] { background: var(--rr-accent-soft); color: var(--rr-accent); }
.rr-status-chip[data-state="passed"] { background: var(--rr-success-soft); color: var(--rr-success); }

.rr-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.rr-upload-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px dashed var(--rr-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.rr-upload-row .rr-upload-tile { margin-bottom: 0; }

.rr-upload-tile:has(.rr-file-btn:hover) { border-color: var(--rr-accent); }

.rr-upload-tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rr-ink);
}

.rr-upload-tile-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rr-upload-tile-file {
  font-size: 11.5px;
  color: var(--rr-muted-2);
}

.rr-upload-tile-file:empty::before { content: attr(data-empty); }

/* Shared camera/manual file-picker button */

.rr-file-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rr-accent);
  border: 1.5px solid var(--rr-accent);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}

.rr-file-btn:hover { background: var(--rr-accent-soft); }

.rr-file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Supporting documents */

.rr-doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rr-doc-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--rr-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.rr-doc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.rr-doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rr-doc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rr-ink);
}

.rr-doc-name em {
  font-style: normal;
  color: var(--rr-accent);
}

.rr-doc-file {
  font-size: 12px;
  color: var(--rr-muted-2);
  text-align: right;
}

.rr-doc-file:empty::before { content: attr(data-empty); }
.rr-doc-row.is-filled { border-color: var(--rr-success); }
.rr-doc-row.is-filled .rr-doc-file { color: var(--rr-success); font-weight: 700; }

.rr-doc-row.is-invalid { border-color: var(--rr-error); }

.rr-doc-row-error {
  display: none;
  margin: 0;
  color: var(--rr-error);
  font-size: 12px;
  font-weight: 700;
}

.rr-doc-row.is-invalid .rr-doc-row-error { display: block; }

.rr-print-form-note {
  background: var(--rr-bg-2, #f6f5f1);
  border: 1px dashed var(--rr-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
}

.rr-print-form-note p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--rr-muted-2);
}

.rr-print-form-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rr-accent);
  text-decoration: none;
}

.rr-print-form-link::before {
  content: "\2913";
}

.rr-print-form-link:hover { text-decoration: underline; }

/* Review */

.rr-review-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rr-review-block {
  border: 1.5px solid var(--rr-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.rr-review-block h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--rr-muted-2);
}

.rr-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rr-border);
}

.rr-review-row:last-child { border-bottom: none; }
.rr-review-row span:first-child { color: var(--rr-muted); }
.rr-review-row span:last-child { font-weight: 700; text-align: right; }

/* Confirmation */

.rr-confirm {
  text-align: center;
  padding: 20px 0;
}

.rr-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--rr-success-soft);
  color: var(--rr-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.rr-confirm h3 { margin: 0 0 8px; font-size: 20px; }
.rr-confirm p { margin: 0 0 6px; color: var(--rr-muted); font-size: 14px; }
.rr-confirm #confirmRef { font-weight: 800; color: var(--rr-accent); font-size: 15px; }

.rr-email-preview {
  text-align: left;
  margin: 20px 0;
  border: 1.5px solid var(--rr-border);
  border-radius: 12px;
  overflow: hidden;
}

.rr-email-preview-label {
  margin: 0;
  padding: 10px 16px;
  background: var(--rr-pending-soft);
  color: var(--rr-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.rr-email-preview-label strong { color: var(--rr-ink); }

.rr-email-preview-body {
  padding: 16px;
}

.rr-email-preview-body p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.rr-track-link-row {
  display: flex;
  gap: 8px;
}

.rr-track-link-row input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 12.5px;
  border: 1.5px solid var(--rr-border);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--rr-bg);
  color: var(--rr-muted);
}

.rr-confirm #openTrackBtn { width: 100%; }

.rr-modal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--rr-border);
}

/* flatpickr — prominent, on-theme date field */

.rr-datepicker-input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rr-ink);
  border: 2px solid var(--rr-accent);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--rr-accent-soft);
  cursor: default;
}

.rr-field-hint {
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--rr-muted-2);
  text-transform: none;
  letter-spacing: 0;
}

.rr-datepicker-input:focus-visible { outline: 2px solid var(--rr-focus); outline-offset: 1px; }

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--rr-accent);
  border-color: var(--rr-accent);
}

.flatpickr-day.today { border-color: var(--rr-accent); }
.flatpickr-day:hover { background: var(--rr-accent-soft); }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays { background: var(--rr-accent); color: #fff; fill: #fff; }
span.flatpickr-weekday { background: var(--rr-accent); color: #fff; }
.flatpickr-current-month input.cur-year { color: #fff; }
.flatpickr-current-month .flatpickr-monthDropdown-months { color: #fff; }

/* Status-tracking dashboard (track.html) */

.rr-track-section { padding: 48px 24px 64px; }

.rr-track-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rr-track-card {
  background: var(--rr-surface);
  border: 1.5px solid var(--rr-border);
  border-radius: 16px;
  padding: 26px 28px;
}

.rr-track-summary h1 {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--rr-ink);
}

.rr-track-ref {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--rr-accent);
  font-size: 14px;
}

.rr-track-submitted {
  margin: 0;
  color: var(--rr-muted);
  font-size: 13px;
}

.rr-track-empty {
  text-align: center;
}

.rr-track-empty h1 { font-size: 20px; margin: 0 0 12px; }
.rr-track-empty p { color: var(--rr-muted); font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.rr-track-empty code {
  background: var(--rr-pending-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.rr-track-disclaimer {
  text-align: center;
  color: var(--rr-muted-2);
  font-size: 12px;
  margin: 0;
}

.rr-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rr-timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 26px;
  padding-left: 4px;
}

.rr-timeline-item:last-child { padding-bottom: 0; }

.rr-timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: var(--rr-border);
}

.rr-timeline-item:last-child::before { display: none; }

.rr-timeline-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rr-surface);
  border: 2.5px solid var(--rr-border);
  margin-top: 1px;
  z-index: 1;
}

.rr-timeline-item[data-state="done"] .rr-timeline-dot { background: var(--rr-success); border-color: var(--rr-success); }
.rr-timeline-item[data-state="done"]::before { background: var(--rr-success); }
.rr-timeline-item[data-state="current"] .rr-timeline-dot {
  background: var(--rr-accent);
  border-color: var(--rr-accent);
  box-shadow: 0 0 0 4px var(--rr-accent-soft);
}

.rr-timeline-body { flex: 1; min-width: 0; }

.rr-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rr-timeline-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--rr-muted);
}

.rr-timeline-item[data-state="done"] .rr-timeline-title,
.rr-timeline-item[data-state="current"] .rr-timeline-title { color: var(--rr-ink); }

.rr-timeline-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rr-muted-2);
  white-space: nowrap;
}

.rr-timeline-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--rr-muted);
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 800px) {
  .rr-calc-grid { grid-template-columns: 1fr; }
  .rr-feature-grid { grid-template-columns: 1fr; }
  .rr-hero h1 { font-size: 30px; }
  .rr-nav { gap: 14px; font-size: 13px; }
  .rr-form-grid { grid-template-columns: 1fr; }
  .rr-upload-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .rr-header-inner { flex-wrap: wrap; gap: 12px; }
  .rr-calc-card { padding: 22px; }
  .rr-takaful-tabs { max-width: 100%; }
  .rr-takaful-tab { padding: 9px 8px; font-size: 12.5px; }
  .rr-modal { max-height: 100vh; border-radius: 0; }
  .rr-modal-overlay { padding: 0; }
  .rr-stepper { padding: 12px 16px; }
  .rr-step-label { display: none; }
}
