/* ==========================================================================
   SolarCompare.my — Design System
   Aesthetic: Editorial warmth meets financial precision.
   Deep blue trust + solar amber energy. Not a SaaS template.
   ========================================================================== */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color system */
  --primary:        #0f4c75;
  --primary-light:  #1a6da3;
  --primary-dark:   #0a3554;
  --primary-faint:  #e8f1f8;

  --accent:         #f5a623;
  --accent-hover:   #e09520;
  --accent-light:   #fef3e0;

  --cta:            #25d366;
  --cta-hover:      #1ebe5d;

  --bg:             #f7f8fa;
  --bg-white:       #ffffff;
  --bg-dark:        var(--primary-dark);

  --text:           #1a1a1a;
  --text-muted:     #5a6577;
  --text-light:     #8896a6;
  --text-on-dark:   #f0f4f8;
  --text-on-primary:#ffffff;

  --error:          #dc3545;
  --success:        #28a745;
  --border:         #dde3eb;
  --border-light:   #eef1f5;

  /* Typography */
  --font:           'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs:        0.75rem;
  --text-sm:        0.875rem;
  --text-base:      1rem;
  --text-lg:        1.125rem;
  --text-xl:        1.5rem;
  --text-2xl:       2rem;
  --text-3xl:       2.75rem;
  --leading-tight:  1.2;
  --leading-normal: 1.6;

  /* Spacing (4px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15, 76, 117, 0.06);
  --shadow-md:  0 4px 16px rgba(15, 76, 117, 0.08);
  --shadow-lg:  0 8px 32px rgba(15, 76, 117, 0.12);
  --shadow-xl:  0 16px 48px rgba(15, 76, 117, 0.16);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 680px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: var(--text-base); }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--max-width-narrow); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden { /* honeypot fields */
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none; tab-index: -1;
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--primary); color: white;
  border-radius: var(--radius-sm);
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: var(--text-lg); font-weight: 800;
  color: var(--primary); display: flex; align-items: center; gap: var(--sp-2);
}
.nav__logo-icon {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  color: white; font-size: 14px; font-weight: 800;
}
.nav__links {
  display: flex; align-items: center; gap: var(--sp-6);
  list-style: none; font-size: var(--text-sm); font-weight: 500;
}
.nav__links a { color: var(--text-muted); }
.nav__links a:hover { color: var(--primary); }
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__inner { height: 56px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); min-height: 48px; padding: var(--sp-3) var(--sp-6);
  font-weight: 700; font-size: var(--text-base);
  border-radius: var(--radius-md); transition: all var(--duration-normal) var(--ease-out);
  text-align: center; white-space: nowrap;
}
.btn--primary {
  background: var(--accent); color: white;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}
.btn--secondary {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--secondary:hover { background: var(--primary-faint); }
.btn--cta {
  background: var(--cta); color: white;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
.btn--cta:hover {
  background: var(--cta-hover); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}
.btn--lg { min-height: 56px; padding: var(--sp-4) var(--sp-8); font-size: var(--text-lg); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none !important;
}

/* --- Hero / Calculator Section --- */
.hero {
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--text-on-primary);
  padding: var(--sp-16) 0 var(--sp-20);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--sp-12);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero__content { max-width: 480px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full); padding: var(--sp-1) var(--sp-4);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: var(--text-3xl); font-weight: 800;
  line-height: var(--leading-tight); margin-bottom: var(--sp-4);
}
.hero__subtitle {
  font-size: var(--text-lg); color: rgba(255,255,255,0.75);
  line-height: var(--leading-normal); margin-bottom: var(--sp-8);
}

/* Calculator card */
.calc {
  background: var(--bg-white); border-radius: var(--radius-xl);
  padding: var(--sp-8); color: var(--text);
  box-shadow: var(--shadow-xl);
}
.calc__label {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.calc__bill-display {
  font-size: var(--text-2xl); font-weight: 800; color: var(--primary);
  margin-bottom: var(--sp-2);
}
.calc__bill-display span { color: var(--text-muted); font-weight: 500; font-size: var(--text-lg); }

/* Custom range slider */
.calc__slider {
  width: 100%; height: 6px; margin: var(--sp-4) 0 var(--sp-6);
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--accent) var(--slider-fill, 10%), var(--border) var(--slider-fill, 10%));
  border-radius: 3px; outline: none;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 4px solid white;
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
  cursor: grab; transition: box-shadow var(--duration-fast);
}
.calc__slider::-webkit-slider-thumb:active { cursor: grabbing; box-shadow: 0 2px 16px rgba(245,166,35,0.6); }
.calc__slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 4px solid white;
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
  cursor: grab;
}
.calc__range-labels {
  display: flex; justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-light);
  margin-bottom: var(--sp-8);
}

/* Calculator results grid */
.calc__results {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3); margin-bottom: var(--sp-6);
}
.calc__result-item {
  background: var(--bg); border-radius: var(--radius-md);
  padding: var(--sp-4); text-align: center;
}
.calc__result-value {
  font-size: var(--text-xl); font-weight: 800; color: var(--primary);
  transition: all var(--duration-normal) var(--ease-out);
  line-height: 1.2;
}
.calc__result-value--accent { color: var(--accent); }
.calc__result-value--success { color: var(--success); }
.calc__result-label {
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 500;
  margin-top: var(--sp-1);
}
.calc__disclaimer {
  font-size: var(--text-xs); color: var(--text-light);
  text-align: center; margin-bottom: var(--sp-6);
  line-height: 1.5;
}
.calc__cta { width: 100%; }

@media (max-width: 900px) {
  .hero { padding: var(--sp-10) 0 var(--sp-12); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; margin-bottom: var(--sp-2); }
  .hero__title { font-size: var(--text-2xl); }
  .calc { padding: var(--sp-6); }
  .calc__results { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
}
@media (max-width: 480px) {
  .hero { padding: var(--sp-8) 0 var(--sp-10); }
  .hero__title { font-size: 1.75rem; }
  .hero__subtitle { font-size: var(--text-base); }
  .calc { padding: var(--sp-5); border-radius: var(--radius-lg); }
  .calc__bill-display { font-size: var(--text-xl); }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-white); border-bottom: 1px solid var(--border-light);
  padding: var(--sp-5) 0;
}
.trust-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-10); flex-wrap: wrap;
}
.trust-bar__item {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
}
.trust-bar__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
}
.trust-bar__icon--seda { background: var(--primary-faint); color: var(--primary); }
.trust-bar__icon--free { background: var(--accent-light); color: var(--accent); }
.trust-bar__icon--fast { background: #e8f8ee; color: var(--success); }
@media (max-width: 640px) {
  .trust-bar__inner { gap: var(--sp-6); }
  .trust-bar__item { font-size: var(--text-xs); }
}

/* --- How It Works (Timeline) --- */
.how-it-works {
  padding: var(--sp-20) 0;
  background: var(--bg);
}
.section-header {
  text-align: center; margin-bottom: var(--sp-12);
}
.section-header__title {
  font-size: var(--text-2xl); font-weight: 800; color: var(--primary);
  margin-bottom: var(--sp-3);
}
.section-header__subtitle {
  font-size: var(--text-lg); color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
}
.timeline {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; position: relative; max-width: 800px; margin: 0 auto;
}
.timeline__step {
  flex: 1; text-align: center; position: relative;
  padding: 0 var(--sp-4);
}
.timeline__number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 800; font-size: var(--text-lg);
  display: grid; place-items: center;
  margin: 0 auto var(--sp-4);
  position: relative; z-index: 2;
  box-shadow: 0 2px 8px rgba(15,76,117,0.2);
}
.timeline__step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 24px; left: calc(50% + 28px);
  width: calc(100% - 56px); height: 2px;
  background: var(--border); z-index: 1;
}
.timeline__title {
  font-size: var(--text-base); font-weight: 700; color: var(--text);
  margin-bottom: var(--sp-2);
}
.timeline__desc {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .timeline { flex-direction: column; align-items: flex-start; gap: var(--sp-8); padding-left: var(--sp-8); }
  .timeline__step { text-align: left; display: flex; gap: var(--sp-4); align-items: flex-start; padding: 0; }
  .timeline__number { flex-shrink: 0; width: 40px; height: 40px; font-size: var(--text-base); margin: 0; }
  .timeline__step:not(:last-child)::after {
    top: 44px; left: 20px; width: 2px;
    height: calc(100% + var(--sp-8) - 44px);
  }
  .timeline__text { padding-top: var(--sp-2); }
}

/* --- Solar ATAP Callout --- */
.callout {
  padding: var(--sp-16) 0;
  background: var(--bg-white);
}
.callout__card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl); padding: var(--sp-12) var(--sp-10);
  color: white; display: flex; align-items: center; gap: var(--sp-10);
  position: relative; overflow: hidden;
}
.callout__card::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(245,166,35,0.1);
}
.callout__content { flex: 1; position: relative; z-index: 1; }
.callout__tag {
  display: inline-block; background: rgba(245,166,35,0.2);
  color: var(--accent); font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}
.callout__title {
  font-size: var(--text-xl); font-weight: 800;
  margin-bottom: var(--sp-3); line-height: var(--leading-tight);
}
.callout__desc {
  font-size: var(--text-base); color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-6); max-width: 480px;
}
.callout__btn {
  background: white; color: var(--primary); font-weight: 700;
  padding: var(--sp-3) var(--sp-6); border-radius: var(--radius-md);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  transition: all var(--duration-normal) var(--ease-out);
}
.callout__btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--primary); }
@media (max-width: 640px) {
  .callout__card { flex-direction: column; padding: var(--sp-8) var(--sp-6); gap: var(--sp-6); text-align: center; }
  .callout__desc { max-width: 100%; }
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark); color: var(--text-on-dark);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-10); flex-wrap: wrap;
}
.footer__brand { max-width: 280px; }
.footer__brand-name {
  font-size: var(--text-lg); font-weight: 800; color: white;
  margin-bottom: var(--sp-3);
}
.footer__brand-desc {
  font-size: var(--text-sm); color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer__links { list-style: none; }
.footer__links-title {
  font-size: var(--text-sm); font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}
.footer__links li { margin-bottom: var(--sp-2); }
.footer__links a {
  font-size: var(--text-sm); color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}
.footer__links a:hover { color: white; }
.footer__bottom {
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs); color: rgba(255,255,255,0.35);
  text-align: center;
}
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; gap: var(--sp-8); }
}

/* --- WhatsApp Floating Button --- */
.wa-float {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cta); color: white;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 200; transition: all var(--duration-normal) var(--ease-out);
  font-size: 24px;
}
.wa-float:hover {
  transform: scale(1.08); color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.wa-float[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute; right: calc(100% + var(--sp-3)); top: 50%;
  transform: translateY(-50%);
  background: var(--text); color: white;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600;
  white-space: nowrap; opacity: 0;
  transition: opacity var(--duration-fast);
  pointer-events: none;
}
.wa-float:hover[data-tooltip]::before { opacity: 1; }
@media (max-width: 640px) {
  .wa-float { bottom: var(--sp-4); right: var(--sp-4); width: 52px; height: 52px; }
}

/* --- Form Page Styles --- */
.form-page { min-height: 100vh; background: var(--bg); }
.form-container {
  max-width: 560px; margin: 0 auto;
  padding: var(--sp-8) var(--sp-5) var(--sp-20);
}

/* Progress bar */
.progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--sp-10); padding: var(--sp-4) 0;
}
.progress__step {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--text-sm); font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted); background: var(--bg-white);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative; z-index: 2;
}
.progress__step--active {
  border-color: var(--primary); color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(15,76,117,0.2);
}
.progress__step--completed {
  border-color: var(--accent); color: white;
  background: var(--accent);
}
.progress__line {
  width: 48px; height: 2px; background: var(--border);
  transition: background var(--duration-normal);
}
.progress__line--filled { background: var(--accent); }

/* Form steps */
.form-step {
  display: none;
  animation: slideIn var(--duration-normal) var(--ease-out);
}
.form-step--active { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.form-step__title {
  font-size: var(--text-xl); font-weight: 800; color: var(--primary);
  margin-bottom: var(--sp-8); text-align: center;
}

/* Option buttons (property, roof, bill, meter) */
.option-group {
  display: grid; gap: var(--sp-3);
}
.option-group--3col { grid-template-columns: repeat(3, 1fr); }
.option-group--2col { grid-template-columns: repeat(2, 1fr); }
.option-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-5) var(--sp-4);
  background: var(--bg-white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--duration-fast);
  font-weight: 600; color: var(--text);
  min-height: 48px; text-align: center;
}
.option-btn:hover { border-color: var(--primary-light); background: var(--primary-faint); }
.option-btn--selected {
  border-color: var(--primary); background: var(--primary-faint);
  color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.option-btn__icon { font-size: 28px; }

/* Text inputs */
.form-input {
  width: 100%; height: 52px;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-white); color: var(--text);
  transition: border-color var(--duration-fast);
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,117,0.1);
}
.form-input::placeholder { color: var(--text-light); }
.form-input--error { border-color: var(--error); }
.form-label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--text-muted); margin-bottom: var(--sp-2);
}
.form-error {
  font-size: var(--text-xs); color: var(--error); font-weight: 500;
  margin-top: var(--sp-1); display: none;
}
.form-error--visible { display: block; }

/* PDPA checkbox */
.pdpa-wrapper {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4); background: var(--bg);
  border-radius: var(--radius-md); margin-top: var(--sp-6);
}
.pdpa-wrapper input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--primary);
}
.pdpa-wrapper label {
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5;
}
.pdpa-wrapper label a { color: var(--primary-light); text-decoration: underline; }

/* Form navigation */
.form-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-white); border-top: 1px solid var(--border-light);
  padding: var(--sp-4) var(--sp-5);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2); z-index: 50;
}
.form-nav .btn { width: 100%; max-width: 560px; }
.form-nav__back {
  font-size: var(--text-sm); color: var(--text-muted);
  font-weight: 600; cursor: pointer; padding: var(--sp-2);
}
.form-nav__back:hover { color: var(--primary); }

/* Language toggle */
.lang-toggle {
  position: absolute; top: var(--sp-4); right: var(--sp-5);
  display: flex; border: 1px solid var(--border); border-radius: var(--radius-full);
  overflow: hidden; font-size: var(--text-xs); font-weight: 700;
}
.lang-toggle__btn {
  padding: var(--sp-1) var(--sp-3);
  color: var(--text-muted); transition: all var(--duration-fast);
}
.lang-toggle__btn--active {
  background: var(--primary); color: white;
}

/* --- Thank You Page --- */
.thankyou {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: var(--sp-10) var(--sp-5);
  background: var(--bg);
}
.thankyou__card {
  background: var(--bg-white); border-radius: var(--radius-xl);
  padding: var(--sp-10); text-align: center;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.thankyou__check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e8f8ee; color: var(--success);
  display: grid; place-items: center;
  font-size: 32px; margin: 0 auto var(--sp-6);
  animation: checkPop var(--duration-slow) var(--ease-out);
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.thankyou__title {
  font-size: var(--text-xl); font-weight: 800; color: var(--primary);
  margin-bottom: var(--sp-3);
}
.thankyou__subtitle {
  font-size: var(--text-base); color: var(--text-muted);
  margin-bottom: var(--sp-8);
}
.thankyou__estimate {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: var(--sp-6); margin-bottom: var(--sp-8);
  text-align: left;
  animation: fadeIn var(--duration-slow) var(--ease-out) 0.3s both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.thankyou__estimate-title {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
  margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.04em;
}
.thankyou__estimate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-2) 0;
}
.thankyou__estimate-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}
.thankyou__estimate-label { font-size: var(--text-sm); color: var(--text-muted); }
.thankyou__estimate-value { font-weight: 700; color: var(--text); }
.thankyou__promise {
  font-size: var(--text-sm); color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.thankyou__promise strong { color: var(--primary); font-weight: 700; }

/* --- Content Pages (Privacy, Solar ATAP guide) --- */
.content-page {
  padding: var(--sp-16) 0;
}
.content-page h1 {
  font-size: var(--text-2xl); font-weight: 800; color: var(--primary);
  margin-bottom: var(--sp-6);
}
.content-page h2 {
  font-size: var(--text-xl); font-weight: 700; color: var(--text);
  margin-top: var(--sp-10); margin-bottom: var(--sp-4);
}
.content-page h3 {
  font-size: var(--text-lg); font-weight: 600; color: var(--text);
  margin-top: var(--sp-8); margin-bottom: var(--sp-3);
}
.content-page p {
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.content-page ul, .content-page ol {
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: var(--sp-4); padding-left: var(--sp-6);
}
.content-page table {
  width: 100%; border-collapse: collapse; margin: var(--sp-6) 0;
  font-size: var(--text-sm);
}
.content-page th {
  background: var(--primary-faint); color: var(--primary);
  font-weight: 700; text-align: left;
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border);
}
.content-page td {
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border);
  color: var(--text-muted);
}
.content-page .highlight-box {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  padding: var(--sp-5) var(--sp-6); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--sp-6) 0;
}
.content-page .highlight-box p { color: var(--text); margin-bottom: 0; }

/* --- 404 Page --- */
.error-page {
  min-height: 80vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: var(--sp-10);
}
.error-page h1 {
  font-size: 6rem; font-weight: 800; color: var(--primary);
  line-height: 1; margin-bottom: var(--sp-4);
}
.error-page p {
  font-size: var(--text-lg); color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

/* --- Trade Signup Page --- */
.trade-hero {
  background: var(--primary); color: white;
  padding: var(--sp-16) 0; text-align: center;
}
.trade-hero__title {
  font-size: var(--text-2xl); font-weight: 800;
  margin-bottom: var(--sp-4);
}
.trade-hero__subtitle {
  font-size: var(--text-lg); color: rgba(255,255,255,0.7);
  max-width: 520px; margin: 0 auto var(--sp-8);
}
.trade-benefits {
  padding: var(--sp-16) 0;
}
.trade-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--primary-faint); color: var(--primary);
  font-size: var(--text-sm); font-weight: 700;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-full);
}

/* --- Print --- */
@media print {
  .nav, .wa-float, .form-nav, .footer { display: none; }
  body { background: white; }
}
