:root {
  --ink: #101417;
  --muted: #52616b;
  --paper: #f5f8f6;
  --panel: #ffffff;
  --forest: #103d34;
  --forest-deep: #092d27;
  --leaf: #078846;
  --sun: #f7b733;
  --blue: #1769aa;
  --line: rgba(16, 20, 23, 0.14);
  --shadow: 14px 16px 0 rgba(16, 61, 52, 0.11), 0 22px 55px rgba(16, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(16, 20, 23, 0.08);
  background: rgba(248, 250, 248, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(16, 20, 23, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  width: 118px;
  height: 54px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(16, 20, 23, 0.1);
}

.header-badge {
  width: 164px;
  height: 44px;
  object-fit: contain;
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(16, 20, 23, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 34px);
  color: #20302f;
  font-family: Montserrat, sans-serif;
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 13px 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sun), #39b862);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--forest);
  transform: translateY(-1px);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.quote-pill {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: var(--forest);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(16, 61, 52, 0.2);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quote-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 61, 52, 0.26);
}

.mobile-quote {
  display: none;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  display: none;
  place-items: center;
  border: 1px solid rgba(16, 61, 52, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--forest);
  box-shadow: 0 9px 22px rgba(16, 20, 23, 0.1);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(247, 183, 51, 0.5);
  outline-offset: 2px;
}

.menu-icon {
  width: 23px;
  height: 18px;
  display: grid;
  align-content: space-between;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.intro {
  position: relative;
  min-height: 248px;
  padding: clamp(36px, 5vw, 58px) clamp(20px, 7vw, 110px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--forest-deep);
  isolation: isolate;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background: url("solar-energy-flow-house.png") center / contain no-repeat;
  opacity: 0.2;
}

.intro-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-family: Montserrat, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
legend {
  margin-top: 0;
  font-family: Montserrat, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 13px;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 1.06;
}

.intro p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.content {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(44px, 7vw, 86px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading h2 {
  margin-bottom: 8px;
  color: var(--forest-deep);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
}

.wizard-progress {
  margin: 30px 0 34px;
}

.wizard-progress-track {
  height: 6px;
  margin-bottom: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2ebe6;
}

.wizard-progress-track span {
  width: 25%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sun), var(--leaf));
  transition: width 260ms ease;
}

.wizard-progress ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.wizard-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #728079;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
}

.wizard-progress li span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bdcbc4;
  border-radius: 50%;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.wizard-progress li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-progress li.is-active,
.wizard-progress li.is-complete {
  color: var(--forest-deep);
}

.wizard-progress li.is-active span {
  border-color: var(--sun);
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(247, 183, 51, 0.18);
}

.wizard-progress li.is-complete span {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #ffffff;
}

.wizard-panel[hidden] {
  display: none;
}

.wizard-panel.is-active {
  animation: wizard-in 220ms ease both;
}

@keyframes wizard-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

fieldset:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.section-title {
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--forest-deep);
  font-size: 1.08rem;
  font-weight: 900;
}

.step {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  color: var(--forest-deep);
  background: var(--sun);
  border-radius: 50%;
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #27333a;
  font-size: 0.96rem;
  font-weight: 800;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #b8c4be;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.16);
}

.helper {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-title {
  color: #27333a;
  font-size: 0.96rem;
  font-weight: 800;
}

.choice-list {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-option {
  min-height: 50px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 10px;
  border: 1px solid #c8d4ce;
  border-radius: 6px;
  background: #f8faf9;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-option:hover,
.choice-option:has(input:checked) {
  border-color: var(--leaf);
  background: #edf8f1;
  box-shadow: 4px 5px 12px rgba(8, 127, 67, 0.1);
}

.choice-option input,
.consent-option input {
  width: 19px;
  height: 19px;
  min-height: 0;
  flex: 0 0 19px;
  margin: 0;
  padding: 0;
  accent-color: var(--leaf);
}

.consent-option {
  min-height: 54px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  grid-template-columns: none;
  gap: 11px;
  border: 1px solid #c8d4ce;
  border-radius: 6px;
  background: #f8faf9;
  font-size: 0.9rem;
}

.consent-option input {
  margin-top: 2px;
}

.wizard-actions {
  min-height: 58px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.wizard-position {
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.wizard-button {
  min-height: 52px;
  padding: 12px 21px;
  border: 1px solid rgba(16, 61, 52, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
}

.wizard-back {
  color: var(--forest-deep);
  background: #ffffff;
}

.wizard-next {
  color: #ffffff;
  background: var(--forest);
  box-shadow: 5px 6px 0 rgba(9, 45, 39, 0.13);
}

.wizard-button:hover {
  transform: translateY(-1px);
}

.wizard-actions .submit-button {
  width: auto;
  min-width: 220px;
  margin-left: auto;
}

.wizard-actions [hidden] {
  display: none;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  color: #ffffff;
  background: var(--leaf);
  border: 0;
  border-radius: 6px;
  box-shadow: 7px 8px 0 rgba(9, 45, 39, 0.16);
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.submit-button:hover {
  background: #066d38;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.6em;
  margin: 15px 0 0;
  text-align: center;
  font-weight: 800;
}

.form-status.is-success {
  color: #08783e;
}

.form-status.is-error {
  color: #b42318;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.support {
  padding-top: 8px;
}

.support h2 {
  margin-bottom: 12px;
  color: var(--forest-deep);
  font-size: 1.55rem;
}

.support > p {
  margin-top: 0;
  color: var(--muted);
}

.support-list {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.support-list li {
  padding: 17px 0 17px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.support-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--sun);
  border-radius: 50%;
}

.contact-block {
  padding-left: 20px;
  border-left: 4px solid var(--sun);
}

.contact-block strong,
.contact-block a {
  display: block;
}

.contact-block a {
  margin-top: 6px;
  color: var(--forest-deep);
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.accreditation {
  width: min(220px, 75%);
  margin-top: 34px;
  display: block;
}

footer {
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--forest-deep);
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  font-weight: 800;
}

.thank-you-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(9, 45, 39, 0.82), rgba(9, 45, 39, 0.9)),
    url("solar-energy-flow-house.png") center / cover fixed;
}

.thank-you-main {
  width: 100%;
  flex: 1;
  padding: clamp(48px, 8vw, 96px) 20px;
  display: grid;
  place-items: center;
}

.thank-you-panel {
  width: min(720px, 100%);
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 18px 22px 62px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.success-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(8, 136, 70, 0.28);
}

.success-mark svg {
  width: 40px;
  height: 40px;
}

.thank-you-panel h1 {
  margin-inline: auto;
  color: var(--forest-deep);
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.thank-you-message {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.next-step {
  margin: 30px 0;
  padding: 20px;
  display: grid;
  gap: 6px;
  border-left: 5px solid var(--sun);
  border-radius: 6px;
  background: #f4f8f5;
  text-align: left;
}

.next-step span {
  color: var(--leaf);
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-step strong {
  color: var(--forest-deep);
  line-height: 1.55;
}

.thank-you-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thank-you-actions a {
  min-height: 54px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  text-decoration: none;
}

.thank-you-home {
  border: 1px solid rgba(16, 61, 52, 0.22);
  color: var(--forest-deep);
  background: #ffffff;
}

.thank-you-whatsapp {
  color: #ffffff;
  background: #087f43;
  box-shadow: 6px 7px 0 rgba(9, 45, 39, 0.14);
}

.thank-you-contact {
  margin: 24px 0 0;
  color: var(--muted);
}

.thank-you-contact a {
  color: var(--forest-deep);
  font-weight: 900;
}

.feedback-intro::after {
  opacity: 0.16;
}

.rating-question {
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.rating-scale label {
  display: block;
  cursor: pointer;
}

.rating-scale input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
}

.rating-scale label > span {
  min-height: 72px;
  padding: 10px 5px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid #c8d4ce;
  border-radius: 6px;
  background: #f8faf9;
  color: var(--forest-deep);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rating-scale label > span::before {
  content: "★";
  color: var(--sun);
  font-size: 1.1rem;
  line-height: 1;
}

.rating-scale strong {
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
}

.rating-scale small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.rating-scale label:hover > span,
.rating-scale input:focus-visible + span,
.rating-scale label:has(input:checked) > span {
  transform: translateY(-2px);
  border-color: var(--leaf);
  background: #edf8f1;
  box-shadow: 5px 7px 16px rgba(8, 127, 67, 0.14);
}

.rating-scale input:focus-visible + span {
  outline: 3px solid rgba(247, 183, 51, 0.42);
  outline-offset: 2px;
}

.feedback-ratings {
  padding-top: 6px;
}

@media (max-width: 1120px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav {
    order: 4;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    gap: 24px;
    padding: 0 8px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding-block: 12px 11px;
  }
}

@media (max-width: 880px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .menu-toggle {
    order: 3;
    display: grid;
    margin-left: auto;
  }

  .header-badge {
    display: none;
  }

  .nav {
    order: 4;
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(16, 61, 52, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(16, 20, 23, 0.14);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px 13px;
    border-radius: 6px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(16, 61, 52, 0.06);
  }

  .mobile-quote {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    background: #087f43;
  }

  .nav .mobile-quote::after {
    display: none;
  }

  .nav .mobile-quote:hover,
  .nav .mobile-quote:focus-visible {
    color: #ffffff;
    background: #066d38;
  }

  .intro {
    min-height: 224px;
  }

  .intro::after {
    inset: 12% -12% 0 34%;
    opacity: 0.13;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .support {
    padding-top: 12px;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 17px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .nav {
    width: 100%;
    margin-inline: 0;
    gap: 2px;
    padding: 9px;
    font-size: 1rem;
  }

  .brand span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    width: 92px;
    height: 44px;
    padding: 4px;
  }

  .header-badge {
    display: none;
  }

  .quote-pill {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .intro {
    min-height: 206px;
    padding: 32px 20px;
  }

  .wizard-progress li {
    justify-content: center;
  }

  .wizard-progress li strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .choice-list {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-position {
    order: -1;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .wizard-button,
  .wizard-actions .submit-button {
    flex: 1 1 0;
    min-width: 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  .content {
    width: min(100% - 28px, 1180px);
    margin-top: 30px;
    gap: 44px;
  }

  .form-card {
    padding: 23px 18px 28px;
    box-shadow: 8px 10px 0 rgba(16, 61, 52, 0.1), 0 18px 40px rgba(16, 20, 23, 0.1);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-actions {
    grid-template-columns: 1fr;
  }

  .rating-scale {
    grid-template-columns: repeat(5, minmax(52px, 1fr));
    overflow-x: auto;
    padding: 3px 2px 10px;
  }

  .rating-scale label > span {
    min-height: 66px;
  }

  label.wide {
    grid-column: auto;
  }

  input,
  select,
  textarea,
  .submit-button {
    font-size: 1rem;
  }
}
