/* Kotak cek validitas sertifikat dan modal hasilnya. */

.cek-sertifikat-box {
  margin-top: 36px;
  max-width: 560px;
  background: rgba(20,23,28,.72);
  border: 1px solid rgba(245,197,24,.35);
  border-radius: 10px;
  padding: 22px 24px;
  backdrop-filter: blur(4px);
}

.cek-sertifikat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold-ink);
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.cek-sertifikat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cek-sertifikat-row input {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(242,240,234,.25);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--on-black);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
}

.cek-sertifikat-row input::placeholder {
  color: var(--on-black-soft);
}

.cek-sertifikat-row input:focus {
  border-color: var(--accent-gold);
}

.cek-sertifikat-row .btn {
  padding: 12px 22px;
}

.cek-sertifikat-note {
  font-size: .74rem;
  color: var(--on-black-soft);
  margin: 10px 0 0;
}

.contoh-hasil-link {
  color: var(--gold-ink);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width:520px) {
  .cek-sertifikat-row {
    flex-direction: column;
  }
  .cek-sertifikat-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.contoh-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,8,10,.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.contoh-modal.open {
  display: flex;
}

.contoh-modal-panel {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.contoh-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.contoh-modal-close svg {
  width: 16px;
  height: 16px;
}

.contoh-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

.contoh-modal-head {
  background: linear-gradient(135deg, var(--brand-black), #16321f 120%);
  padding: 36px 24px 20px;
  text-align: center;
}

.contoh-modal-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--accent-gold);
}

.contoh-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contoh-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56,199,110,.15);
  border: 1px solid #38c76e;
  color: #38c76e;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
}

.contoh-modal-body {
  padding: 22px 26px 26px;
}

.contoh-modal-name {
  font-size: 1.25rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2px;
}

.contoh-modal-skema {
  text-align: center;
  color: var(--gold-ink);
  font-size: .9rem;
  margin-bottom: 20px;
}

.contoh-field-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contoh-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .86rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.contoh-field span:first-child {
  color: var(--text-soft);
}

.contoh-field span:last-child {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.contoh-modal-disclaimer {
  margin-top: 20px;
  font-size: .72rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.5;
}

.contoh-modal-head-nf {
  padding: 28px 24px;
}

.contoh-status-nf {
  background: rgba(214,69,55,.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

#contohModalNotFound .contoh-modal-name {
  font-size: 1.05rem;
  line-height: 1.4;
}

#contohModalNotFound .contoh-modal-disclaimer {
  margin-top: 14px;
}
