/**
 * Solar Savings & STC Rebate Calculator — frontend styles.
 *
 * IDENTICAL design to the reference, but every selector is scoped
 * under `.ssc-scope` so a theme can never leak into the calculator
 * and the calculator never leaks into the theme.
 */

.ssc-scope,
.ssc-scope *,
.ssc-scope *::before,
.ssc-scope *::after {
  box-sizing: border-box;
}

.ssc-scope {
  margin: 0;
  background: #ffffff;
  color: #000;
  font-family: inherit;
  line-height: 1.4;
}

.ssc-scope h1,
.ssc-scope h2,
.ssc-scope h3,
.ssc-scope h4,
.ssc-scope p,
.ssc-scope ul,
.ssc-scope ol,
.ssc-scope form,
.ssc-scope figure {
  margin: 0;
  padding: 0;
}

.ssc-scope img {
  max-width: 100%;
  display: block;
}

.ssc-scope a {
  color: inherit;
  text-decoration: none;
}

.ssc-scope button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.ssc-scope :focus-visible {
  outline: 3px solid #F69135;
  outline-offset: 3px;
  border-radius: 4px;
}

.ssc-scope .section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.ssc-scope .section-head h2 {
  font-size: 69px;
  line-height: 76px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.ssc-scope .section-head h2 span {
  color: #F69135;
}

.ssc-scope .section-head--light h2,
.ssc-scope .section-head--light p {
  color: #000;
}

.ssc-scope .section-head--light h2 span {
  color: #0EA29C;
}

.ssc-scope .calculator {
  padding: 120px 0;
  background: #ffffff;
  color: #000;
  position: relative;
  overflow: hidden;
}

.ssc-scope .calculator .wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.ssc-scope .calc-tabs {
  display: inline-flex;
  background: #f5f0eb;
  padding: 6px;
  border-radius: 100px;
  gap: 4px;
}

.ssc-scope .calc-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.ssc-scope .calc-tab {
  background: transparent;
  color: #000;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
}

.ssc-scope .calc-tab.active {
  background: #0EA29C;
  color: #fff;
}

.ssc-scope .calc-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.05);
}

.ssc-scope .calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.ssc-scope .calc-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 16px;
}

.ssc-scope .calc-left h2 span {
  color: #0EA29C;
}

.ssc-scope .calc-left > div > p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.82);
  margin: 0 0 24px;
}

.ssc-scope .calc-benefits {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: #000;
}

.ssc-scope .calc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.ssc-scope .calc-benefits li::before {
  content: "";
  flex: none;
  margin-top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #0EA29C;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.ssc-scope .calc-offices {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ssc-scope .calc-office {
  background: #f5f0eb;
  border: 1px solid #f5f0eb;
  border-radius: 10px;
  padding: 12px 14px;
}

.ssc-scope .calc-office strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0EA29C;
  margin-bottom: 4px;
}

.ssc-scope .calc-office a {
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
}

.ssc-scope .calc-right {
  background: #fff;
  color: #1a1a1a;
  border-radius: 24px;
  padding: 34px;
  border: 1px solid #f0f0f0;
}

.ssc-scope .calc-right h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.ssc-scope .calc-sub {
  color: #4a4a4a;
  font-size: 0.82rem;
  margin: 0 0 20px;
}

.ssc-scope .calc-field {
  margin-bottom: 14px;
}

.ssc-scope .calc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a4a4a;
  margin-bottom: 7px;
}

.ssc-scope .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ssc-scope .input-wrap .prefix,
.ssc-scope .input-wrap .suffix {
  position: absolute;
  font-weight: 600;
  color: #4a4a4a;
  font-size: 0.92rem;
  pointer-events: none;
  z-index: 2;
}

.ssc-scope .input-wrap .prefix {
  left: 14px;
}

.ssc-scope .input-wrap .suffix {
  right: 14px;
  font-size: 0.78rem;
}

.ssc-scope .input-wrap input,
.ssc-scope .input-wrap select {
  width: 100%;
  height: 56px;
  padding: 0 40px;
  border: 2px solid #e6e0d9 !important;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a1a !important;
  background: #f5f0eb !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin: 0;
  box-shadow: none;
  line-height: normal;
}

.ssc-scope .input-wrap input:focus,
.ssc-scope .input-wrap select:focus {
  outline: none !important;
  border-color: #0EA29C !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(14, 162, 156, 0.12);
}

.ssc-scope .input-wrap input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ssc-scope .input-wrap input[type="number"]::-webkit-outer-spin-button,
.ssc-scope .input-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ssc-scope .input-wrap.has-prefix input {
  padding-left: 36px;
}

.ssc-scope .input-wrap.has-suffix input {
  padding-right: 75px;
}

.ssc-scope .input-wrap select {
  padding: 0 40px 0 16px;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}

.ssc-scope .input-help {
  margin-top: 6px;
  color: #9f908d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.ssc-scope .seg {
  display: inline-flex;
  background: #f5f0eb;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  width: 100%;
}

.ssc-scope .seg button {
  flex: 1;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a4a4a;
  transition: all 0.2s;
}

.ssc-scope .seg button.active {
  background: #0EA29C;
  color: #fff;
  box-shadow: 0 4px 10px rgba(14, 162, 156, 0.2);
}

.ssc-scope .calc-submit {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  background: #eee8e2;
  color: #1a1a1a;
  border-radius: 10px;
  border: none !important;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s, transform 0.25s;
}

.ssc-scope .calc-submit:hover {
  background: #F69135;
  color: #fff;
  transform: translateY(-2px);
}

.ssc-scope .calc-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.ssc-scope .calc-results {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed #e0d9d0;
  display: none;
}

.ssc-scope .calc-results.show {
  display: block;
  animation: sscFadeUp 0.5s ease;
}

@keyframes sscFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ssc-scope .rec-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0EA29C, #1f4230);
  color: #fff;
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.ssc-scope .rec-banner__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F69135;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ssc-scope .rec-banner__icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
}

.ssc-scope .rec-banner__text strong {
  display: block;
  font-size: 0.92rem;
}

.ssc-scope .rec-banner__text small {
  display: block;
  font-size: 0.74rem;
  opacity: 0.85;
  margin-top: 3px;
}

.ssc-scope .tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ssc-scope .tier-tab {
  padding: 10px 6px;
  border: 2px solid #e6e0d9;
  border-radius: 12px;
  background: #f5f0eb;
  font-weight: 600;
  font-size: 0.84rem;
  color: #4a4a4a;
  transition: all 0.2s;
}

.ssc-scope .tier-tab small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: #9f908d;
  margin-top: 2px;
}

.ssc-scope .tier-tab.active {
  border-color: #F69135;
  background: #fff;
  color: #F69135;
  box-shadow: 0 6px 18px rgba(255, 89, 56, 0.15);
}

.ssc-scope .tier-details {
  display: none;
}

.ssc-scope .tier-details.active {
  display: block;
}

.ssc-scope .calc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ssc-scope .calc-stat {
  background: #f5f0eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.ssc-scope .calc-stat--accent {
  background: linear-gradient(135deg, #fff3ef, #ffe3d8);
}

.ssc-scope .calc-stat--wide {
  grid-column: 1 / -1;
}

.ssc-scope .calc-stat__label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: #4a4a4a;
  margin-bottom: 4px;
}

.ssc-scope .calc-stat__val {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0EA29C;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ssc-scope .calc-stat--accent .calc-stat__val {
  color: #F69135;
}

.ssc-scope .calc-stat__val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: #9f908d;
  margin-left: 3px;
}

.ssc-scope .calc-stat__sub {
  font-size: 0.68rem;
  color: #9f908d;
  margin-top: 4px;
  line-height: 1.4;
}

.ssc-scope .lead-capture {
  margin-top: 16px;
  background: #f5f0eb;
  padding: 16px;
  border-radius: 12px;
  display: grid;
  gap: 8px;
}

.ssc-scope .lead-capture p {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.ssc-scope .lead-capture input {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #e6e0d9;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  margin: 0;
}

.ssc-scope .lead-capture input:focus {
  outline: none;
  border-color: #0EA29C;
}

.ssc-scope .lead-capture button {
  padding: 11px;
  background: #0EA29C;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.ssc-scope .lead-capture button:hover {
  background: #F69135;
}

.ssc-scope .lead-capture button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.ssc-scope .lead-success {
  display: none;
  text-align: center;
  padding: 14px;
  color: #0EA29C;
  font-weight: 600;
  font-size: 0.9rem;
}

.ssc-scope .chbp-note {
  border-left: 3px solid #F69135;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 12px;
}

.ssc-scope .chbp-note strong {
  color: #F69135;
}

.ssc-scope .savings-calc,
.ssc-scope .stc-calc {
  display: none;
}

.ssc-scope .savings-calc.active,
.ssc-scope .stc-calc.active {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Dynamic pincode validation UI (new)                                  */
/* ------------------------------------------------------------------ */

.ssc-scope .ssc-field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d63638;
  line-height: 1.4;
}

.ssc-scope .ssc-field-error.show {
  display: block;
}

.ssc-scope .input-wrap.input-error input {
  border-color: #d63638 !important;
  background: #fff5f5 !important;
}

.ssc-scope .ssc-pc-status {
  display: none;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0EA29C;
  line-height: 1.4;
}

.ssc-scope .ssc-pc-status.show {
  display: block;
}

.ssc-scope .ssc-checking {
  opacity: 0.65;
  pointer-events: none;
}

/* Honeypot (anti-spam) — visually and positionally hidden. */
.ssc-scope .ssc-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
}

@keyframes sscShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.ssc-scope .ssc-shake {
  animation: sscShake 0.4s ease;
}

/* ------------------------------------------------------------------ */
/* Responsive — same breakpoints as the reference                       */
/* ------------------------------------------------------------------ */

@media (max-width: 991px) {
  .ssc-scope .calc-grid {
    gap: 36px;
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .ssc-scope .calculator {
    padding: 70px 0;
  }

  .ssc-scope .calculator .wrapper {
    padding: 0 20px;
  }

  .ssc-scope .section-head h2 {
    font-size: 40px;
    line-height: 42px;
  }
}

@media (max-width: 540px) {
  .ssc-scope .calc-right {
    padding: 20px;
    width: 100%;
  }

  .ssc-scope .calc-offices {
    grid-template-columns: 1fr;
  }

  .ssc-scope .section-head h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .ssc-scope .calc-tab {
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .ssc-scope .seg {
    /*flex-direction: column;*/
  }

  .ssc-scope .tier-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .ssc-scope .calc-stats {
    grid-template-columns: 1fr;
  }

  .ssc-scope .calc-stat--wide {
    grid-column: auto;
  }
}
