/* JagaKamu Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.jk-form-wrap {
  font-family: 'DM Sans', sans-serif;
  max-width: 820px;
  margin: 0 auto 2rem;
  background: #fff;
  border: 1px solid #E2E5F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,31,61,.07);
}

.jk-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: #1A1F3D;
  color: #fff;
}
.jk-vol-header { background: #1A1F3D; }
.jk-ap-header  { background: #252B50; }

.jk-form-icon { font-size: 36px; }
.jk-form-header h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.jk-form-header p  { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }

.jk-form { padding: 28px 32px; }

.jk-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #3D52A0;
  margin: 24px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid #E2E5F0;
}
.jk-form .jk-section-title:first-child { margin-top: 0; }

.jk-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 4px;
}

.jk-field { display: flex; flex-direction: column; gap: 5px; }
.jk-field-full { grid-column: 1 / -1; }

.jk-field label {
  font-size: 13px; font-weight: 600; color: #444;
}

.jk-field input[type="text"],
.jk-field input[type="email"],
.jk-field input[type="tel"],
.jk-field input[type="number"],
.jk-field select,
.jk-field textarea {
  padding: 10px 13px;
  border: 1.5px solid #E2E5F0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #1E2235;
  background: #F7F8FC;
  transition: border-color .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
}
.jk-field input:focus,
.jk-field select:focus,
.jk-field textarea:focus {
  border-color: #3D52A0; background: #fff; outline: none;
}
.jk-field textarea { resize: vertical; min-height: 90px; }

/* Checkboxes */
.jk-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.jk-checkbox-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.jk-check-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid #E2E5F0; border-radius: 8px;
  cursor: pointer; font-size: 13px; color: #333;
  background: #F7F8FC; transition: border-color .2s, background .2s;
  line-height: 1.45;
}
.jk-check-item:hover { border-color: #3D52A0; background: #EEF1FB; }
.jk-check-item input[type="checkbox"] { margin-top: 2px; accent-color: #3D52A0; flex-shrink: 0; }
.jk-check-standalone { margin-top: 6px; }

/* PDPA */
.jk-pdpa-box {
  background: #EEF1FB;
  border: 1px solid rgba(61,82,160,.2);
  border-left: 4px solid #3D52A0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}
.jk-pdpa-box .jk-check-item {
  background: transparent; border: none; padding: 0; font-size: 13px; color: #444;
}
.jk-pdpa-box .jk-check-item:hover { background: transparent; border: none; }

/* Messages */
.jk-form-msg {
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; display: none; margin: 8px 0;
}
.jk-form-msg.success { background: #EAF9F0; color: #1A6B3C; border: 1px solid #9FD4B2; display: block; }
.jk-form-msg.error   { background: #FDF0F0; color: #9B2626; border: 1px solid #EDAFAF; display: block; }

/* Buttons */
.jk-form-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px;
}
.jk-btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: #3D52A0; color: #fff;
  border: none; padding: 13px 28px;
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .15s;
}
.jk-btn-submit:hover { background: #2B3A7A; transform: translateY(-1px); }
.jk-btn-submit:disabled { background: #aaa; cursor: not-allowed; transform: none; }
.jk-btn-ap { background: #252B50; }
.jk-btn-ap:hover { background: #1A1F3D; }

.jk-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s;
}
.jk-btn-wa:hover { background: #1EB85A; transform: translateY(-1px); color: #fff; }

/* Success state */
.jk-success-panel {
  text-align: center; padding: 36px 28px;
}
.jk-success-panel h3 { color: #1A6B3C; font-size: 22px; margin-bottom: 10px; }
.jk-success-panel p { color: #555; margin-bottom: 20px; }
.jk-success-panel .jk-rec-no {
  display: inline-block; background: #EAF9F0;
  border: 1px solid #9FD4B2; border-radius: 8px;
  padding: 10px 20px; font-size: 20px; font-weight: 700;
  color: #1A6B3C; margin-bottom: 20px;
}

@media (max-width: 600px) {
  .jk-form { padding: 20px 18px; }
  .jk-form-header { padding: 18px 20px; }
  .jk-form-actions { flex-direction: column; }
  .jk-btn-submit, .jk-btn-wa { justify-content: center; width: 100%; }
}
