:root {
  --ink: #17201f;
  --muted: #66716f;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dedbd1;
  --teal: #1f6f69;
  --teal-dark: #164d49;
  --maroon: #8d2f3d;
  --gold: #c69b4c;
  --shadow: 0 18px 45px rgba(23, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(222, 219, 209, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--teal-dark);
  border: 2px solid var(--gold);
  border-radius: 8px;
  font: 700 24px "Noto Serif", Georgia, serif;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 9px 11px;
  color: #273432;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(31, 111, 105, 0.1);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 22, 0.88) 0%, rgba(14, 22, 22, 0.72) 36%, rgba(14, 22, 22, 0.18) 72%),
    linear-gradient(0deg, rgba(14, 22, 22, 0.32), rgba(14, 22, 22, 0.08));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 86px);
  padding: 58px 0 76px;
  color: #fff;
}

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

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 740px;
  font-size: clamp(40px, 6vw, 74px);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 12px 28px rgba(141, 47, 61, 0.28);
}

.btn.secondary {
  color: #fff;
  background: var(--teal);
}

.btn.muted {
  color: #fff;
  background: #5e6673;
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 128px;
  padding: 28px clamp(18px, 3vw, 42px);
  background: #fff;
}

.trust-strip strong {
  display: block;
  color: var(--teal-dark);
  font-size: 18px;
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.workbench,
.status-section,
.portal-grid,
.admin-section,
.appeal-section,
.contact-section {
  padding: 76px clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: #31403e;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcabf;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 105, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

.success-box {
  margin-top: 18px;
  padding: 18px;
  color: #173d31;
  background: #e7f3ee;
  border: 1px solid #bdded1;
  border-radius: 8px;
}

.status-section {
  background: #fff;
}

.status-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.status-shell h2 {
  margin-bottom: 18px;
  color: #4c66a8;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  text-align: center;
}

.status-check-panel {
  overflow: hidden;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.court-select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
  padding: 22px;
  color: #fff;
  background: #303030;
}

.court-select-row label {
  color: #fff;
  font-size: 15px;
}

.court-select-row select {
  min-height: 48px;
  color: #252525;
  background: #fff;
}

.status-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
  border-bottom: 1px solid #d9dde5;
  background: #f2efec;
}

.status-tab {
  min-height: 58px;
  padding: 12px 14px;
  color: #4f535a;
  background: #f2efec;
  border: 0;
  border-right: 1px solid #d9dde5;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.status-tab.active {
  color: #415ea8;
  background: #fff;
  border-bottom-color: #4f6fba;
}

.status-form-title {
  padding: 14px 18px;
  color: #415ea8;
  border-bottom: 1px solid #d9dde5;
  font-size: 20px;
  font-weight: 700;
}

.status-form-body {
  padding: 26px 28px 34px;
}

.required-note {
  margin: 0 0 22px;
  color: #ba2b22;
  font-weight: 800;
}

.status-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr) minmax(260px, 0.9fr);
  gap: 18px 26px;
  align-items: end;
}

.status-fields label {
  color: #415ea8;
  font-size: 15px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 46px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2e3035;
  font-size: 16px;
}

.radio-row input {
  width: 18px;
  min-height: 18px;
  accent-color: #5f55ef;
}

.captcha-line {
  display: grid;
  grid-template-columns: auto 150px 48px;
  gap: 10px;
  align-items: center;
  color: #415ea8;
  font-size: 15px;
  font-weight: 800;
}

.captcha-line strong {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: #4d4d4d;
  background:
    repeating-linear-gradient(-9deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 10px),
    #fafafa;
  border: 1px solid #cfcfcf;
  font-size: 27px;
  letter-spacing: 0;
}

.icon-btn {
  min-height: 48px;
  color: #3d4d68;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.status-actions {
  display: flex;
  gap: 10px;
}

.status-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 24px;
  background: #eff4f2;
}

.portal-grid .section-heading {
  grid-column: 1 / -1;
}

.login-panel {
  align-content: start;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.case-view,
.admin-panel {
  min-height: 260px;
  padding: 22px;
  overflow-x: auto;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.case-card {
  display: grid;
  gap: 16px;
}

.case-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  min-height: 74px;
  padding: 12px;
  background: #f8f7f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-section {
  background: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
}

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

.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--teal-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table input,
.admin-table select {
  min-width: 142px;
}

.mini-actions {
  display: flex;
  gap: 8px;
}

.mini-actions .btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

.appeal-section {
  background: #f7f3eb;
}

.appeal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}

.appeal-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.appeal-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appeal-card strong {
  color: var(--teal-dark);
}

.appeal-card span {
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  background: #f4efe5;
}

.contact-card {
  max-width: 980px;
}

address {
  margin-top: 18px;
  color: #394744;
  font-style: normal;
  font-size: 18px;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.76);
  background: #111a19;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(14, 22, 22, 0.9) 0%, rgba(14, 22, 22, 0.72) 100%);
  }

  .trust-strip,
  .form-grid,
  .court-select-row,
  .status-fields,
  .portal-grid,
  .appeal-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .status-tabs {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  .workbench,
  .status-section,
  .portal-grid,
  .admin-section,
  .appeal-section,
  .contact-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .form-grid,
  .status-form-body,
  .login-panel,
  .case-view,
  .admin-panel {
    padding: 16px;
  }

  .captcha-line {
    grid-template-columns: 1fr;
  }

  .status-actions .btn {
    flex: 1;
  }
}
