/* DesakuPRO - PPID styles */

.dpro-ppid-page-wrapper,
.dpro-ppid-law-wrapper,
.dpro-ppid-form-page {
  background: #f3f5f7;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #1f2937;
}

.dpro-ppid-page-wrapper .container,
.dpro-ppid-law-wrapper .container,
.dpro-ppid-form-page .container {
  max-width: 1200px;
}

.dpro-ppid-title {
  font-size: clamp(30px, 2.7vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  color: #23876f;
  letter-spacing: -0.02em;
  margin: 0;
}

.dpro-ppid-desc {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.72;
  color: #111827;
  max-width: 720px;
}

.dpro-btn-outline {
  border: 2px solid #7dc5b0 !important;
  color: #176d59 !important;
  font-weight: 700;
  border-radius: 10px;
  min-height: 54px;
  padding: 10px 22px;
  font-size: clamp(18px, 1.05vw, 22px);
  line-height: 1.15;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.dpro-btn-outline:hover,
.dpro-btn-outline:focus {
  background: #23876f !important;
  color: #fff !important;
  border-color: #23876f !important;
}

.dpro-ppid-hero-copy {
  border-radius: 14px;
}

.dpro-ppid-type-card {
  border-radius: 14px;
  min-height: 218px;
}

.dpro-ppid-type-icon {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpro-ppid-type-icon img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.dpro-ppid-type-label {
  font-weight: 800;
  color: #616b77;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.dpro-ppid-subtitle {
  margin-top: 10px;
  font-size: clamp(28px, 2.15vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #23876f;
}

.dpro-ppid-update {
  font-size: clamp(24px, 1.8vw, 34px);
  color: #0f172a;
  font-weight: 600;
}

.dpro-ppid-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dpro-ppid-item {
  border-radius: 10px;
  border: 1px solid #dbe0e7 !important;
  background: #fff;
  box-shadow: none !important;
}

.dpro-ppid-item-title {
  margin: 0;
  font-size: clamp(22px, 1.45vw, 29px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #0f172a;
  font-weight: 800;
}

.dpro-ppid-meta-line {
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1.4;
  color: #0f172a;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dpro-ppid-icon {
  width: 20px;
  text-align: center;
  color: #4b5563;
  flex-shrink: 0;
}

.dpro-ppid-dot {
  color: #9ca3af;
  font-size: 0.95em;
  margin: 0 2px;
}

.dpro-ppid-jenis {
  color: #475569;
  font-weight: 600;
}

.dpro-ppid-actions {
  width: 100%;
}

.dpro-ppid-btn {
  width: 100%;
  min-height: 66px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  font-weight: 700;
  color: #1f2937;
  font-size: clamp(15px, 1.06vw, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
}

.dpro-ppid-btn:hover,
.dpro-ppid-btn:focus {
  border-color: #23876f;
  color: #176d59;
  background: #f8fffc;
}

.dpro-ppid-btn.disabled,
.dpro-ppid-btn[disabled] {
  opacity: .6;
  pointer-events: none;
}

.dpro-ppid-cta {
  border-radius: 10px;
}

.dpro-ppid-cta h4 {
  font-size: clamp(24px, 1.6vw, 32px);
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
}

.dpro-cta-btn {
  min-height: 58px;
  min-width: 360px;
  max-width: 100%;
  font-size: clamp(18px, 1.05vw, 22px);
  border-radius: 8px;
  text-align: center;
  justify-content: center;
}

/* Modal viewer */
.dpro-ppid-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.dpro-ppid-modal.is-open {
  display: block;
}

.dpro-ppid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
}

.dpro-ppid-modal-dialog {
  position: relative;
  margin: 42px auto;
  width: min(96vw, 1480px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 25px 55px rgba(15, 23, 42, .25);
  overflow: hidden;
}

.dpro-ppid-modal-header {
  min-height: 66px;
  padding: 16px 72px 16px 22px;
  border-bottom: 1px solid #e8ecf2;
  display: flex;
  align-items: center;
}

.dpro-ppid-viewer-title {
  margin: 0;
  font-size: clamp(17px, 1.1vw, 22px);
  line-height: 1.2;
  color: #0f172a;
  font-weight: 700;
}

.dpro-ppid-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d5dbe4;
  background: #fff;
  color: #344054;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

.dpro-ppid-modal-body {
  height: min(82vh, 1000px);
  background: #f8fafc;
}

.dpro-ppid-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.dpro-ppid-modal-open {
  overflow: hidden;
}

/* Dasar Hukum page */
.dpro-ppid-law-sub {
  font-size: clamp(20px, 1.2vw, 30px);
  line-height: 1.5;
  color: #0f172a;
  margin: 0;
}

.dpro-ppid-law-card {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 44px 52px;
}

.dpro-law-block {
  margin-bottom: 26px;
}

.dpro-law-block:last-child {
  margin-bottom: 0;
}

.dpro-law-block h3 {
  margin: 0 0 14px;
  font-size: clamp(30px, 2vw, 44px);
  line-height: 1.2;
  color: #2f8f87;
  letter-spacing: -0.012em;
  font-weight: 800;
}

.dpro-law-block ol {
  margin: 0;
  padding-left: 34px;
}

.dpro-law-block li {
  margin-bottom: 8px;
  font-size: clamp(17px, 1.02vw, 22px);
  line-height: 1.6;
  color: #0f172a;
}

/* Form Permohonan */
.dpro-ppid-form-card {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  padding: 28px;
}

.dpro-ppid-form-alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 15px;
}

.dpro-ppid-form-alert--error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.dpro-ppid-form-alert--ok {
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dpro-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: clamp(22px, 1.2vw, 30px);
  line-height: 1.3;
  color: #101828;
  font-weight: 700;
}

.dpro-label span {
  color: #f04438;
}

.dpro-input-icon-wrap {
  position: relative;
}

.dpro-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d99a8;
  font-size: 20px;
  z-index: 2;
}

.dpro-input-icon i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900;
}

.dpro-input {
  width: 100%;
  min-height: 74px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #111827;
  font-size: clamp(20px, 1.15vw, 26px);
  line-height: 1.35;
  padding: 16px 16px 16px 54px;
  box-shadow: none;
  outline: 0;
}

.dpro-input::placeholder {
  color: #98a2b3;
}

.dpro-input:focus {
  border-color: #23876f;
  background: #fff;
}

.dpro-input-textarea {
  min-height: 250px;
  resize: vertical;
  padding: 16px 18px;
}

.dpro-ppid-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.dpro-submit-btn {
  min-height: 62px;
  min-width: 160px;
  border: none;
  border-radius: 8px;
  background: #23876f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  padding: 0 24px;
  font-size: clamp(18px, 1vw, 22px);
}

.dpro-submit-btn:hover,
.dpro-submit-btn:focus {
  background: #176d59;
  color: #fff;
}



.dpro-ppid-type-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.dpro-ppid-type-link:hover,
.dpro-ppid-type-link:focus {
  color: inherit;
}

.dpro-ppid-type-link:hover .dpro-ppid-type-card,
.dpro-ppid-type-link:focus .dpro-ppid-type-card {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12) !important;
}

.dpro-ppid-type-card {
  transition: .18s ease;
}

/* Halaman jenis informasi PPID */
.dpro-ppid-jenis-wrapper {
  background: #f3f5f7;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.dpro-ppid-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dpro-ppid-accordion-item {
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.dpro-ppid-accordion-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-size: clamp(22px, 1.25vw, 28px);
  font-weight: 800;
  color: #0f172a;
}

.dpro-ppid-accordion-item > summary::-webkit-details-marker {
  display: none;
}

.dpro-ppid-accordion-item > summary i {
  font-size: 16px;
  color: #4b5563;
  transition: transform .2s ease;
}

.dpro-ppid-accordion-item[open] > summary i {
  transform: rotate(180deg);
}

.dpro-ppid-accordion-content {
  padding: 0 14px 14px;
}

.dpro-ppid-empty-state {
  min-height: 120px;
  border-radius: 8px;
  border: 1px dashed #d7dee7;
  background: #f8fafc;
  color: #97a3b6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(18px, 1.1vw, 26px);
  text-align: center;
  padding: 18px;
}

.dpro-ppid-jenis-table {
  width: 100%;
  border-collapse: collapse;
}

.dpro-ppid-jenis-table thead th {
  text-align: left;
  font-size: clamp(16px, 1vw, 22px);
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #dbe2ea;
  padding: 12px 10px;
}

.dpro-ppid-jenis-table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid #e5ebf2;
  padding: 14px 10px;
  font-size: clamp(16px, 1vw, 22px);
  color: #0f172a;
}

.dpro-ppid-jenis-table tbody tr:last-child td {
  border-bottom: 0;
}

.dpro-ppid-jenis-title {
  font-weight: 700;
  text-transform: uppercase;
}

.dpro-ppid-jenis-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Admin editor PPID: kolom kiri full, publish tetap di kanan */
.post-type-desakupro_ppid #post-body.columns-2 {
  margin-right: 320px !important;
}

.post-type-desakupro_ppid #postbox-container-1 {
  width: 300px !important;
  margin-right: -300px !important;
  float: right !important;
}

.post-type-desakupro_ppid #postbox-container-2 {
  width: 100% !important;
  float: none !important;
}

.post-type-desakupro_ppid #postbox-container-2 .inside,
.post-type-desakupro_ppid #normal-sortables,
.post-type-desakupro_ppid #normal-sortables .postbox,
.post-type-desakupro_ppid #normal-sortables .postbox .inside,
.post-type-desakupro_ppid .dpro-admin-metabox,
.post-type-desakupro_ppid .dpro-admin-metabox .card,
.post-type-desakupro_ppid .dpro-admin-metabox .card-body,
.post-type-desakupro_ppid #desakupro_ppid_form {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.post-type-desakupro_ppid #desakupro_ppid_form .inside {
  margin: 0 !important;
  padding: 0 !important;
}

.post-type-desakupro_ppid .dpro-admin-metabox .card {
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  overflow: hidden;
}

.post-type-desakupro_ppid .dpro-admin-metabox .card-body {
  padding: 22px;
}

.post-type-desakupro_ppid .dpro-admin-metabox .form-control,
.post-type-desakupro_ppid .dpro-admin-metabox .form-select,
.post-type-desakupro_ppid .dpro-admin-metabox textarea {
  min-height: 42px;
}

@media (max-width: 1199.98px) {
  .dpro-ppid-type-card {
    min-height: 188px;
  }

  .dpro-ppid-type-icon {
    height: 102px;
  }

  .dpro-ppid-btn {
    min-height: 58px;
  }

  .dpro-ppid-modal-dialog {
    width: min(98vw, 1300px);
    margin: 18px auto;
  }

  .dpro-ppid-modal-body {
    height: 76vh;
  }

  .dpro-law-block h3 {
    font-size: clamp(26px, 2.1vw, 36px);
  }

  .dpro-label {
    font-size: clamp(18px, 1.4vw, 26px);
  }

  .dpro-input {
    min-height: 62px;
    font-size: clamp(18px, 1.2vw, 24px);
  }

  .dpro-input-textarea {
    min-height: 200px;
  }
}

@media (max-width: 991.98px) {
  .dpro-ppid-page-wrapper .container,
  .dpro-ppid-law-wrapper .container,
  .dpro-ppid-form-page .container {
    max-width: 100%;
  }

  .dpro-ppid-subtitle {
    font-size: clamp(26px, 7.8vw, 42px);
  }

  .dpro-ppid-update {
    font-size: clamp(17px, 3.5vw, 22px);
  }

  .dpro-ppid-item-title {
    font-size: clamp(20px, 4.1vw, 30px);
  }

  .dpro-ppid-meta-line {
    font-size: clamp(14px, 3vw, 18px);
  }

  .dpro-ppid-btn {
    font-size: clamp(14px, 3.2vw, 18px);
    min-height: 54px;
  }

  .dpro-ppid-cta h4 {
    font-size: clamp(20px, 4.3vw, 28px);
  }

  .dpro-cta-btn {
    min-width: 0;
    width: 100%;
  }

  .dpro-ppid-law-card,
  .dpro-ppid-form-card {
    padding: 22px 16px;
  }

  .dpro-law-block h3 {
    font-size: clamp(23px, 5.1vw, 30px);
    margin-bottom: 10px;
  }

  .dpro-law-block li {
    font-size: clamp(15px, 3.7vw, 18px);
    line-height: 1.48;
  }

  .dpro-label {
    font-size: clamp(18px, 4vw, 22px);
  }

  .dpro-input {
    min-height: 56px;
    padding: 13px 14px 13px 46px;
    font-size: clamp(17px, 3.8vw, 20px);
  }

  .dpro-input-icon {
    left: 14px;
    font-size: 18px;
  }

  .dpro-input-textarea {
    min-height: 150px;
    padding: 14px;
  }

  .dpro-submit-btn {
    min-height: 54px;
    min-width: 140px;
    font-size: 16px;
  }

  .dpro-ppid-modal-dialog {
    border-radius: 8px;
  }

  .dpro-ppid-modal-header {
    min-height: 54px;
    padding: 12px 54px 12px 14px;
  }

  .dpro-ppid-modal-close {
    width: 34px;
    height: 34px;
    top: 9px;
    right: 8px;
  }

  .dpro-ppid-modal-body {
    height: 82vh;
  }

  .dpro-ppid-accordion-item > summary {
    font-size: clamp(18px, 4vw, 22px);
    padding: 14px 14px;
  }

  .dpro-ppid-accordion-content {
    padding: 0 10px 10px;
  }

  .dpro-ppid-empty-state {
    min-height: 84px;
    font-size: clamp(15px, 3.8vw, 18px);
  }

  .dpro-ppid-jenis-table thead th,
  .dpro-ppid-jenis-table tbody td {
    font-size: 14px;
    padding: 10px 8px;
  }

}

@media (max-width: 782px) {
  .post-type-desakupro_ppid #post-body.columns-2 {
    margin-right: 0 !important;
  }

  .post-type-desakupro_ppid #postbox-container-1,
  .post-type-desakupro_ppid #postbox-container-2 {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
}


/* ===== PPID hotfix v1.1.29 ===== */
/* 1) Icon form jangan menimpa placeholder */
.dpro-ppid-form-card .dpro-input-icon-wrap {
  position: relative;
}

.dpro-ppid-form-card .dpro-input-icon-wrap .dpro-input {
  padding-left: 64px !important;
}

.dpro-ppid-form-card .dpro-input-icon {
  left: 20px;
  width: 20px;
  text-align: center;
  pointer-events: none;
}

.dpro-ppid-form-card .dpro-input::placeholder {
  text-indent: 0 !important;
}

/* 2) Admin editor PPID: kolom kiri benar-benar full, publish tetap kanan */
body.wp-admin.post-type-desakupro_ppid #poststuff {
  display: block !important;
}

body.wp-admin.post-type-desakupro_ppid #poststuff #post-body.columns-2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  grid-template-areas:
    "content side"
    "main side" !important;
  column-gap: 20px !important;
  row-gap: 0 !important;
  align-items: start !important;
  margin-right: 0 !important;
}

body.wp-admin.post-type-desakupro_ppid #post-body-content {
  grid-area: content !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.wp-admin.post-type-desakupro_ppid #postbox-container-2 {
  grid-area: main !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.wp-admin.post-type-desakupro_ppid #postbox-container-1 {
  grid-area: side !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  align-self: start !important;
  position: sticky !important;
  top: 56px !important;
  z-index: 9;
}

body.wp-admin.post-type-desakupro_ppid #postbox-container-1 .postbox {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.wp-admin.post-type-desakupro_ppid #normal-sortables,
body.wp-admin.post-type-desakupro_ppid #normal-sortables .postbox,
body.wp-admin.post-type-desakupro_ppid #normal-sortables .postbox .inside,
body.wp-admin.post-type-desakupro_ppid #normal-sortables .postbox .inside > *,
body.wp-admin.post-type-desakupro_ppid .dpro-admin-metabox,
body.wp-admin.post-type-desakupro_ppid .dpro-admin-metabox .card,
body.wp-admin.post-type-desakupro_ppid .dpro-admin-metabox .card-body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  body.wp-admin.post-type-desakupro_ppid #poststuff #post-body.columns-2 {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "content"
      "side"
      "main" !important;
    row-gap: 12px !important;
  }

  body.wp-admin.post-type-desakupro_ppid #postbox-container-1,
  body.wp-admin.post-type-desakupro_ppid #postbox-container-2 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
  }
}

@media (max-width: 991.98px) {
  .dpro-ppid-form-card .dpro-input-icon-wrap .dpro-input {
    padding-left: 56px !important;
  }

  .dpro-ppid-form-card .dpro-input-icon {
    left: 16px;
    width: 18px;
  }
}

/* ===== PPID hotfix v1.1.30 ===== */
/* Icon form benar-benar tidak boleh menimpa placeholder (override theme keras) */
.dpro-ppid-request-form .dpro-input-icon-wrap > input.dpro-input,
.dpro-ppid-request-form .dpro-input-icon-wrap > input[type="text"].dpro-input,
.dpro-ppid-request-form .dpro-input-icon-wrap > input[type="email"].dpro-input,
.dpro-ppid-request-form .dpro-input-icon-wrap > input[type="tel"].dpro-input {
  padding-left: 74px !important;
  text-indent: 0 !important;
  box-sizing: border-box !important;
}

.dpro-ppid-request-form .dpro-input-icon {
  pointer-events: none;
  z-index: 5;
}
