:root {
  --blue: #0066CC; --blue-dark: #003366; --blue-light: #E6F0FA;
  --orange: #FF6B35; --orange-soft: #FFF4EC;
  --green: #059669; --green-soft: #D1FAE5;
  --red: #DC2626; --red-soft: #FEE2E2;
  --gray-50: #F9FAFB; --gray-100: #F3F4F6; --gray-200: #E5E7EB;
  --gray-300: #D1D5DB; --gray-500: #6B7280; --gray-600: #4B5563;
  --gray-700: #374151; --gray-900: #111827;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #F0F4F8 0%, var(--gray-50) 100%);
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Unlock page */
.unlock-body {
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.unlock-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,102,204,0.12), 0 2px 8px rgba(0,0,0,0.04);
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.unlock-logo { display: block; margin: 0 auto 14px; }
.unlock-card h1 {
  font-size: 22px; font-weight: 800; color: var(--gray-900);
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.unlock-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.unlock-error {
  background: var(--red-soft); color: var(--red);
  border-radius: 6px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 16px; text-align: left;
}
.unlock-card form { text-align: left; }
.unlock-card label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.unlock-card input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-300); border-radius: 8px;
  font-family: inherit; font-size: 16px;
  background: white; color: var(--gray-900);
}
.unlock-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.unlock-card button {
  margin-top: 14px; width: 100%;
  padding: 12px 18px;
  background: var(--blue); color: white;
  border: none; border-radius: 8px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.unlock-card button:hover { background: var(--blue-dark); }
.unlock-help { font-size: 12px; color: var(--gray-500); margin-top: 18px; }
.unlock-help a { color: var(--blue); text-decoration: none; }

/* Main page */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 24px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap; gap: 12px;
}
.page-header .brand .tagline { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.page-header .company {
  text-align: right; font-size: 12px; color: var(--gray-600); line-height: 1.5;
}
.page-header .company strong { color: var(--gray-900); }

.container {
  max-width: 760px; margin: 0 auto; padding: 24px 18px 80px;
}

/* Title block */
.title-block { margin-bottom: 18px; }
.doc-badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.7px;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 10px;
}
.title-block h1 {
  font-size: 28px; font-weight: 800;
  color: var(--gray-900); margin-bottom: 6px;
  letter-spacing: -0.4px; line-height: 1.1;
}
.title-block .meta { font-size: 13px; color: var(--gray-500); }
.title-block .meta strong { color: var(--gray-700); }

/* Reassure */
.reassure {
  background: var(--green-soft); border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin-bottom: 18px;
}
.reassure h2 {
  font-size: 16px; font-weight: 800; color: #065F46; margin-bottom: 8px;
}
.reassure ul { padding-left: 20px; }
.reassure li {
  font-size: 14px; color: #065F46; margin-bottom: 4px; line-height: 1.45;
}

/* Intro */
.intro {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 14px 18px;
  font-size: 14px; color: var(--gray-700);
  margin-bottom: 18px; line-height: 1.55;
}
.intro strong { color: var(--gray-900); }

/* Save indicator (sticky top) */
.save-indicator {
  position: sticky; top: 8px; z-index: 50;
  display: inline-block; align-self: flex-end;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 700;
  border: 1px solid #A7F3D0;
  transition: opacity 0.3s, transform 0.3s;
  margin-bottom: 4px; margin-left: auto;
}
.save-indicator.saving { background: var(--blue-light); color: var(--blue); border-color: #BFDBFE; }
.save-indicator.error { background: var(--red-soft); color: var(--red); border-color: #FCA5A5; }

/* Sections */
.section { margin-bottom: 22px; }
.section > h3 {
  font-size: 13px; font-weight: 800; color: var(--blue);
  margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-light);
  text-transform: uppercase; letter-spacing: 0.6px;
}

/* Question card */
.q {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.q:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.q.answered { border-left: 4px solid var(--green); }
.q-head {
  display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 6px;
}
.q h4 {
  font-size: 15px; font-weight: 700; color: var(--gray-900);
  flex: 1; line-height: 1.3;
}
.q-help {
  font-size: 13px; color: var(--gray-500);
  margin-bottom: 12px; line-height: 1.5;
}

.q-options {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 8px;
}
.q-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.q-option:hover { background: var(--gray-50); border-color: var(--gray-300); }
.q-option input[type="radio"] {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--blue);
}
.q-option input[type="radio"]:checked + span {
  color: var(--gray-900); font-weight: 600;
}
.q-option:has(input:checked) {
  background: var(--blue-light);
  border-color: var(--blue);
}
.q-option span { font-size: 14px; color: var(--gray-700); line-height: 1.4; }

.q-text {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: 6px;
  font-family: inherit; font-size: 14px; line-height: 1.5;
  resize: vertical; min-height: 56px;
  background: white;
  color: var(--gray-900);
}
.q-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.q-text-main { min-height: 80px; }

/* Submit */
.submit-block {
  margin-top: 30px; padding: 24px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
}
.submit-btn {
  padding: 14px 36px;
  background: var(--blue); color: white;
  border: none; border-radius: 8px;
  font-family: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.submit-btn:hover { background: var(--blue-dark); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn.done { background: var(--green); }
.submit-help {
  font-size: 13px; color: var(--gray-500); margin-top: 12px;
}
.submit-status { font-size: 14px; margin-top: 14px; font-weight: 700; }
.submit-status.ok { color: var(--green); }
.submit-status.error { color: var(--red); }

.submitted-banner {
  background: var(--green-soft); border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px; margin-bottom: 18px;
  font-size: 14px; color: #065F46;
}
.submitted-banner strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* Footer */
.page-footer {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  text-align: center; color: var(--gray-500); font-size: 12px;
  line-height: 1.5;
}
.page-footer .name { color: var(--gray-900); font-weight: 800; font-size: 14px; }
.page-footer .tagline-line { color: var(--orange); font-weight: 700; font-size: 13px; margin-top: 4px; }
.page-footer .abn { opacity: 0.7; font-size: 11px; margin-top: 2px; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header .company { text-align: left; }
  .container { padding: 18px 14px 60px; }
  .title-block h1 { font-size: 24px; }
  .reassure, .intro, .q, .submit-block { padding: 14px; }
}
