/* assets/rajepanchayat/css/bsr.css */
:root {
  --rp-bsr-primary: #0b6b4b;
  --rp-bsr-primary-2: #0f7a5a;
  --rp-bsr-dark: #071827;
  --rp-bsr-accent: #e3b341;
  --rp-bsr-text: #062f28;
  --rp-bsr-muted: #667085;
  --rp-bsr-border: #d9eadc;
  --rp-bsr-soft: #effaf1;
  --rp-bsr-bg: #eef8f3;
  --rp-bsr-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.rp-bsr-page {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 28px 0 46px;
  color: var(--rp-bsr-text);
}

.rp-bsr-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #075f45 0%, #0f766e 52%, #126a9a 100%);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .16);
}

.rp-bsr-hero::before,
.rp-bsr-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.rp-bsr-hero::before {
  width: 280px;
  height: 280px;
  right: -85px;
  top: -100px;
  background: rgba(255, 255, 255, .12);
}

.rp-bsr-hero::after {
  width: 190px;
  height: 190px;
  right: 150px;
  bottom: -100px;
  background: rgba(227, 179, 65, .16);
}

.rp-bsr-hero-content,
.rp-bsr-hero-panel {
  position: relative;
  z-index: 1;
}

.rp-kicker,
.rp-card-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 1000;
}

.rp-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #075f45;
  background: #ffffff;
}

.rp-bsr-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 1000;
  color: #fff;
}

.rp-bsr-hero p:not(.rp-kicker) {
  margin: 14px 0 0;
  max-width: 800px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 700;
}

.rp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rp-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
}

.rp-bsr-hero-panel {
  align-self: center;
  min-width: 260px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(7, 24, 39, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
}

.rp-bsr-hero-panel .rp-panel-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.rp-bsr-hero-panel strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 1000;
}

.rp-bsr-hero-panel small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

.rp-bsr-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rp-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--rp-bsr-border);
  background: linear-gradient(180deg, #fff, #f8fff8);
  box-shadow: var(--rp-bsr-shadow);
  color: var(--rp-bsr-muted);
}

.rp-step b {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #075f45;
  background: var(--rp-bsr-soft);
  border: 1px solid #cfe7d5;
  font-weight: 1000;
}

.rp-step span {
  font-weight: 1000;
  line-height: 1.2;
}

.rp-step.is-active {
  border-color: rgba(227, 179, 65, .60);
  box-shadow: 0 16px 36px rgba(227, 179, 65, .12);
}

.rp-step.is-active b {
  color: #111827;
  background: var(--rp-bsr-accent);
  border-color: var(--rp-bsr-accent);
}

.rp-step.is-done {
  color: var(--rp-bsr-text);
  border-color: rgba(15, 122, 90, .34);
}

.rp-step.is-done b {
  color: #fff;
  background: linear-gradient(135deg, var(--rp-bsr-primary), var(--rp-bsr-primary-2));
  border-color: var(--rp-bsr-primary-2);
}

.rp-filter-card,
.rp-result-card {
  margin-top: 18px;
  border-radius: 26px;
  border: 1px solid var(--rp-bsr-border);
  background: #fff;
  box-shadow: var(--rp-bsr-shadow);
}

.rp-filter-card {
  padding: 22px;
}

.rp-card-title-row,
.rp-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rp-card-kicker {
  color: var(--rp-bsr-primary);
}

.rp-card-title-row h2,
.rp-result-head h2 {
  margin: 0;
  color: #063f32;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -.02em;
}

.rp-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rp-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.rp-filter-grid label span {
  color: #344054;
  font-size: 13px;
  font-weight: 1000;
}

.rp-filter-grid select,
.rp-filter-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfe0d4;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.rp-filter-grid select:focus,
.rp-filter-grid input:focus {
  border-color: var(--rp-bsr-primary-2);
  box-shadow: 0 0 0 4px rgba(15, 122, 90, .15);
}

.rp-filter-grid select:disabled,
.rp-filter-grid input:disabled,
.rp-filter-actions button:disabled {
  color: #98a2b3;
  background: #f5f7fa;
  cursor: not-allowed;
  opacity: .72;
}

.rp-search-box {
  grid-column: span 3;
}

.rp-filter-actions {
  display: flex;
  align-items: end;
}

.rp-filter-actions button,
.rp-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.rp-filter-actions button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--rp-bsr-primary), var(--rp-bsr-primary-2));
  box-shadow: 0 14px 28px rgba(15, 118, 85, .20);
}

.rp-btn-light {
  color: #063f32;
  background: #fff;
  border: 1px solid #cfe7d5;
}

.rp-filter-actions button:hover:not(:disabled),
.rp-btn-light:hover {
  transform: translateY(-1px);
}

.rp-result-card {
  overflow: hidden;
}

.rp-result-head {
  padding: 22px;
  border-bottom: 1px solid #e8f1ea;
}

.rp-result-head p {
  margin: 8px 0 0;
  color: var(--rp-bsr-muted);
  font-weight: 800;
}

.rp-result-filter {
  max-width: 50%;
  border-radius: 999px;
  padding: 10px 14px;
  color: #075f45;
  background: var(--rp-bsr-soft);
  border: 1px solid #cfe7d5;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rp-bsr-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 13px;
}

.rp-bsr-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 13px;
  color: #fff;
  background: #0f6f54;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}

.rp-bsr-table td {
  padding: 13px;
  border-bottom: 1px solid #e8f1ea;
  color: #172033;
  font-weight: 700;
  vertical-align: top;
}

.rp-bsr-table tbody tr:nth-child(even) td {
  background: #f8fff8;
}

.rp-bsr-table tbody tr:hover td {
  background: #eefaf1;
}

.rp-item-name {
  min-width: 310px;
  white-space: normal;
  line-height: 1.45;
}

.rp-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #075f45;
  background: #effaf1;
  border: 1px solid #cfe7d5;
  font-size: 12px;
  font-weight: 1000;
}

.text-end {
  text-align: right !important;
  white-space: nowrap;
}

.rp-empty {
  padding: 32px 18px !important;
  text-align: center !important;
  color: var(--rp-bsr-muted) !important;
  background: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 1100px) {
  .rp-bsr-hero {
    flex-direction: column;
  }
  .rp-bsr-hero-panel {
    width: 100%;
  }
  .rp-bsr-steps,
  .rp-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rp-search-box {
    grid-column: span 2;
  }
  .rp-result-filter {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .rp-bsr-page {
    width: min(100% - 22px, 1320px);
    padding-top: 16px;
  }
  .rp-bsr-hero,
  .rp-filter-card {
    border-radius: 22px;
    padding: 18px;
  }
  .rp-bsr-hero h1 {
    font-size: 28px;
  }
  .rp-bsr-steps,
  .rp-filter-grid {
    grid-template-columns: 1fr;
  }
  .rp-search-box {
    grid-column: span 1;
  }
  .rp-card-title-row,
  .rp-result-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .rp-btn-light,
  .rp-filter-actions button {
    width: 100%;
  }
  .rp-result-head {
    padding: 18px;
  }
}
