/* ================================
   HALAMAN SARAN DAN KRITIK
   Prefix: sk-
   Aman untuk ditempel ke template website kantor/Joomla
================================ */

/* Reset ringan khusus area form */
.sk-page,
.sk-page * {
  box-sizing: border-box;
}

/* Wrapper utama halaman */
.sk-page {
  width: 100%;
  min-height: auto;
  padding: 72px 20px 80px;
  background: transparent !important;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

/* Container */
.sk-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ================================
   HEADING
================================ */

.sk-heading {
  text-align: center;
  margin-bottom: 34px;
}

.sk-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(49, 46, 129, 0.12);
}

.sk-heading h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
}

.sk-heading p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4b5563;
}

/* ================================
   CARD FORM
================================ */

.sk-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

/* ================================
   GRID LAYOUT
================================ */

.sk-grid {
  display: grid;
  gap: 22px;
}

.sk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sk-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ================================
   FIELD
================================ */

.sk-field {
  margin-bottom: 22px;
}

.sk-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
}

.sk-field label span {
  color: #dc2626;
}

.sk-field label em {
  font-style: normal;
  font-weight: 500;
  color: #6b7280;
}

/* Input, select, textarea */
.sk-field input,
.sk-field select,
.sk-field textarea {
  width: 100%;
  border: 1px solid #cfd6e0;
  border-radius: 12px;
  padding: 14px 15px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.sk-field input::placeholder,
.sk-field textarea::placeholder {
  color: #8a94a6;
}

/* Focus state */
.sk-field input:focus,
.sk-field select:focus,
.sk-field textarea:focus {
  border-color: #312e81;
  box-shadow: 0 0 0 4px rgba(49, 46, 129, 0.12);
  background: #ffffff;
}

/* Select */
.sk-field select {
  cursor: pointer;
  appearance: auto;
}

/* Textarea */
.sk-field textarea {
  min-height: 170px;
  resize: vertical;
}

/* Info bawah textarea */
.sk-textarea-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 7px;
}

#charCounter {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12.5px;
  color: #6b7280;
}

/* ================================
   ERROR
================================ */

.sk-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #dc2626;
}

.sk-field.is-error input,
.sk-field.is-error select,
.sk-field.is-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

/* ================================
   PRIVACY NOTE
================================ */

.sk-privacy-note {
  margin: 4px 0 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ================================
   CHECKBOX
================================ */

.sk-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.sk-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #312e81;
  cursor: pointer;
}

.sk-checkbox label {
  cursor: pointer;
}

/* ================================
   MESSAGE SUCCESS / ERROR
================================ */

.sk-message {
  display: none;
  margin: 20px 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.sk-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.sk-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sk-message.info {
  display: block;
  background: #eef2ff;
  color: #312e81;
  border: 1px solid #c7d2fe;
}

/* ================================
   BUTTONS
================================ */

.sk-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.sk-btn {
  min-width: 150px;
  border-radius: 12px;
  padding: 14px 26px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.sk-btn:active {
  transform: translateY(1px);
}

.sk-btn-primary {
  background: #312e81;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(49, 46, 129, 0.22);
}

.sk-btn-primary:hover {
  background: #1e1b4b;
}

.sk-btn-secondary {
  background: #ffffff;
  color: #312e81;
  border: 1px solid #cfd6e0;
}

.sk-btn-secondary:hover {
  background: #f3f4f6;
}

.sk-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .sk-page {
    padding: 56px 16px 64px;
  }

  .sk-card {
    padding: 26px;
    border-radius: 18px;
  }

  .sk-grid-3,
  .sk-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sk-heading h1 {
    font-size: 30px;
  }

  .sk-heading p {
    font-size: 15px;
  }

  .sk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sk-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sk-page {
    padding: 44px 12px 56px;
  }

  .sk-card {
    padding: 20px;
    border-radius: 16px;
  }

  .sk-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .sk-heading h1 {
    font-size: 27px;
  }

  .sk-heading p {
    font-size: 14px;
  }

  .sk-field input,
  .sk-field select,
  .sk-field textarea {
    padding: 13px 14px;
    font-size: 14px;
  }

  .sk-textarea-info {
    flex-direction: column;
    align-items: flex-start;
  }

  #charCounter {
    margin-left: 0;
  }
}