/* Mendix Brand Tokens */
:root {
  --mx-blue: #146FF4;
  --mx-dark: #0A1324;
  --mx-dark2: #2F3646;
  --mx-light: #E7E7E9;
  --mx-orange: #FF5000;
  --mx-teal: #00C1BE;
  --mx-lime: #C1D900;
  --mx-white: #FFFFFF;
  --mx-purple: #6C00CA;
  --mx-yellow: #FFC300;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(10,19,36,0.10);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--mx-dark);
  color: var(--mx-white);
  min-height: 100vh;
  line-height: 1.5;
}

/* Top bar */
.topbar {
  background: var(--mx-dark2);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--mx-blue);
}
.topbar .logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--mx-white);
  letter-spacing: 0.5px;
}
.topbar .sep { color: var(--mx-blue); }
.topbar .title {
  font-size: 14px;
  color: var(--mx-light);
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Landing page */
.hero {
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero h1 .accent { color: var(--mx-orange); }
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--mx-light);
  margin-bottom: 40px;
}
.role-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.role-card {
  background: var(--mx-dark2);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 280px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.role-card:hover {
  border-color: var(--mx-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.role-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--mx-teal);
}
.role-card p {
  font-size: 0.9rem;
  color: var(--mx-light);
}

/* Form elements */
.form-section {
  background: var(--mx-dark2);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.form-section h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--mx-teal);
}
.form-section .section-desc {
  font-size: 0.85rem;
  color: var(--mx-light);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 20px;
}
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .hint {
  font-size: 0.8rem;
  color: var(--mx-light);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid #444;
  background: var(--mx-dark);
  color: var(--mx-white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--mx-blue);
}
.field textarea { resize: vertical; min-height: 80px; }

/* Radio / Checkbox groups */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.option-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.9rem;
  background: var(--mx-dark);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid #444;
  transition: all 0.2s;
}
.option-group label:hover { border-color: var(--mx-blue); }
.option-group input:checked + span {
  color: var(--mx-teal);
  font-weight: 600;
}

/* Rating matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.85rem;
}
.matrix-table th {
  padding: 10px 6px;
  text-align: center;
  font-weight: 600;
  color: var(--mx-teal);
  border-bottom: 2px solid var(--mx-blue);
  font-size: 0.78rem;
}
.matrix-table th:first-child {
  text-align: left;
  width: 40%;
}
.matrix-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #333;
  text-align: center;
  vertical-align: top;
}
.matrix-table td:first-child {
  text-align: left;
  font-size: 0.88rem;
}
.matrix-table tr.dimension-header td {
  background: rgba(20, 111, 244, 0.12);
  font-weight: 700;
  color: var(--mx-teal);
  padding: 12px 6px;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--mx-blue);
}
.matrix-table input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--mx-teal);
}
.matrix-table .why-input {
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #444;
  background: var(--mx-dark);
  color: var(--mx-white);
  font-size: 0.8rem;
  font-family: inherit;
  margin-top: 4px;
}
.matrix-table .why-input:focus {
  outline: none;
  border-color: var(--mx-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--mx-blue);
  color: var(--mx-white);
}
.btn-primary:hover { background: #1060D8; }
.btn-primary:disabled {
  background: #444;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--mx-light);
  border: 1px solid #555;
}
.btn-secondary:hover { border-color: var(--mx-blue); color: var(--mx-white); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

/* Progress */
.progress-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #333;
  transition: background 0.3s;
}
.progress-step.active { background: var(--mx-blue); }
.progress-step.done { background: var(--mx-teal); }

/* Thank you */
.thankyou {
  text-align: center;
  padding: 80px 20px;
}
.thankyou h1 { color: var(--mx-teal); margin-bottom: 16px; }
.thankyou p { color: var(--mx-light); font-size: 1.1rem; }
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--mx-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
}

/* Admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.response-card {
  background: var(--mx-dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--mx-blue);
}
.response-card .meta {
  font-size: 0.8rem;
  color: var(--mx-light);
  margin-bottom: 12px;
}
.response-card .data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.response-card .data-item {
  font-size: 0.85rem;
}
.response-card .data-item .label {
  color: var(--mx-light);
  font-size: 0.75rem;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-partner { background: var(--mx-blue); }
.badge-customer { background: var(--mx-orange); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--mx-dark2);
  border: 1px solid var(--mx-teal);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .role-cards { flex-direction: column; align-items: center; }
  .matrix-table { font-size: 0.75rem; }
  .matrix-table th, .matrix-table td { padding: 6px 3px; }
  .form-actions { flex-direction: column; gap: 12px; }
  .response-card .data-grid { grid-template-columns: 1fr; }
}
