* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f7fc;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
}

#solarCalcPremium {
  font-family: Montserrat, Arial, sans-serif;
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 16px;
}

#solarCalcPremium * {
  box-sizing: border-box;
}

#solarCalcPremium button,
#solarCalcPremium input,
#solarCalcPremium a {
  font-family: inherit;
}

.scp-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.scp-header {
  text-align: center;
  margin-bottom: 22px;
}

.scp-badge {
  display: inline-block;
  background: #eaf2fb;
  color: #003e8a;
  border: 1px solid #b8d4f5;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.scp-header h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  color: #0f172a;
}

.scp-header p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
}

.scp-progress-wrap {
  width: 100%;
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 24px 0 14px;
}

.scp-progress-bar {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #003e8a, #fdb913);
  transition: width 0.3s ease;
}

.scp-step-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.scp-step-labels span {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  user-select: none;
}

.scp-step-labels span.active {
  color: #003e8a;
  background: #eaf2fb;
  border-color: #fdb913;
  font-weight: 600;
}

.scp-step {
  display: none;
}

.scp-step.active {
  display: block;
  animation: fadeStep 0.25s ease;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scp-step h3 {
  margin-bottom: 18px;
  color: #0f172a;
  font-size: 24px;
}

.scp-note {
  color: #64748b;
  margin-bottom: 16px;
  font-size: 14px;
}

.scp-subsection {
  margin-top: 20px;
}

.scp-subsection h4 {
  margin-bottom: 12px;
  color: #1e293b;
  font-size: 16px;
}

.scp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.scp-choice-card {
  display: block;
  border: 1px solid #dbe4ee;
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  min-height: 72px;
}

.scp-choice-card span {
  display: block;
}

.scp-choice-card input {
  display: none;
}

.scp-choice-card:hover {
  border-color: #fdb913;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(253, 185, 19, 0.06);
}

.scp-choice-card.active {
  border-color: #fdb913;
  background: #eaf2fb;
  color: #003e8a;
}

.scp-input {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.scp-input:focus {
  border-color: #fdb913;
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.12);
}

.scp-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.scp-tab {
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.scp-tab:hover {
  border-color: #fdb913;
  color: #003e8a;
}

.scp-tab.active {
  background: #003e8a;
  color: #fff;
  border-color: #003e8a;
}

.scp-appliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scp-appliance-card {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.scp-appliance-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.scp-appliance-card.active {
  border-color: #fdb913;
  box-shadow: 0 8px 24px rgba(253, 185, 19, 0.08);
  background: #fcfeff;
}

.scp-appliance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.scp-appliance-top h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.35;
}

.scp-appliance-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 2px;
}

.scp-toggle {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.scp-toggle:hover {
  opacity: 0.92;
}

.scp-toggle.on {
  background: #003e8a;
  color: #fff;
}

.scp-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scp-controls label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.scp-controls input {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.scp-controls input:focus {
  border-color: #fdb913;
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.10);
}

.scp-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.scp-result-card,
.scp-financial-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 20px;
  padding: 18px;
  min-height: 110px;
}

.scp-result-card.highlight {
  background: #003e8a;
  color: #fff;
  border-color: #003e8a;
}

.scp-result-card small,
.scp-financial-card small {
  display: block;
  color: #64748b;
  margin-bottom: 8px;
  font-size: 12px;
}

.scp-result-card.highlight small {
  color: #cbd5e1;
}

.scp-result-card strong,
.scp-financial-card strong {
  font-size: 22px;
  color: #0f172a;
  line-height: 1.25;
  display: block;
  word-break: break-word;
}

.scp-result-card.highlight strong {
  color: #fff;
}

.scp-financial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.scp-summary-box {
  border: 1px solid #fdb913;
  background: #eaf2fb;
  border-radius: 20px;
  padding: 18px;
}

.scp-summary-box h4 {
  margin: 0 0 10px;
  color: #003e8a;
}

.scp-summary-box p {
  margin: 0;
  line-height: 1.7;
  color: #003e8a;
}

.scp-cta-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.scp-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.scp-btn {
  display: inline-block;
  border: none;
  border-radius: 40px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.scp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scp-btn-primary {
  background: #003e8a;
  color: #fff;
}

.scp-btn-primary:hover:not(:disabled) {
  background: #0a2148;
  transform: translateY(-1px);
}

.scp-btn-secondary {
  background: #fdb913;
  color: #fff;
}

.scp-btn-secondary:hover {
  background: #d79d10;
}

.scp-btn-light {
  background: #e2e8f0;
  color: #0f172a;
}

.scp-btn-light:hover:not(:disabled) {
  background: #cbd5e1;
}

@media (max-width: 1024px) {
  .scp-grid-4,
  .scp-results-grid,
  .scp-financial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scp-appliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scp-custom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #solarCalcPremium {
    margin: 20px auto;
    padding: 0 12px;
  }

  .scp-card {
    padding: 18px;
    border-radius: 22px;
  }

  .scp-header h2 {
    font-size: 26px;
  }

  .scp-step-labels {
    grid-template-columns: repeat(2, 1fr);
  }

  .scp-grid-4,
  .scp-results-grid,
  .scp-financial-grid,
  .scp-appliance-grid,
  .scp-controls {
    grid-template-columns: 1fr;
  }

  .scp-nav {
    flex-direction: column;
  }

  .scp-nav .scp-btn {
    width: 100%;
  }

  .scp-cta-box {
    flex-direction: column;
  }

  .scp-cta-box .scp-btn {
    width: 100%;
    text-align: center;
  }

  .scp-appliance-top {
    flex-direction: column;
    align-items: stretch;
  }

  .scp-toggle {
    width: 100%;
  }

  .scp-custom-grid {
    grid-template-columns: 1fr;
  }

  .scp-custom-item {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Custom Appliance Section */
.scp-custom-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d7e2ee;
  border-radius: 16px;
  background: #f8fbff;
}

.scp-custom-box h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #1e293b;
}

.scp-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scp-custom-grid input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bcccdc;
  border-radius: 12px;
  background: #fff;
  color: #102a43;
  font-size: 15px;
  box-sizing: border-box;
}

.scp-custom-grid input:focus {
  outline: none;
  border-color: #003e8a;
  box-shadow: 0 0 0 3px rgba(0, 62, 138, 0.14);
}

#scpAddCustomBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: #dbe4f0;
  color: #102a43;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

#scpAddCustomBtn:hover {
  background: #cfd9e6;
}

#scpCustomList {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.scp-custom-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  background: #fff;
}

.scp-custom-item span {
  flex: 1;
  font-size: 14px;
  color: #1e293b;
}

.scp-remove-custom {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.scp-remove-custom:hover {
  background: #fecaca;
}

/* Stepper buttons for mobile-friendly +/- controls */
.scp-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.scp-stepper input {
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  font-size: 15px;
  -moz-appearance: textfield;
  box-shadow: none !important;
}

.scp-stepper input::-webkit-outer-spin-button,
.scp-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scp-stepper-btn {
  background: #f1f5f9;
  border: none;
  width: 40px;
  min-width: 40px;
  height: 42px;
  font-size: 20px;
  font-weight: 700;
  color: #003e8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.scp-stepper-btn:hover {
  background: #e2e8f0;
}

.scp-stepper-btn:active {
  background: #cbd5e1;
}

@media (max-width: 767px) {
  .scp-stepper-btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .scp-stepper input {
    font-size: 16px;
    padding: 12px 4px;
  }
}

/* Popup Maker + Forminator mobile fix */
.pum-container,
.pum-content {
  overflow: visible !important;
}

.pum-content .forminator-ui,
.pum-content .forminator-row,
.pum-content .forminator-col,
.pum-content .forminator-field,
.pum-content form {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pum-content input,
.pum-content textarea,
.pum-content select,
.pum-content button {
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .pum-theme-default-theme .pum-container,
  .pum-theme-lightbox .pum-container,
  #pum-1088 .pum-container {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    padding: 18px !important;
    left: 0 !important;
    right: 0 !important;
  }

  #pum-1088 .pum-content {
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #pum-1088 .forminator-ui {
    width: 100% !important;
  }

  #pum-1088 .forminator-col,
  #pum-1088 .forminator-col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #pum-1088 input[type="text"],
  #pum-1088 input[type="email"],
  #pum-1088 input[type="tel"],
  #pum-1088 textarea,
  #pum-1088 select {
    width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  #pum-1088 .forminator-button-submit {
    width: 100% !important;
  }
}

.advisory-note {
  background: #f7f9fc;
  border-left: 4px solid #2e7d32;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .scp-custom-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .scp-custom-grid input {
    width: 100% !important;
    min-width: 0;
  }

  #scpAddCustomBtn {
    width: 100%;
  }

  .scp-custom-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
  }

  .scp-custom-item span {
    word-break: break-word;
  }
}