/* ═══════════════════════════════════════════════
   Creative & Cultural Skills Survey — Southwark
   Fonts:  Space Grotesk (display) · DM Sans (body)
   Scheme: Pure black · white · warm gold
═══════════════════════════════════════════════ */

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* backgrounds */
  --bg:        #000000;
  --bg-card:   #111111;
  --bg-card2:  #181818;
  --bg-input:  #0d0d0d;

  /* borders */
  --border:    rgba(255,255,255,0.1);
  --border-hi: rgba(240,192,64,0.4);

  /* gold */
  --gold:      #f0c040;
  --gold2:     #d4a820;
  --gold-glow: rgba(240,192,64,0.2);
  --gold-soft: rgba(240,192,64,0.1);
  --gold-dim:  rgba(240,192,64,0.06);

  /* text — white and warm yellows only, NO grey for readable copy */
  --text:      #ffffff;
  --text-sub:  #f0e8d0;
  --text-hint: #c8b878;
  --text-dim:  #806840;

  --red:       #ff5555;
  --r:         10px;
  --r-lg:      16px;
  --r-xl:      22px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen        { display: none; min-height: 100vh; position: relative; z-index: 2; }
.screen.active { display: flex; }
#survey        { display: none; }

/* ════════════════════════════════
   LANDING
════════════════════════════════ */
#landing {
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 3rem;
  min-height: 100vh;
}

.landing-inner {
  max-width: 1100px;
  text-align: center;
  animation: revealUp 0.9s var(--ease-out) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-hi);
  color: var(--gold);
  background: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2.4s ease infinite;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.headline .line   { display: block; }
.headline .accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}

.subhead {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-sub);
  max-width: 1200px;
  margin: 0 auto 1rem;
}

.meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.meta-item {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-hint);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.38rem 1rem;
}
.meta-sep { color: var(--text-dim); }

.btn-start {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 100px;
  padding: 1.1rem 2.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-start:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px var(--gold-glow);
}
.arrow { transition: transform 0.22s var(--ease); display: inline-block; }
.btn-start:hover .arrow { transform: translateX(5px); }

/* ════════════════════════════════
   HEADER — logos left & right
════════════════════════════════ */
.survey-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2.5rem;
  min-height: 72px;
  gap: 2rem;
}

.logo-left  { display: flex; align-items: center; flex-shrink: 0; }
.logo-right { display: flex; align-items: center; flex-shrink: 0; }

.header-logo {
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.header-logo--rinova    { height: 56px; max-width: 200px; }
.header-logo--southwark { height: 60px; max-width: 220px; }

.progress-wrap {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
}
.progress-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-hint);
  margin-bottom: 0.4rem;
}
.progress-label span { color: var(--text); font-weight: 500; }

.progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: visible;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 100px;
  width: 0%;
  transition: width 0.55s var(--ease);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

/* ════════════════════════════════
   SURVEY MAIN
════════════════════════════════ */
.survey-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 7rem;
}

/* ════════════════════════════════
   SECTION HEADER
════════════════════════════════ */
.survey-section.hidden { display: none; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.15;
  flex-shrink: 0;
  letter-spacing: -0.05em;
  user-select: none;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ════════════════════════════════
   QUESTION BLOCKS
════════════════════════════════ */
.q-block {
  margin-bottom: 3rem;
  animation: revealUp 0.45s var(--ease-out) both;
}

.q-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.q-hint {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-hint);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.accessible-def {
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.req   { color: var(--gold); }
.mt-s  { margin-top: 0.85rem; }

.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-hint);
  margin-bottom: 0.45rem;
}

/* ════════════════════════════════
   RADIO PILLS
════════════════════════════════ */
.radio-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.radio-pill { cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-sub);
  padding: 0.7rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
  user-select: none;
}
.radio-pill:hover span {
  border-color: var(--border-hi);
  color: var(--text);
  transform: translateY(-1px);
}
.radio-pill input:checked + span {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 500;
}

/* ════════════════════════════════
   CHECKBOX CARDS
════════════════════════════════ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
}

.check-card { cursor: pointer; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.35;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  user-select: none;
}
.check-card span::before {
  content: '';
  flex-shrink: 0;
  width: 17px; height: 17px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  transition: border-color 0.18s, background 0.18s;
}
.check-card:hover span {
  border-color: var(--border-hi);
  color: var(--text);
  transform: translateY(-1px);
}
.check-card input:checked + span {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}
.check-card input:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.check-card.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ════════════════════════════════
   LIKERT DOTS
════════════════════════════════ */
.likert-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.likert-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-hint);
  min-width: 100px;
}
.likert-label.right { text-align: right; }
.likert-dots { display: flex; gap: 0.7rem; }

.likert-dot { cursor: pointer; }
.likert-dot input { position: absolute; opacity: 0; pointer-events: none; }
.likert-dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-hint);
  background: var(--bg-card);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  user-select: none;
}
.likert-dot:hover span {
  border-color: var(--border-hi);
  color: var(--gold);
  transform: scale(1.08);
}
.likert-dot input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
  transform: scale(1.14);
  box-shadow: 0 0 20px var(--gold-glow);
}
.likert-desc {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-hint);
  margin-top: 0.4rem;
  padding: 0 0.2rem;
}

/* ════════════════════════════════
   TEXT INPUTS
════════════════════════════════ */
.text-input,
.text-area {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.95rem 1.2rem;
  line-height: 1.55;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  -webkit-appearance: none;
}
.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.text-input::placeholder,
.text-area::placeholder { color: var(--text-dim); }

/* ════════════════════════════════
   CONTACT BLOCK
════════════════════════════════ */
.contact-block {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.contact-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.contact-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-sub);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.contact-sub strong { color: var(--text-hint); font-weight: 500; }
.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-fields .field-group:last-child { grid-column: 1 / -1; }
.double-field { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ════════════════════════════════
   CONDITIONAL BLOCKS
════════════════════════════════ */
.cond-block {
  background: var(--bg-card2);
  border-radius: var(--r);
  padding: 1.2rem;
  border-left: 2px solid var(--gold);
  animation: revealDown 0.22s var(--ease-out);
}
.cond-input { animation: revealDown 0.22s var(--ease-out); }

/* ════════════════════════════════
   NAV BUTTONS
════════════════════════════════ */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.8rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.btn-next,
.btn-submit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 100px;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--gold-glow);
}
.btn-submit { background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.btn-back {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-hint);
  border-radius: 100px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-back:hover {
  border-color: var(--border-hi);
  color: var(--gold);
  transform: translateX(-2px);
}

/* ════════════════════════════════
   VALIDATION
════════════════════════════════ */
.q-block.error .text-input,
.q-block.error .text-area { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255,85,85,0.12); }
.error-msg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 0.55rem;
  animation: shake 0.28s var(--ease);
}
.error-msg::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--red);
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ════════════════════════════════
   THANK YOU
════════════════════════════════ */
#thankyou {
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ty-inner {
  max-width: 540px;
  text-align: center;
  animation: revealUp 0.8s var(--ease-out) both;
}
.ty-mark {
  display: block;
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: spinSlow 12s linear infinite;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.ty-inner h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.ty-inner p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 0.8rem;
}
.ty-sub { font-size: 0.9rem !important; }
.ty-id {
  margin-top: 1.8rem;
  display: inline-block;
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.5rem 1rem;
}
.ty-new {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  padding: 0.8rem 1.8rem;
  background: var(--gold-dim);
  transition: background 0.2s, transform 0.2s;
}
.ty-new:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ════════════════════════════════
   KEYFRAMES
════════════════════════════════ */
@keyframes revealUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes revealDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes spinSlow   { to{transform:rotate(360deg)} }
@keyframes shake      { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 680px) {
  .survey-header { padding: 0.75rem 1.2rem; min-height: unset; gap: 1rem; }
  .header-logo--rinova    { height: 28px; max-width: 110px; }
  .header-logo--southwark { height: 34px; max-width: 130px; }
  .section-header h2 { font-size: 1.6rem; }
  .q-label { font-size: 1rem; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .contact-fields, .double-field { grid-template-columns: 1fr; }
  .contact-fields .field-group:last-child { grid-column: 1; }
  .likert-row { flex-direction: column; align-items: flex-start; }
  .likert-label.right { text-align: left; }
  .likert-dot span { width: 44px; height: 44px; }
  .headline { font-size: clamp(2rem, 12vw, 3rem); }
  .survey-main { padding: 7rem 1.2rem 5rem; }
  .nav-row { flex-direction: column-reverse; align-items: stretch; }
  .btn-next, .btn-submit, .btn-back { justify-content: center; }
}
@media (max-width: 400px) {
  .check-grid { grid-template-columns: 1fr; }
}
