:root {
  --brand: #5c442a;
  --brand-dark: #43311e;
  --brand-deep: #2a1e12;
  --brand-mid: #755839;
  --brand-light: #997957;
  --brand-soft: #efe7dc;
  --brand-tint: #f7f2ea;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --border: #dfd2c1;
  --border-strong: #c9b59c;
  --text: #261c12;
  --text-muted: #6c5b49;
  --danger: #9f2d20;
  --danger-bg: #fdf1ef;
  --success: #2a6041;
  --success-bg: #eef7f1;
  --shadow-sm: 0 2px 8px rgba(42, 30, 18, 0.05);
  --shadow-md: 0 12px 32px rgba(42, 30, 18, 0.08);
  --shadow-lg: 0 20px 50px rgba(42, 30, 18, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 2.25rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(840px, 100% - 2.25rem);
  margin-inline: auto;
}

/* Navbar */
.site-header {
  background-color: var(--brand);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(42, 30, 18, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  padding: 0.55rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.nav-hotline:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, #725537 0%, var(--brand) 52%, var(--brand-dark) 100%);
  color: #ffffff;
  padding: 3.75rem 0 4.25rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -90px -10%;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f9f3eb;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.hero-legal {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: #ebd9c3;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #ffffff;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(24, 16, 8, 0.25);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary-light:hover {
  transform: translateY(-2px);
  background-color: #f7f1e8;
}

.hotline-card {
  display: inline-flex;
  flex-direction: column;
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hotline-card:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.hotline-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ebd9c3;
  letter-spacing: 0.02em;
}

.hotline-number {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Empathy chat card */
.empathy-card {
  background-color: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.empathy-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #3d8b5e;
  box-shadow: 0 0 0 4px rgba(61, 139, 94, 0.18);
}

.chat-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  font-size: 0.93rem;
}

.chat-bubble--user {
  background-color: var(--brand-tint);
  border: 1px solid var(--border);
  align-self: flex-start;
  max-width: 90%;
  border-bottom-left-radius: 4px;
}

.chat-bubble--speak {
  background-color: var(--brand);
  color: #ffffff;
  align-self: flex-end;
  max-width: 92%;
  border-bottom-right-radius: 4px;
}

.chat-sender {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  opacity: 0.78;
}

.chat-text {
  margin: 0;
  font-weight: 500;
}

/* Pillars */
.pillars-section {
  padding: 2.5rem 0 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 10;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pillar-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.pillar-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Report form section */
.form-section {
  padding: 3rem 0 4rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--brand-dark);
}

.section-head p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--brand-soft);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.98rem;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.required-mark {
  color: var(--danger);
  font-weight: 700;
}

.field-helper {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-error-msg {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.input-control,
.select-control,
.textarea-control {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.76rem 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="date"].input-control {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  line-height: 1.4;
}

.input-control::placeholder,
.textarea-control::placeholder {
  color: #9e8e7e;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(92, 68, 42, 0.14);
}

.textarea-control {
  resize: vertical;
  min-height: 120px;
}

/* Mode radio cards */
.mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.mode-option {
  position: relative;
  cursor: pointer;
}

.mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--brand-tint);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.mode-radio-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--brand-light);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  background: #ffffff;
}

.mode-option input[type="radio"]:checked + .mode-card {
  border-color: var(--brand);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(92, 68, 42, 0.12);
}

.mode-option input[type="radio"]:checked + .mode-card .mode-radio-dot {
  border-color: var(--brand);
}

.mode-option input[type="radio"]:checked + .mode-card .mode-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: var(--brand);
}

.mode-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.mode-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.identity-panel {
  margin-top: 1.1rem;
  padding: 1.2rem;
  background-color: var(--brand-tint);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.identity-panel[hidden] {
  display: none;
}

/* File upload */
.file-dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  background-color: var(--brand-tint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.62rem 1.05rem;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.file-trigger:hover {
  background-color: var(--brand-dark);
}

.file-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  min-width: 180px;
  word-break: break-word;
}

.file-clear {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.file-clear[hidden] {
  display: none;
}

/* Privacy box & consent */
.confidentiality-box {
  background-color: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 1.05rem 1.2rem;
  margin-bottom: 1.2rem;
}

.confidentiality-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.confidentiality-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

.submit-row {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--brand);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.98rem 2.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(92, 68, 42, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-soft);
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e6d8c5;
}

/* Alerts & success */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-error {
  background-color: var(--danger-bg);
  border: 1px solid #ecc6c1;
  color: var(--danger);
}

.alert-success {
  background-color: var(--success-bg);
  border: 1px solid #bfe0cc;
  color: var(--success);
}

.success-card {
  background-color: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.tracking-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--brand-tint);
  border: 1.5px dashed var(--brand);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0 1.25rem;
}

.tracking-code {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}

/* Help CTA banner */
.help-banner {
  background-color: var(--brand-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.help-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.help-inner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.help-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.88rem 1.5rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-call:hover {
  background-color: var(--brand-dark);
}

/* Footer */
.site-footer {
  background-color: var(--brand-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 2.4rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-logo {
  height: 96px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer-tagline {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #d6c5b0;
}

.footer-quotes {
  max-width: 380px;
}

.footer-quotes p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4ebe0;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Status badges & tables for track/admin */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-diterima { background: #eee6db; color: #5c442a; }
.status-dalam-peninjauan { background: #fdf3dc; color: #8a5b0c; }
.status-ditindaklanjuti { background: #e4effa; color: #1d4e89; }
.status-selesai { background: #e6f4ec; color: #22603d; }

.page-main {
  padding: 2.75rem 0 4rem;
  min-height: calc(100vh - 300px);
}

.card-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--brand-soft);
  vertical-align: top;
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  background-color: var(--brand-tint);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .brand-logo {
    height: 60px;
  }
  .footer-logo {
    height: 78px;
  }
  .field-grid,
  .mode-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-card {
    padding: 1.35rem;
  }
  .nav-hotline {
    display: none;
  }
}
