/* =========================================
   Conscious Calm Presence Quiz Styles
   GUARANTEES: only .question.active is visible
========================================= */

:root {
  --bg-sand: #E8DCC8;
  --card-white: #FFFFFF;
  --btn-primary: #B8936D;
  --btn-secondary: #A8BFA0;
  --text-dark: #2C2416;
  --text-medium: #5C5444;
  --text-light: #8C8070;
  --shadow: rgba(44, 36, 22, 0.08);
  --shadow-hover: rgba(44, 36, 22, 0.15);
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container { max-width: 720px; margin: 0 auto; }

/* Generic card style */
.question {
  display: none;               /* CRITICAL: hide all by default */
  background: var(--card-white);
  padding: 44px 36px;
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--shadow);
  animation: fadeIn 0.25s ease;
}

.question.active { display: block; }  /* CRITICAL: show only active */

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

h1 {
  font-size: 2rem;
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.25;
}

h2 {
  font-size: 1.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
}

/* Buttons (answers) */
.question button[data-value]{
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  margin: 0 0 12px 0;
  background: rgba(168, 191, 160, 0.10);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.06);
}

.question button[data-value]:hover{
  background: rgba(168, 191, 160, 0.16);
  transform: translateX(2px);
}

.question button.selected{
  border-color: rgba(184, 147, 109, 0.75);
  background: rgba(184, 147, 109, 0.12);
  color: var(--text-dark);
  font-weight: 600;
}

/* Back button */
.back-btn{
  margin-top: 8px;
  background: white;
  color: var(--text-medium);
  border: 2px solid rgba(184, 147, 109, 0.30);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px var(--shadow);
}

.back-btn:hover{
  background: rgba(168, 191, 160, 0.10);
  border-color: var(--btn-secondary);
  color: var(--text-dark);
}

/* Inputs (lead capture) */
.input-group { margin-bottom: 18px; }

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(184, 147, 109, 0.22);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 4px rgba(184, 147, 109, 0.12);
}

/* Primary/secondary action buttons */
.button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary { background: var(--btn-primary); color: #fff; }
.btn-primary:hover { background: #A67D5C; transform: translateY(-1px); box-shadow: 0 6px 20px var(--shadow-hover); }

.btn-secondary {
  background: #fff;
  color: var(--text-medium);
  border: 2px solid rgba(184, 147, 109, 0.30);
}
.btn-secondary:hover { background: rgba(168,191,160,0.10); border-color: var(--btn-secondary); color: var(--text-dark); }

.helper {
  margin-top: 12px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .question { padding: 30px 22px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.05rem; }
}
