:root {
  --primary: #1E1E2F;
  --accent: #E04A4A;
  --text: #FFFFFF;
  --secondary: #2C2C3E;
}

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

body {
  margin: 0;
  font-family:'Segoe UI', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

.background-squares {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-squares .square {
  position: absolute;
  border-radius: 6px;
  box-shadow: 0 0 15px 5px;
  opacity: 0.15;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.background-squares .square1 {
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  box-shadow: 0 0 20px 8px var(--accent);
  top: 10%;
  left: 15%;
  animation: pulseMove1 6s ease-in-out infinite alternate;
}

.background-squares .square2 {
  width: 25px;
  height: 25px;
  background-color: var(--text);
  box-shadow: 0 0 18px 6px var(--text);
  top: 60%;
  left: 15%;
  animation: pulseMove2 8s ease-in-out infinite alternate;
}

.background-squares .square3 {
  width: 30px;
  height: 30px;
  background-color: var(--accent);
  box-shadow: 0 0 22px 7px var(--accent);
  top: 80%;
  left: 70%;
  animation: pulseMove3 7s ease-in-out infinite alternate;
}

.background-squares .square4 {
  width: 35px;
  height: 35px;
  background-color: var(--text);
  box-shadow: 0 0 20px 6px var(--text);
  top: 20%;
  left: 75%;
  animation: pulseMove4 5s ease-in-out infinite alternate;
}

@keyframes pulseMove1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(15px, -10px) scale(1.1); opacity: 0.25; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

@keyframes pulseMove2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(-10px, 10px) scale(1.15); opacity: 0.3; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

@keyframes pulseMove3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(20px, 5px) scale(1.1); opacity: 0.28; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

@keyframes pulseMove4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(-15px, -15px) scale(1.12); opacity: 0.27; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

.survey-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 100vh;
}

.survey-header {
  text-align: center;
  margin-bottom: 3rem;
}

.survey-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.survey-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.question-card {
  background: var(--secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: none;
  animation: fadeIn 0.4s ease;
  
}

.question-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.question-card .subtitle {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.option {
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option:hover {
  border-color: var(--accent);
  background: rgba(224, 74, 74, 0.1);
}

.option.selected {
  border-color: var(--accent);
  background: rgba(224, 74, 74, 0.15);
}

.option label {
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
}

.option-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.option.selected .option-indicator {
  border-color: var(--accent);
  background-color: var(--accent);
}

.option.selected .option-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.option-indicator.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px; /* square = checkbox */
  border: 2px solid #aaa;
}

.option-indicator.checkbox[data-checked="true"] {
  background-color: var(--accent);
  border-color: var(--accent);
}

.option-indicator.checkbox[data-checked="true"]::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.option-other {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.option-other .option-text {
  font-weight: 600;
  min-width: fit-content;
}

.option-other .other-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.option-other .other-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.navigation-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-weight: 600;
  flex: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  background-color: #C84040;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-container {
  display: none;
  text-align: center;
  animation: fadeIn 1s ease;
}

.results-container h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: fadeIn 0.4s ease;
}

.results-container p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    animation: fadeIn 0.4s ease;
}


.results-container.active {
  display: block;
}

.results-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.course-recommendations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4.5rem;
  
}

.course-card {
    margin-top: 1rem;
  background: var(--secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.course-card h3 {
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.course-card p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .survey-header h1 {
    font-size: 2rem;
  }

  .question-card {
    padding: 1.5rem;
  }

  .navigation-buttons {
    flex-direction: column;
  }
}

/* ── Paste these rules into onboarding-styles.css (at the bottom) ─────────── */

/* Results: each recommended course card */
.course-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.course-card-info {
  flex: 1;
  min-width: 0;
}

.course-card-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 0.3rem;
}

.course-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.course-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* "Start this course" button on each card */
.btn-start {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.btn-start:hover {
  background: #c84040;
  transform: translateY(-2px);
}

.btn-start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}