@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary: #7b2d8b;
  --primary-light: #9b4dca;
  --primary-dark: #5c1f6b;
  --accent: #f4a623;
  --accent-orange: #e8851a;
  --purple-soft: #ede0f5;
  --purple-bg: #f8f0fc;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --text-dark: #2c2c2c;
  --text-medium: #555;
  --text-light: #888;
  --white: #ffffff;
  --success: #4caf50;
  --warning: #ff9800;
  --nav-bg: #7b2d8b;
  --shadow: 0 4px 20px rgba(123, 45, 139, 0.15);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 16px;
}

/* ===== STEPPER ===== */
.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: calc(var(--nav-height, 70px) + 10px) auto 10px;
  position: relative;
  z-index: 2;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  border: 3px solid var(--gray-border);
  color: var(--text-light);
  background: #fff;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step.done {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step.done::after {
  content: "✓";
  font-size: 18px;
}

.step.done span {
  display: none;
}

.step-line {
  width: 80px;
  height: 3px;
  background: var(--gray-border);
}

.step-line.done {
  background: var(--primary);
}

/* ===== PAGE TITLE ===== */
.page-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 18px 0 32px;
  font-family: "Poppins", sans-serif;
}

.page-title.purple {
  color: var(--primary);
}

.lapor-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-family: "Poppins", sans-serif;
}

/* ===== REPORT TYPE CARDS ===== */
.report-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.report-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--gray-border);
  transition: all 0.25s;
}

.report-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.report-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.report-card-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.report-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  display: block;
  margin: 0 auto;
}

.report-card p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: center;
}

.report-card .contoh {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

.report-card .contoh strong {
  font-style: normal;
  font-weight: 700;
  color: var(--text-medium);
}

/* ===== PROCESS SECTION ===== */
.process-section {
  background: var(--purple-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 28px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.process-step {
  text-align: center;
}

.process-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(123, 45, 139, 0.15);
}

.process-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.process-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
}

.process-step p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
}

/* ===== DISCLAIMER CARD ===== */
.disclaimer-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--gray-border);
  margin-bottom: 36px;
}

.disclaimer-icon {
  width: 52px;
  height: 52px;
  background: #fff3e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.disclaimer-content ol {
  padding-left: 18px;
}

.disclaimer-content ol li {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(244, 166, 35, 0.4);
}

.btn-primary:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 166, 35, 0.5);
}

.btn-purple {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(123, 45, 139, 0.35);
}

.btn-purple:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-box h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.modal-box p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ===== RECAPTCHA STYLE ===== */
.captcha-box {
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s;
}

.captcha-box:hover {
  border-color: var(--primary-light);
}

.captcha-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #aaa;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
}

.captcha-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.captcha-label {
  flex: 1;
  margin-left: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.captcha-logo-img {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.captcha-logo span {
  font-size: 9px;
  color: #999;
}

.captcha-info {
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fafafa;
  margin-bottom: 28px;
  text-align: left;
}

.captcha-info svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.captcha-info p {
  font-size: 13px;
  color: var(--text-medium);
  margin: 0;
}

/* ===== FORM STYLES ===== */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--purple-bg);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(155, 77, 202, 0.12);
}

.form-control-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.file-input-box {
  border: 1.5px dashed var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-input-box:hover {
  border-color: var(--primary-light);
}

.file-input-box input[type="file"] {
  display: none;
}

.file-input-box svg {
  color: var(--primary-light);
}

.file-input-box span {
  font-size: 13px;
  color: var(--text-light);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
}

/* ===== SIDEBAR TIPS ===== */
.sidebar-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tips-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--primary);
}

.tips-card ol {
  padding-left: 16px;
}

.tips-card ol li {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2px;
}

.info-tip {
  background: var(--purple-bg);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-tip-icon {
  width: 36px;
  height: 36px;
  background: var(--purple-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-tip-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.info-tip p {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

/* ===== ASESMEN ===== */
.asesmen-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--purple-soft);
}

.asesmen-intro {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.6;
}

.asesmen-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--purple-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  gap: 20px;
  transition: background 0.2s;
}

.asesmen-question:hover {
  background: var(--purple-soft);
}

.asesmen-question-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
}

.asesmen-options {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.radio-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== SUCCESS MODAL ===== */
.success-modal .modal-box {
  padding: 48px 40px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 38px;
  height: 38px;
  color: #fff;
}

.success-modal h2 {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.success-modal p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.kode-laporan {
  background: var(--purple-bg);
  border-radius: 10px;
  padding: 18px 24px;
  margin: 16px auto;
  max-width: 300px;
}

.kode-laporan .kode-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
}

.kode-laporan .kode-hint {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

.copy-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  margin: 16px auto 0;
  display: block;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    gap: 16px;
  }
  .container {
    padding: 0 16px 30px;
  }
  .report-types {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-contacts {
    justify-content: center;
  }
}

/* ===== ALERT / NOTIFICATION ===== */
.alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-danger {
  background: #ffeaea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}

/* ===== HIDDEN ===== */
.hidden {
  display: none;
}
