.request-detective-page {
  background: #fffaf3;
}

.request-hero {
  position: relative;
  min-height: 430px;
  padding: 150px 0 110px;
  overflow: hidden;
}

.request-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.76), rgba(255, 250, 243, 0.08)),
    url("/assets/detective-hero-111.png") center right / cover no-repeat;
}

.request-hero-copy {
  position: relative;
  z-index: 1;
}

.request-hero h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
}

.request-hero p:last-child {
  max-width: 640px;
  color: rgba(11, 17, 28, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.request-wizard-card {
  margin-top: -72px;
  margin-bottom: 70px;
  border: 1px solid rgba(11, 17, 28, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(38, 28, 17, 0.14);
  backdrop-filter: blur(18px);
  padding: clamp(20px, 4vw, 38px);
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.request-progress span {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(11, 17, 28, 0.12);
  background: #fffaf3;
  display: grid;
  place-items: center;
  color: rgba(11, 17, 28, 0.48);
  font-weight: 950;
}

.request-progress span.active {
  border-color: #b17420;
  background: #080d18;
  color: #fff;
}

.request-step {
  display: none;
  animation: requestFade 180ms ease;
}

.request-step.active {
  display: block;
}

@keyframes requestFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.request-step h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 38px);
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.request-grid label {
  display: grid;
  gap: 9px;
  color: #0b111c;
  font-size: 14px;
  font-weight: 900;
}

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

.request-grid input,
.request-grid select,
.request-grid textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(11, 17, 28, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b111c;
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.request-grid textarea {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
}

.request-grid input:focus,
.request-grid select:focus,
.request-grid textarea:focus {
  border-color: rgba(177, 116, 32, 0.72);
  box-shadow: 0 0 0 4px rgba(177, 116, 32, 0.12);
}

.request-grid small {
  color: rgba(11, 17, 28, 0.62);
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.request-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: rgba(11, 17, 28, 0.7);
  font-weight: 800;
}

.request-status.error {
  color: #a61212;
}

.request-status.success {
  color: #067647;
}

.request-success-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.request-success-card {
  max-width: 760px;
  border: 1px solid rgba(11, 17, 28, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 90px rgba(38, 28, 17, 0.12);
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}

.request-success-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #067647;
  color: #fff;
  font-size: 52px;
  font-weight: 950;
}

.request-success-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.request-success-card p {
  color: rgba(11, 17, 28, 0.74);
  line-height: 1.7;
}

.request-success-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .request-hero {
    min-height: 380px;
    padding: 118px 0 92px;
  }

  .request-hero-bg {
    opacity: 0.86;
    background-position: 55% center;
  }

  .request-wizard-card {
    width: calc(100% - 28px);
    border-radius: 22px;
  }

  .request-grid,
  .request-progress {
    grid-template-columns: 1fr;
  }

  .request-actions {
    flex-direction: column;
  }

  .request-actions .detective-btn {
    width: 100%;
  }
}

.detective-enquiry-admin {
  width: min(1320px, calc(100% - 56px));
}

.detective-enquiry-stats {
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
}

.detective-enquiry-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 180px auto;
  gap: 12px;
  margin-bottom: 20px;
}

.detective-enquiry-tools input,
.detective-enquiry-tools select {
  min-height: 48px;
  border: 1px solid rgba(11, 17, 28, 0.16);
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.detective-enquiry-table th,
.detective-enquiry-table td {
  vertical-align: top;
  white-space: nowrap;
}

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

.detective-enquiry-actions .detective-btn,
.detective-enquiry-actions button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(11, 17, 28, 0.16);
  background: #fff;
  color: #0b111c;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.detective-enquiry-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 22px;
}

.detective-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.detective-detail-head h2 {
  margin: 0;
  font-size: 32px;
}

.detective-detail-head p {
  margin: 4px 0 0;
  color: rgba(11, 17, 28, 0.66);
}

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

.detective-detail-grid div {
  border: 1px solid rgba(11, 17, 28, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.detective-detail-grid strong,
.detective-detail-grid span {
  display: block;
}

.detective-detail-grid strong {
  margin-bottom: 5px;
  color: rgba(11, 17, 28, 0.52);
  font-size: 11px;
  text-transform: uppercase;
}

.detective-detail-copy {
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  line-height: 1.65;
}

.detective-file-list,
.detective-timeline {
  display: grid;
  gap: 10px;
}

.detective-file-list a,
.detective-file-list span,
.detective-timeline p {
  margin: 0;
  border: 1px solid rgba(11, 17, 28, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.detective-timeline span,
.detective-timeline em {
  display: block;
  color: rgba(11, 17, 28, 0.64);
  font-style: normal;
  font-size: 13px;
}

.detective-detail-form {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
}

.detective-detail-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.detective-detail-form input,
.detective-detail-form select,
.detective-detail-form textarea {
  min-height: 48px;
  border: 1px solid rgba(11, 17, 28, 0.16);
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.detective-detail-form textarea {
  min-height: 140px;
  padding-top: 12px;
}

.detective-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detective-detail-actions a,
.detective-detail-actions button {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(177, 116, 32, 0.55);
  background: #fff;
  color: #8a5514;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 980px) {
  .detective-enquiry-admin,
  .detective-enquiry-detail {
    width: min(100% - 40px, 760px);
    grid-template-columns: 1fr;
  }

  .detective-enquiry-stats,
  .detective-enquiry-tools,
  .detective-detail-grid {
    grid-template-columns: 1fr;
  }

  .detective-detail-form {
    position: static;
  }
}
