/* ============================================
   iLesen MPS - Pemohon Mobile-First CSS
   Dreamy Sky Theme — v2.1 (image background)
   Accent: #5A4BEA (violet)
   Portrait bg (mobile):  https://www.genspark.ai/api/files/s/gLm5Ebkv
   Landscape bg (desktop): https://www.genspark.ai/api/files/s/gMXNWN6j
   ============================================ */

/* ---- Pemohon App Shell ---- */
.pemohon-app {
  min-height: 100vh;
  /* Portrait / mobile-first: dreamy sky illustration (9:16) */
  /* background-image: url('https://www.genspark.ai/api/files/s/gLm5Ebkv'); */
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* Fallback gradient if image fails to load */
  background-color: #D9EBFA;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Subtle brightness/contrast overlay so white card text stays readable */
.pemohon-app::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
}

/* ---- Header ---- */
.pemohon-header {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2E2E3A;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.7);
}

.pemohon-header .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pemohon-header img { height: 40px; }

.pemohon-header .hdr-text .sys {
  font-size: 1rem;
  font-weight: 700;
  color: #2E2E3A;
}
.pemohon-header .hdr-text .org {
  font-size: 0.72rem;
  color: #5A4BEA;
  font-weight: 600;
  opacity: 0.9;
}

/* ---- Step Progress ---- */
.step-progress-wrap {
  padding: 0.75rem 1rem 0.6rem;
  color: #2E2E3A;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A4BEA;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.progress-bar-outer {
  background: rgba(90,75,234,0.15);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-inner {
  background: linear-gradient(90deg, #5A4BEA, #8B7FF4);
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.step-dots {
  display: flex;
  gap: 6px;
  margin-top: 0.5rem;
  justify-content: center;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(90,75,234,0.25);
  transition: all 0.3s;
}

.step-dot.active {
  background: #5A4BEA;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(90,75,234,0.20);
}
.step-dot.done { background: #8B7FF4; }

/* ---- Main Card Area ---- */
.pemohon-card-area {
  padding: 1rem;
  padding-top: 0.85rem;
  position: relative;
  z-index: 2;
}

.pemohon-card {
  background: #FFFFFF;
  border-radius: 20px 20px 16px 16px;
  box-shadow: 0 8px 32px rgba(90,75,234,0.14), 0 2px 8px rgba(90,75,234,0.08);
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Purple top bar — dreamy accent strip */
.pemohon-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #5A4BEA 0%, #8B7FF4 50%, #5A4BEA 100%);
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.pemohon-card-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid #F0EEFF;
}

.pemohon-card-header .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #5A4BEA, #7B6EF5);
  color: white;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  box-shadow: 0 3px 10px rgba(90,75,234,0.30);
}

.pemohon-card-header h2 {
  font-size: 1.2rem;
  color: #2E2E3A;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.pemohon-card-header h2 i {
  color: #5A4BEA !important;
}

.pemohon-card-header p {
  font-size: 0.84rem;
  color: #3E3E4A;
  margin: 0;
}

.pemohon-card-body {
  padding: 1.25rem;
  flex: 1;
}

.pemohon-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #F0EEFF;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: white;
  border-radius: 0 0 16px 16px;
}

/* ---- Buttons — Dreamy Violet ---- */
/* Override main.css primary: full-width flat violet */
.pemohon-card-footer .btn-primary,
.pemohon-card-footer .btn-success {
  background: #5A4BEA;
  border: none;
  color: white;
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(90,75,234,0.28);
}

.pemohon-card-footer .btn-primary:hover,
.pemohon-card-footer .btn-success:hover {
  background: #4A3EDB;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(90,75,234,0.35);
}

.pemohon-card-footer .btn-primary:disabled,
.pemohon-card-footer .btn-success:disabled {
  background: #C5BFF7;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* Kembali: pill-style with left arrow */
.pemohon-card-footer .btn-secondary {
  background: white;
  border: 2px solid #5A4BEA;
  color: #5A4BEA;
  border-radius: 50px;           /* pill shape */
  font-weight: 700;
  padding: 8px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pemohon-card-footer .btn-secondary:hover {
  background: #5A4BEA;
  color: white;
  transform: translateY(-1px);
}

/* Seterusnya full-width when alone */
.pemohon-card-footer > .btn-primary:only-child,
.pemohon-card-footer > .btn-success:only-child {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Permit Selection — Option C
   Search bar + Grouped list
   ============================================ */

/* Wrapper replaces old .permit-grid */
.permit-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Search bar ---- */
.permit-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.permit-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9494A8;
  font-size: 0.85rem;
  pointer-events: none;
}

.permit-search-input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border: 1.5px solid #DDD8F8;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  background: rgba(255,255,255,0.90);
  color: #2E2E3A;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.permit-search-input::placeholder { color: #B3B3BA; }

.permit-search-input:focus {
  border-color: #5A4BEA;
  box-shadow: 0 0 0 3px rgba(90,75,234,0.12);
  background: white;
}

/* Clear button inside search */
.permit-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #E8E6FF;
  border: none;
  color: #5A4BEA;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.permit-search-clear.visible { display: flex; }
.permit-search-clear:hover { background: #5A4BEA; color: white; }

/* ---- No results state ---- */
.permit-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #9494A8;
  font-size: 0.88rem;
  display: none;
}
.permit-no-results i { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; color: #C5BFF7; }
.permit-no-results.visible { display: block; }

/* ---- Category group ---- */
.permit-group {
  margin-bottom: 0.5rem;
}

.permit-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 6px 4px;
  margin-bottom: 4px;
}

.permit-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.permit-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6B6B80;
}

.permit-group-count {
  font-size: 0.68rem;
  color: #B3B3BA;
  font-weight: 500;
  margin-left: auto;
}

/* ---- Individual permit row ---- */
.permit-type-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #EDEAF9;
  border-left: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
  position: relative;
  text-align: left;
  margin-bottom: 5px;
}

.permit-type-card:last-child { margin-bottom: 0; }

.permit-type-card:hover {
  border-color: #C5BFF7;
  border-left-color: #5A4BEA;
  background: rgba(248,246,255,0.95);
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(90,75,234,0.09);
}

.permit-type-card.selected {
  border-color: #C5BFF7;
  border-left: 3px solid #5A4BEA;
  background: rgba(238,234,255,0.97);
  box-shadow: 0 3px 14px rgba(90,75,234,0.13);
}

/* Left: category colour dot accent */
.permit-type-card .permit-cat-dot {
  flex-shrink: 0;
  width: 6px;
  height: 36px;
  border-radius: 3px;
  opacity: 0.35;
  display: none; /* hidden — colour conveyed by border-left */
}

/* Centre: text block */
.permit-type-card .permit-text {
  flex: 1;
  min-width: 0;
}

.permit-type-card .permit-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: #2E2E3A;
  line-height: 1.35;
  margin-bottom: 2px;
}

.permit-type-card.selected .permit-name {
  color: #3A30C4;
}

.permit-type-card .permit-desc {
  font-size: 0.74rem;
  color: #8888A0;
  line-height: 1.3;
  font-weight: 400;
}

.permit-type-card.selected .permit-desc {
  color: #7B6EF5;
}

/* Right: badge cluster */
.permit-type-card .permit-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* AUTO badge — green pill */
.permit-type-card .auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Approval type chip */
.permit-type-card .permit-fee-hint {
  font-size: 0.66rem;
  color: #AAAAB8;
  white-space: nowrap;
  font-weight: 500;
}

.permit-type-card.selected .permit-fee-hint {
  color: #7B6EF5;
}

/* Checkmark circle (appears when selected) */
.permit-type-card .permit-check {
  display: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5A4BEA;
  color: white;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
}

.permit-type-card.selected .permit-check {
  display: flex;
}

/* Search highlight */
.permit-highlight {
  background: rgba(90,75,234,0.14);
  border-radius: 3px;
  padding: 0 1px;
  color: #3A30C4;
  font-weight: 700;
}

/* ---- Square card variant (Ya/Pernah, SSM, Payment) ---- */
.permit-type-card.card-square {
  flex-direction: column;
  text-align: center;
  padding: 1rem 0.75rem;
  border-left-width: 1px;
  border-radius: 12px;
  backdrop-filter: none;
  background: #FAFAFF;
  gap: 0.25rem;
  margin-bottom: 0;
}

.permit-type-card.card-square:hover {
  transform: translateY(-1px);
}

.permit-type-card.card-square .permit-icon {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
  display: block;
}

.permit-type-card.card-square .permit-name {
  font-size: 0.82rem;
  text-align: center;
}

.permit-type-card.card-square .permit-fee-hint {
  font-size: 0.72rem;
  text-align: center;
  white-space: normal;
}

/* ---- Akujanji Box ---- */
.akujanji-box {
  background: linear-gradient(135deg, #EEEAFF 0%, #F5F3FF 100%);
  border: 1.5px solid #C5BFF7;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.akujanji-box .akujanji-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
}

.akujanji-box .akujanji-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2E2E3A;
  text-align: center;
  margin-bottom: 0.75rem;
}

.akujanji-box .akujanji-text {
  font-size: 0.86rem;
  color: #3E3E4A;
  line-height: 1.7;
  text-align: justify;
}

.akujanji-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 10px;
  border: 2px solid #E8E6FF;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.akujanji-agree.checked {
  border-color: #22c55e;
  background: #f0fff5;
}

.akujanji-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #5A4BEA;
  margin-top: 1px;
}

.akujanji-agree label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E2E3A;
  cursor: pointer;
  line-height: 1.5;
}

/* ---- OCR Upload Section ---- */
.ocr-section {
  margin-bottom: 1.25rem;
}

.ocr-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed #C5BFF7;
  border-radius: 14px;
  background: #F7F5FF;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-decoration: none;
}

.ocr-upload-btn:hover {
  border-color: #5A4BEA;
  background: rgba(90,75,234,0.06);
}

.ocr-upload-btn i {
  font-size: 2.5rem;
  color: #5A4BEA;
}

.ocr-upload-btn .upload-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2E2E3A;
}

.ocr-upload-btn .upload-sub {
  font-size: 0.78rem;
  color: #6B6B80;
}

.ocr-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: #F7F5FF;
  border-radius: 14px;
  border: 1.5px solid #C5BFF7;
}

.ocr-processing .ocr-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(90,75,234,0.15);
  border-top-color: #5A4BEA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ocr-processing .ocr-text {
  font-size: 0.9rem;
  color: #5A4BEA;
  font-weight: 600;
}

.ocr-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #e8f8ee;
  border-radius: 10px;
  border: 1.5px solid #22c55e;
  margin-bottom: 0.75rem;
}

.ocr-success i { color: #22c55e; font-size: 1.2rem; }
.ocr-success span { font-size: 0.85rem; font-weight: 600; color: #15803d; }

/* ---- Lokasi Mode Selector ---- */
.lokasi-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lokasi-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: #F7F5FF;
  border: 2px solid #E8E6FF;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
  color: #2E2E3A;
}

.lokasi-mode-btn:hover {
  border-color: #5A4BEA;
  background: #EEEAFF;
  transform: translateY(-1px);
}

.lokasi-mode-btn.active {
  border-color: #5A4BEA;
  background: linear-gradient(135deg, #5A4BEA 0%, #7B6EF5 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(90,75,234,0.28);
}

.lokasi-mode-btn .mode-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.lokasi-mode-btn .mode-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.lokasi-mode-btn .mode-desc {
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.2;
}

.lokasi-mode-btn.active .mode-desc {
  opacity: 0.85;
  color: #C5BFF7;
}

/* ---- Address Form Card (Mode B input) ---- */
.alamat-form-card {
  background: #F7F5FF;
  border: 1.5px solid #E8E6FF;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 1rem;
}

/* ---- Unified result fields (shared, shown after GPS or Alamat resolves) ---- */
.lokasi-result-fields {
  background: #F7F5FF;
  border: 1.5px solid #C5BFF7;
  border-radius: 14px;
  padding: 16px;
  margin-top: 0.75rem;
}

.lokasi-result-fields .lrf-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5A4BEA;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lokasi-result-fields .lrf-title i {
  color: #5A4BEA;
}

/* ---- required star ---- */
.required-star {
  color: #e53e3e;
  font-size: 0.85rem;
}

/* ---- GPS / Location ---- */
.gps-capture-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #5A4BEA, #7B6EF5);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(90,75,234,0.28);
}

.gps-capture-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(90,75,234,0.35);
}
.gps-capture-btn i { font-size: 1.3rem; }

.gps-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gps-info-item {
  background: #F7F5FF;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #E8E6FF;
}

.gps-info-item .gps-label {
  font-size: 0.72rem;
  color: #6B6B80;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.gps-info-item .gps-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2E2E3A;
  margin-top: 2px;
}

/* ---- Fee Breakdown ---- */
.fee-breakdown {
  background: #F7F5FF;
  border-radius: 14px;
  border: 1.5px solid #D8DCEC;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.fee-breakdown-header {
  background: linear-gradient(90deg, #5A4BEA, #7B6EF5);
  color: white;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #F0EEFF;
  font-size: 0.88rem;
}

.fee-row:last-child { border-bottom: none; }
.fee-row.total {
  background: #EEEAFF;
  font-weight: 700;
  font-size: 1rem;
  color: #2E2E3A;
}

.fee-row .fee-label { color: #3E3E4A; }
.fee-row .fee-amount { font-weight: 600; color: #2E2E3A; }
.fee-row.total .fee-amount { color: #5A4BEA; font-size: 1.1rem; }

/* ---- Permit Card Output ---- */
.permit-output-card {
  background: white;
  border: 2px solid #5A4BEA;
  border-radius: 16px;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.permit-output-header {
  background: linear-gradient(135deg, #5A4BEA, #7B6EF5);
  color: white;
  padding: 1.25rem;
  text-align: center;
}

.permit-output-header img { height: 48px; margin-bottom: 0.5rem; }
.permit-output-header h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.permit-output-header p { font-size: 0.78rem; opacity: 0.85; margin: 0; }

.permit-no-badge {
  background: #ffd700;
  color: #1a1a2e;
  padding: 8px 16px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.permit-output-body {
  padding: 1.25rem;
}

.permit-detail-row {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #F0EEFF;
  font-size: 0.85rem;
}

.permit-detail-row:last-child { border-bottom: none; }
.permit-detail-row .pd-label { color: #6B6B80; min-width: 130px; flex-shrink: 0; }
.permit-detail-row .pd-value { color: #2E2E3A; font-weight: 600; }

.permit-qr-area {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.permit-output-footer {
  background: #F7F5FF;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  color: #6B6B80;
  text-align: center;
  border-top: 1px solid #E8E6FF;
}

/* ---- Summary Box ---- */
.summary-box {
  background: #F7F5FF;
  border-radius: 12px;
  border: 1px solid #D8DCEC;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.summary-box .summary-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #5A4BEA;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-item {
  display: flex;
  gap: 8px;
  font-size: 0.86rem;
  padding: 5px 0;
  border-bottom: 1px dashed #E8E6FF;
}

.summary-item:last-child { border-bottom: none; }
.summary-item .si-label { color: #6B6B80; min-width: 120px; flex-shrink: 0; }
.summary-item .si-value { color: #2E2E3A; font-weight: 600; }

/* ---- Document Checklist ---- */
.doc-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #E8E6FF;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-checklist-item:hover { border-color: #5A4BEA; background: #F7F5FF; }

.doc-checklist-item.checked {
  border-color: #22c55e;
  background: #f0fff5;
}

.doc-checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #5A4BEA;
  margin-top: 2px;
}

.doc-checklist-item .doc-info .doc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2E2E3A;
}

.doc-checklist-item .doc-info .doc-note {
  font-size: 0.78rem;
  color: #6B6B80;
  margin-top: 2px;
}

/* ---- Pembantu Section ---- */
.pembantu-card {
  border: 1.5px solid #E8E6FF;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #FAFAFF;
  position: relative;
}

.pembantu-card .pembantu-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5A4BEA;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pembantu-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fdecea;
  border: none;
  color: #dc2626;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pembantu-remove:hover { background: #dc2626; color: white; }

/* ---- Notification Panel ---- */
.notif-panel {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notif-panel.email {
  background: #e3f2fd;
  border: 1.5px solid #90caf9;
}

.notif-panel.whatsapp {
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
}

.notif-panel i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.notif-panel.email i { color: #1565c0; }
.notif-panel.whatsapp i { color: #2e7d32; }

.notif-panel .notif-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.notif-panel .notif-msg {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.5;
}

/* ---- Pay Flow ---- */
.pay-option {
  border: 2px solid #E8E6FF;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pay-option:hover { border-color: #5A4BEA; }
.pay-option.selected { border-color: #5A4BEA; background: #F0EEFF; }

.pay-option .pay-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.pay-option .pay-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2E2E3A;
}

.pay-option .pay-desc {
  font-size: 0.82rem;
  color: #6B6B80;
  margin-top: 2px;
}

/* ---- Inline block-level button helpers (body, not footer) ---- */
.btn-block {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Primary buttons inside card-body (not footer) */
.pemohon-card-body .btn-primary,
.pemohon-card-body .btn.btn-primary {
  background: #5A4BEA;
  border: none;
  color: white;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(90,75,234,0.22);
}

.pemohon-card-body .btn-primary:hover,
.pemohon-card-body .btn.btn-primary:hover {
  background: #4A3EDB;
  transform: translateY(-1px);
}

/* Outline variant */
.btn-outline {
  background: transparent;
  border: 2px solid #5A4BEA;
  color: #5A4BEA;
  border-radius: 10px;
  font-weight: 600;
  padding: 9px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #5A4BEA; color: white; }

/* ---- Mobile Responsive for Pemohon ---- */
@media (max-width: 480px) {
  .permit-type-card .permit-name { font-size: 0.83rem; }
  .permit-search-input { font-size: 0.84rem; }
  .gps-info-grid { grid-template-columns: 1fr 1fr; }
  .pemohon-card-header h2 { font-size: 1.05rem; }
  .pemohon-card-body { padding: 1rem; }
  .pemohon-card-header { padding: 1.1rem 1rem 0.85rem; }
  .pemohon-card-footer { padding: 0.85rem 1rem; gap: 0.5rem; }
  .btn { font-size: 0.83rem; padding: 8px 14px; }
  .btn-lg { padding: 11px 18px; font-size: 0.92rem; }
  .fee-row { font-size: 0.82rem; padding: 8px 12px; }
  .summary-item .si-label { min-width: 100px; }
  .waktu-sep { font-size: 0.75rem; padding: 3px 7px; }
  .pemohon-header .hdr-text .org { font-size: 0.68rem; }
}

/* ---- Tablet (640px–1023px) ---- */
@media (min-width: 640px) {
  .pemohon-app {
    /* Landscape dreamy sky illustration (3:2) — better for wider screens */
    background-image: url('https://www.genspark.ai/api/files/s/gMXNWN6j');
    background-position: center top;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pemohon-header, .step-progress-wrap { max-width: 660px; width: 100%; }
  .pemohon-card-area { max-width: 660px; width: 100%; }
}

/* ---- Laptop / Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  .pemohon-app {
    background-position: center center;
  }
  .pemohon-header, .step-progress-wrap { max-width: 780px; }
  .pemohon-card-area { max-width: 780px; }
  .pemohon-card-header { padding: 2rem 2rem 1.25rem; }
  .pemohon-card-body { padding: 1.75rem 2rem; }
  .pemohon-card-footer { padding: 1.25rem 2rem; }
  /* permit grid stays row-list on all screen sizes */
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ---- Wide Desktop (1280px+) ---- */
@media (min-width: 1280px) {
  .pemohon-header, .step-progress-wrap { max-width: 900px; }
  .pemohon-card-area { max-width: 900px; }
  /* permit grid stays row-list on all screen sizes */
}

/* ---- Loading overlay (violet spinner) ---- */
.loading-overlay .spinner-blue {
  border-color: rgba(90,75,234,0.18);
  border-top-color: #5A4BEA;
}

/* ---- Map container ---- */
.map-container {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #C5BFF7;
  margin-bottom: 0.75rem;
}

/* ---- Step 9 Hantar CTA — full-width flat violet ---- */
.pemohon-card-footer .btn-success.btn-lg {
  background: #5A4BEA;
  flex: 1;
  justify-content: center;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(90,75,234,0.32);
}

.pemohon-card-footer .btn-success.btn-lg:hover {
  background: #4A3EDB;
  box-shadow: 0 7px 22px rgba(90,75,234,0.40);
}

.pemohon-card-footer .btn-success.btn-lg:disabled {
  background: #C5BFF7;
  box-shadow: none;
}

/* ---- Misc helpers ---- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.section-divider {
  border: none;
  border-top: 1px dashed #E8E6FF;
  margin: 1rem 0;
}

/* spin animation (shared) */
@keyframes spin {
  to { transform: rotate(360deg); }
}
