/* =========================================================
   RELAY STRATA — GUIDED RENEWAL JOURNEY
   Keep the journey obvious without letting it dominate the
   property risk record.
   ========================================================= */

.relay-guided-renewal {
  margin: 14px 0 20px;
  border: 1px solid #D9DEE5;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.relay-guided-renewal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 13px 18px 11px;
  border-bottom: 1px solid #EEF1F4;
}

.relay-guided-renewal-head .risk-meta-label {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
}

.relay-guided-renewal-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

/* The journey title is enough here. Keep the wider product
   explanation elsewhere so Renewal does not become the whole
   identity of Relay. */
.relay-guided-renewal-head p {
  display: none;
}

.relay-guided-renewal-summary {
  max-width: 620px;
  text-align: right;
  color: #687386;
  font-size: 11px;
  line-height: 1.35;
}

.relay-guided-renewal-summary strong {
  display: inline;
  color: #111;
  font-size: 11px;
}

.relay-guided-renewal-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  background: #FAFBFC;
  border-bottom: 1px solid #EEF1F4;
}

.relay-guided-renewal-step {
  position: relative;
  min-width: 0;
  padding: 10px 12px 9px;
  border-right: 1px solid #E7EBEF;
}

.relay-guided-renewal-step:last-child {
  border-right: 0;
}

.relay-guided-renewal-step-number {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  border: 1px solid #C7CED7;
  border-radius: 50%;
  color: #687386;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}

.relay-guided-renewal-step strong {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

/* The detailed wording belongs in the active content below. */
.relay-guided-renewal-step small {
  display: none;
}

.relay-guided-renewal-step.is-complete .relay-guided-renewal-step-number {
  border-color: #A7DCC1;
  background: #EAF7F0;
  color: #176444;
}

.relay-guided-renewal-step.is-current {
  background: #FFF9F3;
  box-shadow: inset 0 3px 0 #F28A30;
}

.relay-guided-renewal-step.is-current .relay-guided-renewal-step-number {
  border-color: #F28A30;
  background: #FFF2E7;
  color: #9A4B0B;
}

.relay-guided-renewal-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 18px;
}

.relay-guided-renewal-next-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.relay-guided-renewal-gate {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #FFF0E5;
  color: #994607;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.relay-guided-renewal-gate.is-automatic {
  background: #EAF7F0;
  color: #176444;
}

.relay-guided-renewal-next .risk-meta-label {
  display: none;
}

.relay-guided-renewal-next h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.25;
}

.relay-guided-renewal-next p {
  max-width: 850px;
  margin: 0;
  color: #596273;
  font-size: 11px;
  line-height: 1.4;
}

.relay-guided-renewal-next .button {
  min-height: 40px;
  padding: 0 15px;
  white-space: nowrap;
}

/* The guided strip replaces the older four-step strip,
   but the readiness workstreams remain underneath. */
.relay-renewal-panel .relay-renewal-journey-header,
.relay-renewal-panel .relay-renewal-journey-steps {
  display: none !important;
}

.relay-renewal-panel .relay-renewal-journey-content {
  padding-top: 0;
}

@media (max-width: 980px) {
  .relay-guided-renewal-steps {
    grid-template-columns: 1fr;
  }

  .relay-guided-renewal-step {
    border-right: 0;
    border-bottom: 1px solid #E7EBEF;
  }

  .relay-guided-renewal-step:last-child {
    border-bottom: 0;
  }

  .relay-guided-renewal-head {
    display: block;
  }

  .relay-guided-renewal-summary {
    margin-top: 8px;
    text-align: left;
  }

  .relay-guided-renewal-next {
    grid-template-columns: 1fr;
  }

  .relay-guided-renewal-next-copy {
    align-items: flex-start;
  }
}
