/* ===== DESIGN TOKENS ===== */
:root {
  --green-primary: #2D6A4F;
  --green-dark: #1B4332;
  --green-light: #52B788;
  --gold: #F5C518;
  --gold-hover: #E0B010;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E8F0EC;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --radius: 12px;
  --font: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* HEADER */
.site-header { background: var(--surface); border-bottom: 3px solid var(--green-primary); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-right-logos { display: flex; align-items: center; gap: 10px; }
.logo { object-fit: contain; }
.logo-pws    { height: 52px; }
.logo-thrive { height: 44px; }
.logo-pgcag  { height: 44px; }
.logo-innovate { height: 28px; }

/* LANGUAGE TOGGLE */
.language-toggle { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 24px; padding: 4px 10px; border: 1px solid var(--border); }
.lang-btn { background: transparent; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 4px 8px; border-radius: 16px; transition: all 0.2s; letter-spacing: 0.5px; }
.lang-btn:hover { color: var(--green-primary); background: var(--border); }
.lang-btn.active { background: var(--gold); color: var(--text); }
.lang-divider { color: var(--border); font-size: 14px; user-select: none; }

/* PROGRESS BAR */
.progress-wrapper { background: var(--surface); padding: 10px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.progress-track { flex: 1; height: 8px; background: var(--border); border-radius: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gold); border-radius: 8px; transition: width 0.4s ease; width: 0%; }
.progress-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* MAIN */
.survey-main { flex: 1; max-width: 760px; width: 100%; margin: 32px auto; padding: 0 20px; }
#survey-container { margin-bottom: 24px; }

/* SECTION HEADER */
.section-badge { display: inline-block; background: var(--green-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.section-title { font-size: 22px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; line-height: 1.3; }
.section-subtitle { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 24px; }

/* QUESTION CARDS */
.question-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow); transition: border-color 0.2s; }
.question-card:focus-within { border-color: var(--green-light); }
.question-text { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 14px; line-height: 1.5; }
.question-num { font-weight: 700; color: var(--green-primary); margin-right: 6px; }

/* LIKERT SCALE */
.likert-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.likert-option { flex: 1; min-width: 52px; }
.likert-option input[type="radio"] { display: none; }
.likert-option label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; min-height: 80px; }
.likert-option label:hover { border-color: var(--green-light); background: #F0FBF5; }
.likert-option input[type="radio"]:checked + label { border-color: var(--gold); background: #FFF8DC; }
.likert-num { font-size: 16px; font-weight: 700; color: var(--green-primary); }
.likert-label { font-size: 9px; font-weight: 500; color: var(--text-muted); line-height: 1.3; word-break: break-word; }

/* FORM FIELDS */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-label .required { color: #E03E3E; margin-left: 2px; }
.form-select, .form-input, .form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 15px; color: var(--text); background: var(--surface); transition: border-color 0.2s; appearance: none; }
.form-select:focus, .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--green-primary); }
.form-select-wrapper { position: relative; }
.form-select-wrapper::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.form-textarea { resize: vertical; min-height: 100px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CONSENT */
.consent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.consent-text { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.radio-option:hover { border-color: var(--green-light); background: #F0FBF5; }
.radio-option:has(input:checked) { border-color: var(--gold); background: #FFF8DC; }
.instructions-card { background: #F0FBF5; border: 1px solid var(--green-light); border-radius: var(--radius); padding: 18px 20px; margin-top: 16px; }
.instructions-text { font-size: 13px; line-height: 1.6; color: var(--green-dark); white-space: pre-line; }

/* SUBMIT CARD */
.submit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.submit-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; white-space: pre-line; }
.email-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* RESULT PAGES */
.result-page { text-align: center; padding: 48px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-icon { font-size: 56px; margin-bottom: 16px; }
.result-title { font-size: 26px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.result-message { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.result-note { font-size: 13px; color: var(--green-primary); margin-top: 16px; font-weight: 500; }

/* NAV BUTTONS */
.survey-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-bottom: 48px; }
.btn { padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 0.2s; min-width: 120px; }
.btn-primary, .btn-submit { background: var(--gold); color: var(--text); box-shadow: 0 2px 8px rgba(245,197,24,0.3); }
.btn-primary:hover, .btn-submit:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--green-primary); border: 2px solid var(--green-primary); }
.btn-secondary:hover { background: var(--green-primary); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* LOADING */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; z-index: 999; flex-direction: column; gap: 16px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--green-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-muted); }
.error-banner { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #B91C1C; display: none; }

/* FOOTER */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 14px 24px; margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-powered { font-size: 12px; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .logo-pws { height: 38px; } .logo-thrive { height: 32px; } .logo-pgcag { height: 32px; }
  .survey-main { margin: 20px auto; padding: 0 14px; }
  .section-title { font-size: 18px; }
  .likert-scale { gap: 5px; }
  .likert-option label { padding: 8px 3px; min-height: 80px; }
  .likert-label { font-size: 8px; }
  .btn { padding: 11px 18px; font-size: 14px; min-width: 90px; }
  .two-col-grid { grid-template-columns: 1fr; }
}
