/* =====================================================
   WRIGHT'S GAS - START SERVICE
   Uses the site's existing variables and button styles.
===================================================== */

.start-service-hero {
  padding: 74px 0 54px;
  background: var(--navy, #102e50);
  color: #fff;
}

.start-service-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: end;
}

.start-service-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.start-service-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.04rem;
}

.start-service-help {
  padding: 22px 24px;
  display: grid;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
}

.start-service-help strong {
  color: #fff;
}

.start-service-help span {
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}


/* Layout */

.start-service-section {
  padding: 56px 0 90px;
  background: #f8fafc;
}

.start-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  align-items: start;
}

.start-service-main {
  min-width: 0;
}

.start-service-form {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16,46,80,.07);
}


/* Progress */

.start-progress {
  margin: 0 0 22px;
  padding: 0 8px;
  display: flex;
  align-items: flex-start;
}

.progress-item {
  width: 74px;
  flex: 0 0 74px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8190a0;
  text-align: center;
}

.progress-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8edf2;
  color: #68737d;
  font-size: .8rem;
  font-weight: 800;
}

.progress-item strong {
  font-size: .68rem;
  line-height: 1.15;
}

.progress-item.is-active span,
.progress-item.is-complete span {
  background: var(--blue, #174a8b);
  color: #fff;
}

.progress-item.is-active strong,
.progress-item.is-complete strong {
  color: var(--navy, #102e50);
}

.progress-line {
  height: 2px;
  flex: 1 1 auto;
  margin-top: 16px;
  background: #e3e9ee;
}


/* Step */

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step-head {
  margin-bottom: 28px;
}

.form-step-head h2 {
  margin: 7px 0 8px;
  color: var(--navy, #102e50);
}

.form-step-head p {
  max-width: 650px;
  margin: 0;
  color: var(--gray, #68737d);
}


/* Fields */

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid + .form-grid,
.form-grid + .form-fieldset,
.form-fieldset + .form-grid,
.form-fieldset + .form-fieldset,
.form-field + .form-actions,
.form-grid + .form-actions,
.form-note + .form-actions,
.review-card + .check-row {
  margin-top: 24px;
}

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

.three-col {
  grid-template-columns: 1.2fr .8fr .8fr;
}

.form-field {
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--navy, #102e50);
  font-size: .84rem;
  font-weight: 800;
}

.form-field label span,
.form-fieldset legend span,
.consent-row strong {
  color: var(--red, #d9272e);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #cfd9e2;
  border-radius: 9px;
  color: #252b31;
  font: inherit;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue, #174a8b);
  box-shadow: 0 0 0 3px rgba(23,74,139,.11);
}

.form-field small {
  display: block;
  margin-top: 7px;
  color: #7c8996;
  font-size: .75rem;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--red, #d9272e);
}

.field-error,
.fieldset-error,
.form-submit-error {
  min-height: 18px;
  margin-top: 5px;
  color: var(--red, #d9272e);
  font-size: .74rem;
}


/* Choice cards */

.form-fieldset {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

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

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

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

.choice-card {
  position: relative;
  display: flex;
  min-height: 54px;
  padding: 13px 15px;
  align-items: center;
  cursor: pointer;
  border: 1px solid #d8e0e7;
  border-radius: 9px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.choice-card:hover {
  border-color: #9fb4cb;
}

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

.choice-card span {
  color: #314153;
  font-size: .86rem;
  font-weight: 700;
}

.choice-card:has(input:checked) {
  border-color: var(--blue, #174a8b);
  background: #eef5fb;
}

.choice-card:has(input:checked) span {
  color: var(--navy, #102e50);
}


/* Conditional / notes */

.conditional-panel {
  margin-top: 18px;
  padding: 20px;
  background: #f7fafc;
  border: 1px solid #dfe6ec;
  border-radius: 10px;
}

.form-note {
  margin-top: 22px;
  padding: 15px 17px;
  background: #eef5fb;
  border-left: 3px solid var(--blue, #174a8b);
  border-radius: 7px;
  color: #526273;
  font-size: .82rem;
  line-height: 1.55;
}

.form-note strong {
  color: var(--navy, #102e50);
}


/* Actions */

.form-actions {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-actions-end {
  justify-content: flex-end;
}

.btn-outline {
  padding: 12px 20px;
  border: 1px solid #c7d1db;
  background: #fff;
  color: var(--navy, #102e50);
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue, #174a8b);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}


/* Review */

.check-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526273;
  font-size: .84rem;
  line-height: 1.45;
}

.check-row input {
  margin-top: 3px;
}

.review-card {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #d9e1e8;
  border-radius: 12px;
  background: #f9fbfc;
}

.review-card-head {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.review-card-head h3 {
  margin: 5px 0 0;
}

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

.review-item {
  min-width: 0;
}

.review-item small {
  display: block;
  margin-bottom: 3px;
  color: #8190a0;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.review-item strong {
  color: #314153;
  font-size: .84rem;
  line-height: 1.4;
  word-break: break-word;
}


/* Sidebar */

.start-service-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 26px;
  background: var(--navy, #102e50);
  color: #fff;
  border-radius: 16px;
}

.sidebar-card .eyebrow {
  color: #ff777b;
}

.next-steps {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.next-steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}

.next-steps strong {
  color: #fff;
  font-size: .86rem;
}

.next-steps p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.66);
  font-size: .78rem;
  line-height: 1.45;
}

.sidebar-card-light {
  background: #eaf3fa;
  color: #526273;
  border: 1px solid #d5e2ec;
}

.sidebar-card-light strong {
  color: var(--navy, #102e50);
}

.sidebar-card-light p {
  margin: 8px 0 0;
  font-size: .8rem;
  line-height: 1.5;
}


/* Success */

.form-success {
  padding: 34px 8px 20px;
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: #eaf3fa;
  color: var(--blue, #174a8b);
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 900;
}

.form-success h2 {
  margin: 8px 0 10px;
}

.form-success p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--gray, #68737d);
}


/* Responsive */

@media (max-width: 900px) {

  .start-service-hero-inner,
  .start-service-layout {
    grid-template-columns: 1fr;
  }

  .start-service-hero-inner {
    gap: 28px;
  }

  .start-service-help {
    max-width: 520px;
  }

  .start-service-sidebar {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 680px) {

  .start-service-hero {
    padding: 56px 0 40px;
  }

  .start-service-section {
    padding: 34px 0 64px;
  }

  .start-service-form {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .start-progress {
    padding: 0;
  }

  .progress-item {
    width: 56px;
    flex-basis: 56px;
  }

  .progress-item strong {
    display: none;
  }

  .two-col,
  .three-col,
  .choice-grid,
  .choice-grid-3,
  .appliance-grid,
  .review-grid,
  .start-service-sidebar {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn,
  .form-actions .btn-outline {
    width: 100%;
  }

}
