:root {
  --brand: #0b6cf2;
  --brand-dark: #084fb1;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --success: #047857;
  --error: #b91c1c;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 32px;
}
.header-row {
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}
.brand-tag {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 480px) {
  .brand-logo { height: 42px; }
  .brand-name { font-size: 18px; }
  .brand-tag  { font-size: 12px; }
}

.site-footer {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.section-title {
  font-size: 20px;
  margin: 0 0 20px;
}

/* Course list */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.course-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.course-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.course-card h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 18px;
}
.course-card .cta {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--brand);
}

.course-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
}
.course-meta li {
  padding: 4px 0;
}

/* Step bar */
.step-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.step-indicator {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-indicator span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-weight: 600;
  font-size: 12px;
}
.step-indicator.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.step-indicator.active span {
  background: #fff;
  color: var(--brand);
}
.step-indicator.done span {
  background: var(--success);
  color: #fff;
}

/* Form step container */
.form-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-step h2 {
  margin: 0 0 16px;
  color: var(--brand);
}
.form-step h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

/* Prerequisites */
.prereq-list {
  margin: 0 0 16px;
  padding-left: 20px;
}
.prereq-list li { padding: 3px 0; }

/* Fields */
.field {
  display: block;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.field em { color: var(--error); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Checkbox */
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  margin: 12px 0;
  cursor: pointer;
}
.checkbox-row input { margin-top: 3px; }
.checkbox-row.small {
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Honeypot — invisible to real users */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: #f3f4f6; }
.btn-link {
  background: transparent;
  color: var(--brand);
  border: none;
  padding: 11px 8px;
  margin-left: auto;
}
.btn-link:hover:not(:disabled) { text-decoration: underline; }

/* Success */
.success-box {
  text-align: center;
  padding: 24px 8px;
}
.success-box h2 { color: var(--success); }

/* Inline message */
.msg {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 10px 0;
}
.msg.error { background: #fee2e2; color: var(--error); }
.msg.info  { background: #dbeafe; color: var(--brand-dark); }

@media (max-width: 600px) {
  .form-step { padding: 20px; }
  .step-indicator { flex-basis: calc(50% - 4px); }
  .btn-link { margin-left: 0; }
}
