/* =========================================================
   NEW ENERGY — DETAILED COMMERCIAL ASSESSMENT
   ========================================================= */

.detailed-assessment-stage {
  padding-top: 8px;
}

.detailed-assessment-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.detailed-assessment-header {
  max-width: 780px;
  margin-bottom: 30px;
}

.detailed-assessment-header h2 {
  margin: 8px 0 10px;
  color: #173746;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.detailed-assessment-header > p {
  max-width: 700px;
  margin: 0;
  color: #71838d;
  font-size: 1rem;
  line-height: 1.6;
}

.detailed-assessment-known {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 19px;
}

.detailed-assessment-known span {
  padding: 8px 11px;
  border: 1px solid rgba(22, 130, 104, .13);
  border-radius: 999px;
  background: #f1faf7;
  color: #17715d;
  font-size: .76rem;
  font-weight: 720;
}

.detailed-assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
}

.detailed-assessment-form {
  display: grid;
  gap: 16px;
}

.detailed-form-card,
.detailed-submit-card {
  padding: 25px;
  border: 1px solid rgba(35, 75, 93, .10);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(36, 67, 81, .045);
}

.detailed-form-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 21px;
}

.detailed-form-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #edf7fb;
  color: #237fa5;
  font-size: .72rem;
  font-weight: 850;
}

.detailed-form-heading h3 {
  margin: 1px 0 4px;
  color: #1a3c4c;
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

.detailed-form-heading p {
  margin: 0;
  color: #7b8d96;
  font-size: .86rem;
  line-height: 1.45;
}

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

.detailed-field-grid label,
.detailed-full-field {
  display: grid;
  gap: 7px;
}

.detailed-field-grid label > span,
.detailed-full-field > span {
  color: #405d6b;
  font-size: .77rem;
  font-weight: 720;
}

.detailed-assessment-form input,
.detailed-assessment-form select,
.detailed-assessment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(36, 76, 94, .15);
  border-radius: 12px;
  outline: none;
  background: #fbfcfc;
  color: #173746;
  font: inherit;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.detailed-assessment-form input,
.detailed-assessment-form select {
  min-height: 46px;
  padding: 0 13px;
}

.detailed-assessment-form textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px 13px;
  line-height: 1.5;
}

.detailed-assessment-form input:focus,
.detailed-assessment-form select:focus,
.detailed-assessment-form textarea:focus {
  border-color: rgba(31, 145, 190, .55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 145, 190, .08);
}

.detailed-electricity-prefill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 17px;
}

.detailed-electricity-prefill > div {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f4fafc;
}

.detailed-electricity-prefill span,
.detailed-summary-metrics span,
.detailed-summary-saving span {
  color: #77909b;
  font-size: .69rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.detailed-electricity-prefill strong {
  color: #1f5065;
  font-size: .96rem;
}

.detailed-electricity-prefill small {
  color: #80919a;
  font-size: .71rem;
}

.detailed-input-unit {
  position: relative;
}

.detailed-input-unit input {
  padding-right: 78px;
}

.detailed-input-unit em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #81929a;
  font-size: .72rem;
  font-style: normal;
}

.detailed-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding: 15px;
  border: 1px dashed rgba(35, 119, 153, .23);
  border-radius: 14px;
  background: #f8fbfc;
}

.detailed-upload-box strong {
  display: block;
  color: #315869;
  font-size: .83rem;
}

.detailed-upload-box p {
  margin: 3px 0 0;
  color: #81929a;
  font-size: .76rem;
}

.detailed-upload-button {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 10px;
  background: #edf7fb;
  color: #267c9f;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 760;
}

.detailed-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.detailed-upload-name {
  display: block;
  margin-top: 8px;
  color: #55707d;
  font-size: .75rem;
}

.detailed-full-field {
  margin-top: 17px;
}

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

.detailed-choice-grid label {
  position: relative;
  display: block;
  cursor: pointer;
}

.detailed-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.detailed-choice-grid label > span {
  display: grid;
  gap: 3px;
  min-height: 70px;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(34, 76, 94, .12);
  border-radius: 14px;
  background: #fafcfc;
  transition: .16s ease;
}

.detailed-choice-grid label > span strong {
  color: #294f60;
  font-size: .82rem;
}

.detailed-choice-grid label > span small {
  color: #81919a;
  font-size: .74rem;
}

.detailed-choice-grid input:checked + span {
  border-color: rgba(28, 137, 181, .35);
  background: #eef8fb;
  box-shadow: inset 0 0 0 1px rgba(28, 137, 181, .08);
}

.detailed-next-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detailed-message-field {
  margin-top: 18px;
}

.detailed-submit-card {
  background:
    linear-gradient(
      145deg,
      #f7fbfc 0%,
      #f1f8fa 100%
    );
}

.detailed-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #59717d;
  font-size: .79rem;
  line-height: 1.45;
}

.detailed-consent input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.detailed-submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 19px;
}

.detailed-submit-card > small {
  display: block;
  margin-top: 10px;
  text-align: right;
  color: #84959d;
  font-size: .7rem;
}


/* Summary ------------------------------------------------ */

.detailed-assessment-summary {
  position: sticky;
  top: 24px;
}

.detailed-summary-card {
  padding: 23px;
  border: 1px solid rgba(29, 90, 113, .11);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(38, 73, 88, .07);
}

.detailed-summary-card h3 {
  margin: 8px 0 4px;
  color: #173746;
  font-size: 1.16rem;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.detailed-summary-card > p {
  margin: 0;
  color: #7c8e96;
  font-size: .78rem;
  line-height: 1.45;
}

.detailed-summary-saving {
  position: relative;
  display: grid;
  gap: 5px;
  margin-top: 19px;
  padding: 16px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #f1faf7, #e7f6f0);
}

.detailed-summary-saving::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #10866b;
}

.detailed-summary-saving strong {
  color: #08745d;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.detailed-summary-metrics {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border: 1px solid rgba(37, 77, 94, .09);
  border-radius: 14px;
  overflow: hidden;
}

.detailed-summary-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 13px;
  background: #fbfcfc;
}

.detailed-summary-metrics > div + div {
  border-top: 1px solid rgba(37, 77, 94, .08);
}

.detailed-summary-metrics strong {
  color: #254d5f;
  font-size: .84rem;
}

.detailed-summary-note {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(37, 77, 94, .09);
}

.detailed-summary-note strong {
  color: #375b6a;
  font-size: .79rem;
}

.detailed-summary-note p {
  margin: 5px 0 0;
  color: #80919a;
  font-size: .75rem;
  line-height: 1.5;
}


/* Confirmation ------------------------------------------- */

.detailed-assessment-confirmation {
  max-width: 760px;
  margin: 35px auto 0;
  padding: 48px 38px;
  text-align: center;
  border: 1px solid rgba(23, 126, 99, .13);
  border-radius: 24px;
  background: linear-gradient(145deg, #f7fcfa, #edf8f4);
}

.detailed-confirmation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: #10866b;
  color: #fff;
  font-weight: 900;
}

.detailed-assessment-confirmation h2 {
  margin: 8px 0;
  color: #173d36;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.detailed-assessment-confirmation > p {
  max-width: 580px;
  margin: 0 auto;
  color: #718980;
  line-height: 1.55;
}

.detailed-confirmation-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
}

.detailed-confirmation-next > div {
  display: grid;
  gap: 7px;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
}

.detailed-confirmation-next span {
  color: #198067;
  font-size: .7rem;
  font-weight: 850;
}

.detailed-confirmation-next strong {
  color: #45665c;
  font-size: .78rem;
}

.detailed-prototype-note {
  margin-bottom: 18px !important;
  font-size: .74rem;
}


/* Responsive --------------------------------------------- */

@media (max-width: 920px) {
  .detailed-assessment-layout {
    grid-template-columns: 1fr;
  }

  .detailed-assessment-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .detailed-field-grid,
  .detailed-electricity-prefill,
  .detailed-choice-grid,
  .detailed-next-choice,
  .detailed-confirmation-next {
    grid-template-columns: 1fr;
  }

  .detailed-upload-box,
  .detailed-submit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detailed-submit-card > small {
    text-align: left;
  }
}
