/* ===================== RESET DASAR ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f0f0f0;
}

/* ===================== HEADER ===================== */
header {
  background: linear-gradient(110deg, #91007a, #7f00ac);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 50px;
}

.header-left h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.logo-kanan {
  height: 50px;
}

/* ===================== MAIN ===================== */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px 60px;
  background: linear-gradient(155deg, #ff00f5 0%, #9803ff 100%);
  min-height: calc(100vh - 70px);
}

/* ===================== BAGIAN KIRI ===================== */
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.left img {
  height: 280px;
  margin-bottom: 15px;
  animation: trukMasuk 1.2s ease-out forwards;
}

.left h2 {
  font-size: 75px;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.left p {
  font-size: 22px;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* ===================== BAGIAN KANAN ===================== */
.right {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  max-width: 500px;
}

.right p {
  font-size: 22px;
  line-height: 1.4;
  text-align: justify;
  margin-bottom: 30px;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* ===================== TOMBOL ===================== */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 280px;
  margin-bottom: 120px;
}

.btn {
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  color: white !important;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-darkpink {
  background: linear-gradient(105deg, #95016c, #ce0295);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: scale(0.95);
}

/* ===================== KARIKATUR ===================== */
.karikatur {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
}

.karikatur img {
  height: 360px;
  width: auto;
}

/* ===================== ANIMASI ===================== */
@keyframes trukMasuk {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* ===================== FORM PENGADUAN ===================== */
.form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  width: 80%;
  max-width: 700px;
  margin: 40px auto;
}

.form-title {
  text-align: center;
  color: #7f00ac;
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: bold;
}

.form-note {
  text-align: center;
  color: #444;
  font-size: 14px;
  margin-bottom: 25px;
}

.form-pengaduan label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
  color: #333;
}

.required {
  color: red;
}

.form-pengaduan input[type="text"],
.form-pengaduan input[type="email"],
.form-pengaduan input[type="tel"],
.form-pengaduan input[type="file"],
.form-pengaduan input[type="date"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-top: 5px;
  font-size: 15px;
}

.form-pengaduan input:required:invalid {
  border-color: #ff5e5e;
}

.form-info {
  display: block;
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

.form-actions {
  text-align: center;
  margin-top: 25px;
}

#editor-container {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  min-height: 220px;
  padding: 10px;
  margin-top: 5px;
}

.ql-toolbar.ql-snow {
  border-radius: 10px 10px 0 0;
  border: 1px solid #ccc;
}

.ql-container.ql-snow {
  border-radius: 0 0 10px 10px;
  border: 1px solid #ccc;
}
/* ===================== KONTAINER UTAMA ===================== */
.lacak-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 5px 5px;
  flex-wrap: wrap;
}

/* ===================== BAGIAN KIRI (GAMBAR SOP) ===================== */
.lacak-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
}

.lacak-left img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lacak-left img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===================== BAGIAN KANAN (CARD FORM) ===================== */
.lacak-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
}

.lacak-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeIn 0.8s ease-out forwards;
}

.lacak-card h2 {
  font-size: 28px;
  color: #7f00ac;
  margin-bottom: 10px;
  font-weight: bold;
}

.lacak-card p {
  color: #555;
  font-size: 16px;
  margin-bottom: 25px;
}

/* ===================== FORM ===================== */
.lacak-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.lacak-form input[type="text"] {
  width: 85%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.lacak-form input[type="text"]:focus {
  border-color: #91007a;
  box-shadow: 0 0 6px rgba(145, 0, 122, 0.4);
}

.lacak-form button {
  background: linear-gradient(110deg, #91007a, #7f00ac);
  color: #fff;
  font-weight: bold;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.lacak-form button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===================== ANIMASI ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .lacak-container {
    flex-direction: column;
    padding: 40px 20px;
  }

  .lacak-left img {
    max-width: 90%;
    margin-bottom: 30px;
  }

  .lacak-card {
    padding: 30px 20px;
  }

  .lacak-card h2 {
    font-size: 22px;
  }

  .lacak-form input[type="text"] {
    width: 100%;
  }
}
.lacak-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

/* Wrapper utama */
.laporan-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* CARD UTAMA */
.laporan-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  width: 95%;
  max-width: 1100px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: all 0.3s ease;
}
.laporan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Bagian atas: status + SOP */
.laporan-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
}

/* STATUS */
.laporan-status {
  flex: 1;
  min-width: 320px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.status-icon {
  font-size: 90px;
  margin-bottom: 10px;
}
.status-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
}
.status-note {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
}

/* GAMBAR SOP */
.laporan-sop {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laporan-sop img {
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.laporan-sop img:hover {
  transform: scale(1.02);
}

.laporan-info {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 25px 35px;
  border-top: 4px solid #0d6efd;
  max-width: 50%; /* Batasi lebar biar tidak melebar terlalu jauh */
  margin: auteyy;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.laporan-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.laporan-info h3 {
  color: #0d6efd;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.laporan-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.laporan-info li {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.laporan-info li strong {
  width: 150px;
  display: inline-block;
  color: #000;
}

@media (max-width: 768px) {
  .laporan-info {
    max-width: 90%;
    padding: 20px;
  }
  .laporan-info li strong {
    width: 120px;
  }
}

/* ERROR MESSAGE */
.error-msg {
  margin-top: 20px;
  color: #dc3545;
  font-weight: bold;
}

/* TOMBOL KEMBALI */
.tombol-kembali-container {
  display: flex;
  justify-content: flex-end; /* Geser ke kanan */
  margin-top: 25px;
  margin-right: 40px; /* Jarak dari tepi kanan */
}

.btn-kembali {
  background: linear-gradient(90deg, #0d6efd, #3d8bfd);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
  transition: all 0.3s ease;
  align-self: flex-end; /* Pastikan tetap di bawah kanan */
}


.btn-kembali:hover {
  background: linear-gradient(90deg, #0b5ed7, #3a7cec);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-kembali:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* RESPONSIVE KHUSUS */
@media (max-width: 992px) {
  .laporan-top {
    flex-direction: column;
    align-items: center;
  }
  .laporan-status, .laporan-sop {
    width: 100%;
  }
}



/* ===================== RESPONSIVE TAMBAHAN ===================== */

/* Untuk tablet */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .header-left {
    flex-direction: column;
    gap: 5px;
  }

  main {
    flex-direction: column;
    padding: 30px 20px;
    gap: 40px;
  }

  .left h2 {
    font-size: 50px;
  }

  .left p {
    font-size: 18px;
  }

  .right p {
    font-size: 18px;
  }

  .lacak-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .lacak-card {
    max-width: 90%;
    padding: 30px 20px;
  }

  .lacak-card h2 {
    font-size: 22px;
  }

  .lacak-form input[type="text"] {
    width: 100%;
  }

  .laporan-top {
    flex-direction: column;
    gap: 25px;
  }

  .laporan-status,
  .laporan-sop {
    width: 100%;
  }

  .laporan-info {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Untuk HP ukuran sedang (≤768px) */
@media (max-width: 768px) {
  .left h2 {
    font-size: 42px;
  }

  .left p {
    font-size: 16px;
  }

  .lacak-left img {
    max-width: 85%;
  }

  .lacak-card {
    padding: 25px 18px;
  }

  .lacak-card h2 {
    font-size: 20px;
  }

  .lacak-card p {
    font-size: 14px;
  }

  .lacak-form input[type="text"] {
    font-size: 14px;
    padding: 10px;
  }

  .lacak-form button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .laporan-info h3 {
    font-size: 18px;
  }

  .laporan-info li {
    font-size: 14px;
  }

  .laporan-info li strong {
    width: 110px;
  }
}

/* Untuk HP kecil (≤480px) */
@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  .header-left h1 {
    font-size: 16px;
  }

  .left h2 {
    font-size: 36px;
  }

  .left p {
    font-size: 14px;
  }

  .lacak-card {
    padding: 20px;
    width: 95%;
  }

  .lacak-form input[type="text"] {
    padding: 8px;
    font-size: 13px;
  }

  .lacak-form button {
    padding: 10px;
    font-size: 13px;
  }

  .laporan-card {
    padding: 20px;
    width: 95%;
  }

  .laporan-status {
    padding: 20px;
  }

  .laporan-info {
    padding: 18px;
  }

  .btn-kembali {
    font-size: 14px;
    padding: 10px 20px;
  }
}


/* ===================== RESPONSIVE ===================== */

/* ====== Untuk layar menengah (tablet) ====== */
@media (max-width: 992px) {
  /* Header tetap sejajar kiri–kanan */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .header-left h1 {
    font-size: 18px;
  }

  .logo-kanan {
    height: 45px;
  }

  /* Main section lebih rapat tapi tetap dua sisi */
  main {
    flex-direction: column;
    padding: 30px 20px;
    gap: 40px;
  }

  /* Gambar kiri tetap besar tapi fleksibel */
  .left img {
    height: 220px;
  }

  .left h2 {
    font-size: 55px;
  }

  .left p {
    font-size: 18px;
  }

  .karikatur img {
  height: 200px;
  width: auto;
}

  /* Form card tetap di tengah, ukuran proporsional */
  .lacak-card {
    padding: 30px 25px;
    max-width: 420px;
  }

  .lacak-card h2 {
    font-size: 24px;
  }

  .lacak-card p {
    font-size: 15px;
  }
}

/* ====== Untuk layar kecil (HP) ====== */
@media (max-width: 600px) {
  /* Header tetap sejajar kiri-kanan */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
  }

  .header-left img {
    height: 40px;
  }

  .header-left h1 {
    font-size: 14px;
    max-width: 140px;
  }

  .logo-kanan {
    height: 40px;
  }

  /* Hilangkan karikatur */
  .karikatur {
    display: none;
  }

  /* Form lacak tetap di tengah */
  .lacak-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 10px;
    margin-top: 30px;
  }

  .lacak-left {
    display: none; /* sembunyikan gambar SOP di HP */
  }

  .lacak-right {
    width: 100%;
    justify-content: center;
  }

  .lacak-card {
    width: 90%;
    max-width: 400px;
    padding: 25px 20px;
  }

  .lacak-card h2 {
    font-size: 22px;
  }

  .lacak-card p {
    font-size: 14px;
  }

  .lacak-form input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .lacak-form button {
    padding: 12px 20px;
    font-size: 15px;
  }

  /* Latar & jarak tetap seperti desktop */
  main {
    background: linear-gradient(155deg, #ff00f5 0%, #9803ff 100%);
    padding: 30px 15px;
  }

  /* Supaya tidak berantakan di bawah */
  body {
    overflow-x: hidden;
  }
}


/* ===================== FIX HEADER RESPONSIVE ===================== */
header {
  display: flex;
  flex-direction: row !important; /* Paksa sejajar horizontal */
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(110deg, #91007a, #7f00ac);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: white;
  flex-wrap: nowrap; /* jangan biarkan turun ke bawah */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-left img {
  height: 45px;
  width: auto;
}

.header-left h1 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.logo-kanan {
  height: 45px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  header {
    padding: 8px 12px;
  }

  .header-left img {
    height: 40px;
  }

  .header-left h1 {
    font-size: 14px;
    line-height: 1.2;
  }

  .logo-kanan {
    height: 40px;
  }
}
  