:root {
  --primary: #4176ff;
  --bg-light: #f8f9fd;
  --border: #e5e7eb;
  --text-main: #374151;
  --text-muted: #6b7280;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f3f4f6;
  color: var(--text-main);
  line-height: 1.6;
}

.logo {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  gap: 10px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.btn-login {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Page Title */
.page-title {
  text-align: center;
  margin: 40px 0;
  font-size: 32px;
  color: var(--text-muted);
}

/* Card */
.kuesioner-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.section-container {
  margin-bottom: 40px;
}

.section-header {
  font-size: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* Grid Identitas */
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
  font-size: 14px;
  transition: var(--transition-smooth);
}

input:focus {
  outline: none;
  border-color: var(--text-muted);
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(1, 61, 32, 0.1);
  transform: translateY(-2px);
}

input:hover{
  border-color: var(--text-main);
}

.select2-container {
  width: 100% !important;
}

.select2-selection {
  height: 45px !important;
  display: flex !important;
  align-items: center;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
}

input:disabled {
  background: #e5e7eb;
  cursor: not-allowed;
}

/* Questions */
.question {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.question-text {
  font-weight: 600;
  margin-bottom: 15px;
}

.required {
  color: red;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.input-inline {
  width: 100%;
  margin-top: 5px;
}

/* Matrix Table */
.table-responsive {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.matrix-table th {
  padding: 10px;
  background: white;
}

.matrix-table td {
  padding: 12px 5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.matrix-table .row-label {
  text-align: center;
  width: 200px;
  padding-right: 20px;
}

.matrix-table .spacer {
  width: 40px;
}

/* Methods Grid */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.method-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-col strong {
  margin-bottom: 5px;
}

.method-col label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 60px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .grid-form,
  .methods-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* Styling tambahan untuk komponen UX baru seperti Progress Bar dan Feedback Visual */

/* Progress Bar */
.progress-container {
  position: sticky;
  top: 75px;
  background: white;
  padding: 15px 0;
  margin-bottom: 30px;
  z-index: 90;
  border-bottom: 1px solid var(--border);
}

.progress-info {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

/* Question Interaction */
.question:hover {
  background: #f9fafb;
}

.question.answered {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
  transition: var(--transition-smooth);
}

/* Matrix Table Enhancements */
.matrix-table tr:hover td {
  background-color: #f3f4f6;
}

.matrix-table input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Loading Animation */
.btn-submit.loading {
  cursor: wait;
  opacity: 0.7;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.loading {
  animation: pulse 1.5s infinite;
}
