:root {
  color-scheme: light;
  --green-900: #0f3d2e;
  --green-700: #1d6b50;
  --green-500: #1f8f67;
  --green-300: #64c19a;
  --green-100: #e6f6ef;
  --neutral-900: #0f172a;
  --neutral-700: #334155;
  --neutral-500: #64748b;
  --neutral-200: #e2e8f0;
  --neutral-100: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 61, 46, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-100);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--neutral-200);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-700), var(--green-300));
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 1px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-subtitle {
  color: var(--neutral-500);
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--neutral-900);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  color: var(--neutral-700);
}

.nav-links a {
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--green-700);
  font-weight: 700;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 3.4rem);
  margin: 20px 0 16px;
}

.hero-text {
  color: var(--neutral-700);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(31, 143, 103, 0.35);
}

.button.primary:hover,
.button.ghost:hover,
.button.pay-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.button,
.button.pay-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.button:active,
.button.pay-btn:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.button:focus,
.button.pay-btn:focus {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
}

.button.ghost {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  color: var(--green-700);
}

.hero-highlights {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-highlights h3 {
  font-size: 1.8rem;
  color: var(--green-700);
}

.hero-highlights p {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card-header h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hero-form {
  display: grid;
  gap: 16px;
}

.hero-form label,
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  color: var(--neutral-700);
}

.hero-form input,
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  font-size: 1rem;
  font-family: inherit;
}

.hero-card-footer {
  font-size: 0.9rem;
  color: var(--neutral-500);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section.alt {
  background: var(--green-100);
  border-radius: 40px;
  margin: 40px auto;
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-label {
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 10px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.section p {
  color: var(--neutral-600);
}

.cards-grid,
.program-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.info-card,
.program-card,
.news-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(15, 61, 46, 0.08);
}

.info-card a {
  color: var(--green-700);
  font-weight: 600;
  display: inline-block;
  margin-top: 16px;
}

.program-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.news-date {
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-bottom: 10px;
}

.contact {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--green-100);
  border-radius: 20px;
  padding: 24px;
}

.contact-card p {
  margin-bottom: 10px;
  color: var(--neutral-700);
}

.contact-form textarea {
  resize: vertical;
}

.pengaduan-section {
  background: linear-gradient(135deg, var(--green-100) 0%, var(--white) 100%);
  border-radius: 32px;
  margin-bottom: 60px;
}

.pengaduan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.pengaduan-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(15, 61, 46, 0.08);
}

.info-box h3 {
  margin-bottom: 16px;
  color: var(--green-700);
}

.pengaduan-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pengaduan-list li {
  padding-left: 24px;
  position: relative;
}

.pengaduan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

.pengaduan-list strong {
  display: block;
  color: var(--neutral-900);
  margin-bottom: 4px;
}

.pengaduan-list p {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.emergency-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-700);
  text-align: center;
  margin: 16px 0;
}

.pengaduan-form {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 14px 35px rgba(15, 61, 46, 0.12);
}

.pengaduan-form h3 {
  margin-bottom: 24px;
  color: var(--green-700);
}

.pengaduan-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--neutral-700);
}

.pengaduan-form input,
.pengaduan-form select,
.pengaduan-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pengaduan-form input:focus,
.pengaduan-form select:focus,
.pengaduan-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(31, 143, 103, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.file-upload {
  cursor: pointer;
}

.file-upload input[type="file"] {
  cursor: pointer;
}

.file-note {
  font-size: 0.85rem;
  color: var(--neutral-500);
  font-weight: 400;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-actions .button {
  flex: 1;
  min-width: 140px;
}

.pengaduan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 20px rgba(15, 61, 46, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--green-700);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(15, 61, 46, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-100);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}

.modal-content h3 {
  margin-bottom: 12px;
  color: var(--green-700);
}

.modal-content p {
  color: var(--neutral-600);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.status-modal {
  max-width: 600px;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-200);
  color: var(--neutral-700);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--neutral-300);
  transform: rotate(90deg);
}

.status-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.status-header h3 {
  margin-bottom: 8px;
}

.ticket-number {
  color: var(--neutral-500);
  font-size: 0.95rem;
}

.status-info {
  padding: 20px 0;
  color: var(--neutral-700);
  line-height: 1.6;
}

.status-timeline {
  padding: 20px 0;
  border-top: 1px solid var(--neutral-200);
}

.status-timeline h4 {
  margin-bottom: 20px;
  color: var(--green-700);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--neutral-200);
}

.timeline-item.done:not(:last-child)::before {
  background: var(--green-500);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neutral-200);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--neutral-200);
}

.timeline-item.done .timeline-dot {
  background: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-content strong {
  color: var(--neutral-900);
}

.timeline-content span {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.status-details {
  padding: 20px;
  background: var(--green-100);
  border-radius: 12px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span {
  color: var(--neutral-600);
}

.detail-row strong {
  color: var(--neutral-900);
}

.billing-section .billing-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.billing-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.billing-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--neutral-700);
}

.billing-form input {
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.billing-results {
  margin-top: 12px;
}

.billing-empty {
  background: #fff7f3;
  color: #b23d28;
  border: 1px solid #fac2b3;
  padding: 12px;
  border-radius: 10px;
}

.billing-summary {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.billing-summary p {
  margin: 0;
  color: var(--neutral-700);
}

.billing-table-wrapper {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.billing-table th,
.billing-table td {
  border: 1px solid var(--neutral-200);
  padding: 10px 12px;
  text-align: left;
}

.billing-table th {
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-weight: 600;
}

.bill-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.bill-status.paid {
  background: #def7ec;
  color: #0f6d45;
}

.bill-status.unpaid {
  background: #ffefc6;
  color: #8a6d0e;
}

.billing-table .button {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding: 50px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0 8px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
  }

  .hero-highlights {
    flex-direction: column;
  }

  .section.alt {
    border-radius: 24px;
  }
}


/* SUMMARY */
.billing-summary {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.billing-summary .label {
  font-size: 12px;
  color: #6b7280;
}

.billing-summary h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.billing-summary h4 {
  margin: 4px 0 0;
  font-size: 14px;
  color: #374151;
}

/* TOTAL BOX */
.total-box {
  background: #3b82f6;
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: right;
}

.total-box h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

/* Divider */
.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

/* Title */
.payment-title {
  margin-bottom: 10px;
}

/* GRID */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* CARD */
.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.payment-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ICON */
.payment-icon img {
  width: 45px;
}

/* INFO */
.payment-info {
  flex: 1;
}

.payment-info h4 {
  margin: 0;
  font-size: 14px;
}

.payment-info .fee {
  font-size: 12px;
  color: #6b7280;
}

/* ARROW */
.arrow {
  font-size: 18px;
  color: #9ca3af;
}

/* ERROR */
.error-text {
  color: #ef4444;
}
.payment-card.selectable {
  cursor: pointer;
  transition: 0.2s;
}

.payment-card.selectable:hover {
  transform: translateY(-2px);
}

.payment-card.active {
  border: 2px solid #10b981;
  background: #ecfdf5;
}

.payment-summary-box {
  margin-top: 25px;
  padding: 15px;
  border-radius: 10px;
  background: #f9fafb;
}

.grand-total {
  font-size: 18px;
  margin-top: 10px;
}


.payment-detail-card {
  max-width: 600px;
  margin: auto;
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* STATUS */
.status-box {
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
}

.status-box.unpaid {
  background: #fef3c7;
  color: #92400e;
}

.status-box.paid {
  background: #d1fae5;
  color: #065f46;
}

/* VA */
.va-box {
  text-align: center;
  margin: 20px 0;
}

.va-box h1 {
  letter-spacing: 2px;
  font-size: 24px;
}

.copy-btn {
  margin-top: 8px;
  font-size: 12px;
  color: #3b82f6;
  background: none;
  border: none;
  cursor: pointer;
}

/* SUMMARY */
.payment-summary {
  margin-top: 15px;
}

.payment-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-summary .total {
  font-weight: bold;
  font-size: 16px;
}

/* BUTTON */
.full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* ACCORDION */
.accordion {
  width: 100%;
  text-align: left;
  padding: 10px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 6px;
}

.panel {
  display: none;
  padding: 10px;
  background: #fafafa;
}


.expired-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 15px;
}

.expired-icon {
  font-size: 22px;
}

.expired-content .label {
  font-size: 12px;
  color: #9a3412;
  margin: 0;
}

#countdown {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: bold;
  color: #c2410c;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.billing-section {
  padding: 40px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-label {
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
}

.billing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* FORM */
.billing-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group span {
  font-size: 13px;
  margin-bottom: 4px;
  color: #6b7280;
}

.billing-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

/* BUTTON */
.button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.button.primary {
  background: #3b82f6;
  color: white;
}

.button.pay {
  background: #10b981;
  color: white;
}

.button.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* CUSTOMER INFO */
.customer-info {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.total-tagihan {
  font-weight: 600;
  margin-top: 10px;
}

.total-tagihan span {
  color: #ef4444;
  font-size: 18px;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th {
  text-align: left;
  padding: 12px;
  background: #f3f4f6;
  font-size: 13px;
}

.billing-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
}

.billing-table tr:hover {
  background: #f9fafb;
}

.amount {
  font-weight: 600;
}

/* BADGE */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.unpaid {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.paid {
  background: #dcfce7;
  color: #166534;
}

.badge.unknown {
  background: #e5e7eb;
  color: #374151;
}

/* NO RESULT */
.no-results {
  text-align: center;
  padding: 20px;
  color: #6b7280;
}
