/* ============================================================
   LAPOR KERUSAKAN JALAN - dedicated styles
   ============================================================ */

.lapor-wrapper { padding-bottom: 80px; margin-top: -8px; }

.lapor-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* === FORM CARD === */
.lapor-form-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e9ff;
  box-shadow: 0 14px 40px rgba(15,27,61,.06);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.lapor-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #eaf1ff;
}
.lapor-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FFD400 0%, #f59e0b 100%);
  transition: width .5s cubic-bezier(.65,.05,.36,1);
  box-shadow: 0 2px 8px rgba(255,212,0,.4);
}

/* === STEPS === */
.lapor-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 32px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.step .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f3f7ff;
  color: rgba(26,42,92,.6);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #eaf1ff;
  transition: all .3s ease;
}
.step .label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(26,42,92,.55);
  transition: color .3s ease;
}
.step.active .num {
  background: #1a2a5c;
  color: #FFD400;
  border-color: #1a2a5c;
  box-shadow: 0 6px 14px rgba(26,42,92,.25);
}
.step.active .label { color: #1a2a5c; }
.step.done .num {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}
.step.done .label { color: #16a34a; }
.step-line {
  flex: 1;
  height: 2px;
  background: #eaf1ff;
  min-width: 20px;
  border-radius: 999px;
}

/* === SECTION === */
.lapor-section { margin-bottom: 48px; }
.lapor-section:last-of-type { margin-bottom: 0; }
.lapor-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eaf1ff;
}
.lapor-section-title i {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: #fff7d6;
  color: #1a2a5c;
  flex-shrink: 0;
}
.lapor-section-title h3 {
  color: #1a2a5c;
  font-size: 17px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-helper {
  color: rgba(26,42,92,.6);
  font-size: 13px;
  margin: -10px 0 16px;
  line-height: 1.5;
}

/* === FORM GRID === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  color: #1a2a5c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label .req { color: #ef4444; font-weight: 700; }
.form-group label .opt { color: rgba(26,42,92,.45); font-weight: 500; font-size: 12px; }

/* === INPUTS === */
.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(26,42,92,.4);
  width: 16px; height: 16px;
  pointer-events: none;
  transition: color .2s;
}
.input-with-icon .lucide {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.input-with-icon input,
.input-with-icon select,
.lapor-form-card textarea {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid #dbe6ff;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fafcff;
  color: #1a2a5c;
  outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.lapor-form-card textarea {
  padding: 13px 16px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.input-with-icon input:focus,
.input-with-icon select:focus,
.lapor-form-card textarea:focus {
  border-color: #1a2a5c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,42,92,.08);
}
.input-with-icon input:focus ~ i,
.input-with-icon:focus-within > i {
  color: #1a2a5c;
}
.input-with-icon select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231a2a5c' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: rgba(26,42,92,.5);
  margin-top: 6px;
}

/* === GPS button === */
.gps-row { display: flex; gap: 10px; }
.btn-gps {
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a2a5c 0%, #2c3f7a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-gps:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(26,42,92,.3); }
.btn-gps.loading { pointer-events: none; opacity: .7; }
.btn-gps.loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === CHIP RADIO GROUP === */
.chip-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-radio-group input[type="radio"] { display: none; }
.chip-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fafcff;
  border: 1.5px solid #dbe6ff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(26,42,92,.7);
  transition: all .2s;
  margin: 0;
}
.chip-radio-group label i { width: 14px; height: 14px; color: rgba(26,42,92,.5); }
.chip-radio-group label:hover { border-color: #1a2a5c; color: #1a2a5c; }
.chip-radio-group input:checked + label {
  background: #1a2a5c;
  border-color: #1a2a5c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(26,42,92,.25);
  transform: translateY(-1px);
}
.chip-radio-group input:checked + label i { color: #FFD400; }

/* === SEVERITY === */
.severity-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.severity-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: #fafcff;
  border: 1.5px solid #dbe6ff;
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.severity-btn .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-bottom: 4px;
}
.severity-btn[data-val="Ringan"] .dot { background: #22c55e; }
.severity-btn[data-val="Sedang"] .dot { background: #f59e0b; }
.severity-btn[data-val="Berat"] .dot { background: #ef4444; }
.severity-btn .lbl {
  font-size: 14px;
  font-weight: 700;
  color: #1a2a5c;
}
.severity-btn small {
  font-size: 11px;
  color: rgba(26,42,92,.55);
  line-height: 1.3;
}
.severity-btn:hover { border-color: #1a2a5c; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,27,61,.08); }
.severity-btn.active {
  background: #1a2a5c;
  border-color: #1a2a5c;
  box-shadow: 0 10px 24px rgba(26,42,92,.25);
  transform: translateY(-2px);
}
.severity-btn.active .lbl, .severity-btn.active small { color: #fff; }
.severity-btn.active small { color: rgba(255,255,255,.75); }

/* === UPLOAD DROPZONE === */
.upload-dropzone {
  position: relative;
  border: 2px dashed #b9cdff;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fafcff 0%, #f3f7ff 100%);
  cursor: pointer;
  transition: all .25s ease;
  outline: none;
}
.upload-dropzone:hover,
.upload-dropzone:focus {
  border-color: #1a2a5c;
  background: linear-gradient(180deg, #f3f7ff 0%, #eaf1ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,27,61,.08);
}
.upload-dropzone.drag-active {
  border-color: #FFD400;
  background: linear-gradient(180deg, #fffbe0 0%, #fff7c4 100%);
  transform: scale(1.01);
  box-shadow: 0 18px 36px rgba(255,212,0,.25);
}
.upload-dropzone.drag-active .upload-icon-wrap {
  background: #FFD400;
  transform: scale(1.1) rotate(-8deg);
}
.upload-icon-wrap {
  width: 68px; height: 68px;
  border-radius: 20px;
  background: #1a2a5c;
  color: #FFD400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all .25s ease;
  box-shadow: 0 8px 18px rgba(26,42,92,.2);
}
.upload-icon-wrap i { width: 30px; height: 30px; }
.upload-dropzone h4 {
  color: #1a2a5c;
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.upload-dropzone p {
  color: rgba(26,42,92,.65);
  font-size: 14px;
  margin: 0 0 14px;
}
.upload-dropzone p .link {
  color: #d97706;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.upload-info {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(26,42,92,.55);
  background: rgba(255,255,255,.6);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.upload-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === PREVIEW GRID === */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.preview-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f3f7ff;
  border: 1.5px solid #dbe6ff;
  animation: previewIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes previewIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.preview-item:hover img { transform: scale(1.05); }
.preview-item .preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,27,61,.6) 0%, transparent 40%, rgba(15,27,61,.7) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.preview-item:hover .preview-overlay { opacity: 1; }
.preview-item .preview-info {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.preview-item .preview-info .fname {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.preview-item .preview-info .fsize { opacity: .8; }
.preview-item .preview-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(239,68,68,.95);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform .2s, background-color .15s;
  opacity: 0;
}
.preview-item:hover .preview-remove { opacity: 1; }
.preview-item .preview-remove:hover { background: #dc2626; transform: scale(1.1) rotate(90deg); }
.preview-item.uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(15,27,61,.5);
  z-index: 1;
}
.preview-item .preview-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: #FFD400;
  z-index: 4;
  border-radius: 0 2px 2px 0;
  transition: width .3s;
}

.upload-counter {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.upload-counter i { color: #16a34a; }

/* === CHECKBOX === */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #fafcff;
  border: 1.5px solid #dbe6ff;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.checkbox-row:hover { border-color: #1a2a5c; }
.checkbox-row input[type="checkbox"] { display: none; }
.checkbox-row .check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid #c7d6ff;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  margin-top: 1px;
}
.checkbox-row .check-box i {
  width: 14px; height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: all .2s;
}
.checkbox-row input:checked ~ .check-box {
  background: #22c55e;
  border-color: #22c55e;
}
.checkbox-row input:checked ~ .check-box i {
  opacity: 1;
  transform: scale(1);
}
.checkbox-row .check-label {
  font-size: 13px;
  color: rgba(26,42,92,.8);
  line-height: 1.5;
}

/* === BUTTONS === */
.lapor-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #eaf1ff;
  margin-top: 8px;
}
.btn-submit {
  padding: 14px 32px;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(255,212,0,.35);
}

/* ====== SIDEBAR ====== */
.lapor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e0e9ff;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(15,27,61,.04);
}
.sidebar-card .ico-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #1a2a5c;
  color: #FFD400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.sidebar-card .ico-wrap.yellow { background: #FFD400; color: #1a2a5c; }
.sidebar-card .ico-wrap.navy { background: #1a2a5c; color: #FFD400; }
.sidebar-card h3 {
  color: #1a2a5c;
  font-size: 16px;
  margin: 0 0 14px;
  font-weight: 800;
}
.sidebar-card p {
  font-size: 13px;
  color: rgba(26,42,92,.7);
  margin: 0 0 12px;
  line-height: 1.5;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, #FFD400 0%, #dbe6ff 100%);
}
.process-list li {
  display: flex;
  gap: 12px;
  position: relative;
}
.process-list .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FFD400;
  color: #1a2a5c;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-list strong { font-size: 13px; color: #1a2a5c; }
.process-list p { font-size: 12px; color: rgba(26,42,92,.6); margin: 4px 0 0; line-height: 1.4; }

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(26,42,92,.75);
  line-height: 1.5;
}
.tips-list li i {
  width: 16px; height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-contact .contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1a2a5c;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px dashed #eaf1ff;
}
.sidebar-contact .contact-line:last-of-type { border-bottom: none; }
.sidebar-contact .contact-line i { color: #d97706; width: 16px; height: 16px; }

/* === SUCCESS MODAL === */
.success-modal { max-width: 480px; text-align: center; }
.success-content {
  padding: 36px 32px;
}
.success-icon {
  display: inline-flex;
  margin-bottom: 16px;
}
.success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawCircle .8s cubic-bezier(.65,.05,.36,1) forwards;
}
.success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck .4s cubic-bezier(.65,.05,.36,1) .6s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-content h2 {
  color: #1a2a5c;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 800;
}
.success-content p {
  color: rgba(26,42,92,.7);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.ticket-number {
  background: linear-gradient(135deg, #1a2a5c 0%, #2c3f7a 100%);
  color: #FFD400;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  display: inline-block;
  margin: 8px 0 16px;
  box-shadow: 0 10px 24px rgba(26,42,92,.25);
}
.success-note {
  font-size: 12px !important;
  color: rgba(26,42,92,.55) !important;
  font-style: italic;
}
.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.success-actions > * { padding: 10px 20px; font-size: 13px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .lapor-grid { grid-template-columns: 1fr; }
  .lapor-sidebar { position: static; }
}
@media (max-width: 640px) {
  .lapor-form-card { padding: 24px 20px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .lapor-section-title h3 { font-size: 15px; }
  .severity-row { grid-template-columns: 1fr; }
  .upload-dropzone { padding: 24px 16px; }
  .upload-dropzone h4 { font-size: 15px; }
  .lapor-steps { gap: 8px; }
  .step .label { display: none; }
  .lapor-buttons { flex-direction: column-reverse; }
  .lapor-buttons > button, .lapor-buttons > a { width: 100%; justify-content: center; }
  .ticket-number { font-size: 18px; padding: 12px 18px; }
}
