/* KnightOwl Intake + Results Styles */

:root {
  --navy: #0d1b2a;
  --navy-mid: #1b2d45;
  --gold: #f5a623;
  --gold-light: #ffd166;
  --white: #ffffff;
  --gray-100: #f7f8fa;
  --gray-200: #e8ecf0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --green: #10b981;
  --red: #ef4444;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

/* ── Main layout ── */
main { flex: 1; }

.page-container {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 20px;
}

/* ── Form Card ── */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 16px;
}

.form-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ── Form Sections ── */
.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--navy);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; }

.field-hint {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── Subject Checkboxes ── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.subject-checkbox input { display: none; }

.subject-checkbox .subject-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.subject-checkbox .subject-icon {
  font-size: 28px;
  line-height: 1;
}

.subject-checkbox input:checked + .subject-label {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.subject-checkbox input:checked + .subject-label .subject-icon {
  color: var(--gold);
}

/* ── Buttons ── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.btn-primary:hover { background: var(--navy-mid); }
.btn-primary:active { transform: scale(0.99); }

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover { background: var(--navy-mid); }

.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--navy); }

/* ── Results Card ── */
.results-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.results-header {
  text-align: center;
  margin-bottom: 28px;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  color: #065f46;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.results-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.results-subtitle {
  font-size: 15px;
  color: var(--gray-600);
}

.match-score-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.match-score-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.match-score-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
}

.match-score-desc {
  font-size: 12px;
  opacity: 0.7;
}

/* ── Tutor Card ── */
.tutor-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  margin-bottom: 28px;
}

.tutor-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.tutor-info { flex: 1; }

.tutor-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 6px;
}

.tutor-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tutor-rate {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
}

.tutor-subjects {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
  align-self: center;
}

.tutor-bio {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.match-reasoning {
  font-size: 13px;
  color: var(--navy);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  line-height: 1.5;
}

/* ── Next Steps ── */
.next-steps h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.5;
}

.steps-list strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
}

.steps-list p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.results-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Error Card ── */
.error-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.error-message {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  padding: 24px 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; }
  .form-card, .results-card, .error-card { padding: 24px; }
  .tutor-card { flex-direction: column; }
  .match-score-banner { flex-wrap: wrap; }
}