:root {
  --jr-primary: #0288d1;
  --jr-primary-dark: #01579b;
  --jr-primary-soft: #e7f3fb;
  --jr-ink: #0f2742;
  --jr-muted: #43607d;
  --jr-line: #dce7f3;
  --jr-card-bg: #f8fbff;
  --ok: #0e9f6e;
  --ok-bg: #ecfdf5;
  --warn: #b7791f;
  --warn-bg: #fff7ed;
  --err: #b91c1c;
  --err-bg: #fef2f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--jr-ink);
  background: #ffffff;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}
.panel {
  background: #fff;
  border: 1px solid var(--jr-line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(3, 36, 69, 0.07);
  padding: 18px;
}
.panel + .panel {
  margin-top: 16px;
}
h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
h3 {
  margin: 0;
  font-size: 1.05rem;
}
h1,
h2,
h3,
.plan-name,
.btn,
.plan-select-btn,
.flow-step {
  font-family: "Montserrat", "Roboto", "Helvetica Neue", Arial, sans-serif;
}
.sub {
  margin: 8px 0 0;
  color: var(--jr-muted);
}
.flow-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.flow-step {
  position: relative;
  border: 1px solid var(--jr-line);
  border-radius: 999px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #335d7f;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
}
.flow-step .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #2d5f87;
  font-size: 0.72rem;
}
.flow-step.active {
  border-color: #8dcdf3;
  background: #eef8ff;
  color: var(--jr-primary-dark);
}
.flow-step.active .step-num {
  background: var(--jr-primary);
  color: #fff;
}
.flow-step.done {
  border-color: #a5ddbf;
  background: #eefcf5;
  color: #166845;
}
.flow-step.done .step-num {
  background: var(--ok);
  color: #fff;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: 1px solid var(--jr-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: 2px solid #90cdf4;
  outline-offset: 0;
  border-color: #58b3ec;
}
.address-row,
.form-row {
  display: grid;
  gap: 12px;
}
.address-row {
  grid-template-columns: 2.3fr 1fr;
  margin-top: 14px;
}
.form-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}
.lookup-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn.primary {
  background: var(--jr-primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--jr-primary-dark);
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.link-btn {
  border: none;
  background: transparent;
  color: var(--jr-primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.helper {
  margin: 0;
  color: var(--jr-muted);
  font-size: 0.84rem;
}
.error {
  margin: 8px 0 0;
  color: var(--err);
  font-size: 0.85rem;
}
.hidden {
  display: none !important;
}
.service-address {
  margin-bottom: 10px;
  border: 1px solid #cde4f6;
  border-radius: 11px;
  background: #f2f9ff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.service-address-label {
  font-size: 0.78rem;
  color: #3e698b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.service-address-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jr-ink);
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pill {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid transparent;
}
.pill.eligible {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: #d1fae5;
}
.pill.possible {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #ffedd5;
}
.pill.not-yet {
  color: var(--err);
  background: var(--err-bg);
  border-color: #fee2e2;
}
.result-reason {
  margin: 8px 0 0;
  color: var(--jr-muted);
}
.referral {
  margin-top: 10px;
  background: #f6faf6;
  border: 1px solid #dcefdc;
  border-radius: 10px;
  padding: 10px;
  color: #2f4f2f;
}
.plan-title {
  margin-top: 16px;
}
.value-props {
  margin-top: 10px;
  border: 1px solid #d3e5f3;
  border-radius: 10px;
  background: #f5fbff;
  padding: 9px 10px;
}
.value-props-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3c6788;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.value-props-list {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.value-chip {
  border: 1px solid #bddbf0;
  background: #ffffff;
  color: #1e567d;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
}
.plan-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: stretch;
}
.business-shared {
  margin-top: 10px;
  border: 1px solid #d3e5f3;
  border-radius: 10px;
  background: #f5fbff;
  padding: 9px 10px;
}
.business-shared-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3c6788;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.business-shared-list {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.business-shared-item {
  border: 1px solid #bddbf0;
  background: #ffffff;
  color: #1e567d;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
}
.business-selection-note {
  margin: 8px 0 0;
  color: #335f81;
  font-size: 0.84rem;
  font-weight: 600;
}
.plan-card {
  border: 2px solid #d4e3f1;
  border-radius: 11px;
  background: var(--jr-card-bg);
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  position: relative;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  width: 100%;
  max-width: 250px;
  flex: 1 1 230px;
}
.plan-card.business {
  min-height: 0;
}
@media (min-width: 1040px) {
  .plan-card {
    flex: 0 0 calc((100% - 48px) / 5);
    max-width: calc((100% - 48px) / 5);
  }
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 38, 64, 0.12);
}
.plan-card.selected {
  border-color: var(--jr-primary);
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.18);
}
.plan-select-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #9cc7e7;
  background: #fff;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plan-select-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.plan-card.selected .plan-select-indicator {
  border-color: #036aa4;
  background: #eaf7ff;
}
.plan-card.selected .plan-select-dot {
  background: #036aa4;
}
.plan-head {
  background: linear-gradient(180deg, #0288d1 0%, #01579b 100%);
  color: #fff;
  padding: 14px 12px 14px;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan-name {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 800;
  text-align: center;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-desc {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.32;
  text-align: center;
  min-height: 3.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.price-wrap {
  padding: 14px 12px 8px;
  text-align: center;
}
.currency {
  font-size: 1.4rem;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
  color: #486076;
}
.price {
  font-size: 3.35rem;
  line-height: 1;
  font-weight: 700;
  color: #395269;
}
.monthly {
  margin: 2px 0 0;
  color: #7f90a1;
  font-size: 1rem;
  font-weight: 600;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  flex: 1 1 auto;
}
.feature-list li {
  border-top: 1px solid #dae6f2;
  padding: 9px 4px;
  color: #4c5f72;
  font-size: 0.84rem;
  text-align: center;
  font-weight: 600;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list li strong {
  color: #1b3854;
  font-weight: 800;
}
.plan-card.business .feature-list li {
  min-height: 44px;
}
.plan-card.business .feature-list {
  flex: 0 0 auto;
}
.plan-actions {
  padding: 10px 12px;
}
.plan-select-btn {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: var(--jr-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}
.plan-select-btn:hover {
  background: var(--jr-primary-dark);
}
.plan-select-btn.selected {
  background: #0a6ca5;
}
.plan-select-btn.business-selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.extras-details {
  margin-top: 12px;
  border: 1px solid var(--jr-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.extras-details summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 13px;
  font-family: "Montserrat", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #1f3e5c;
}
.extras-details[open] summary {
  border-bottom: 1px solid var(--jr-line);
}
.extras-body {
  padding: 0 13px 12px;
}
.extras-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--jr-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.extras-list li + li {
  margin-top: 6px;
}
.fcc-inline {
  margin: 0 12px 12px;
  border: 1px solid #c5d4e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.fcc-inline-preview {
  position: relative;
  max-height: 126px;
  overflow: hidden;
}
.fcc-body-preview .fcc-row:last-child {
  border-bottom: 1px solid #d9d9d9;
}
.fcc-preview-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.93) 64%, #fff 100%);
  pointer-events: none;
}
.fcc-toggle-btn {
  width: 100%;
  border: none;
  border-top: 1px solid #d5e0ea;
  background: #f2f8fe;
  color: #1b4f76;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
}
.fcc-toggle-btn:hover {
  background: #e5f3ff;
}
.fcc-inline-full {
  border-top: 1px solid #d5e0ea;
}
.fcc-card {
  border: 0;
  background: #fff;
}
.fcc-head {
  border-bottom: 2px solid #111;
  padding: 8px 10px;
}
.fcc-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fcc-plan {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 0.85rem;
}
.fcc-body {
  display: grid;
}
.fcc-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid #d9d9d9;
}
.fcc-row:last-child {
  border-bottom: none;
}
.fcc-key,
.fcc-val {
  padding: 6px 9px;
  font-size: 0.78rem;
  line-height: 1.25;
}
.fcc-key {
  font-weight: 700;
  border-right: 1px solid #d9d9d9;
  color: #1f2d42;
}
.fcc-val {
  color: #2a3445;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fcc-val a {
  color: #145e94;
  text-decoration: underline;
}
@container (max-width: 255px) {
  .fcc-row {
    grid-template-columns: 1fr;
  }
  .fcc-key {
    border-right: none;
    border-bottom: 1px solid #e4e4e4;
    background: #fafafa;
  }
}
.lead-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--jr-line);
}
.lead-section .form-row {
  margin-top: 14px;
}
.lead-section .lookup-actions {
  margin-top: 16px;
  align-items: flex-start;
}
#submitBtn {
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(1, 87, 155, 0.24);
}
.pref-row {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}
.consent {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #4f5661;
  font-size: 0.84rem;
}
.success-msg {
  margin-top: 10px;
  border: 1px solid #ccead9;
  background: #edf9f2;
  color: #175b3d;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .plan-card {
    min-height: 0;
    max-width: calc(50% - 7px);
    flex-basis: calc(50% - 7px);
  }
  .flow-step {
    font-size: 0.76rem;
  }
}
@media (max-width: 720px) {
  .page {
    padding: 14px 10px 26px;
  }
  .address-row,
  .form-row {
    grid-template-columns: 1fr;
  }
  .service-address {
    padding: 8px;
  }
  #submitBtn {
    width: 100%;
  }
  #leadSection .lookup-actions .helper {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .plan-card {
    max-width: none;
    flex-basis: 100%;
  }
  .fcc-row {
    grid-template-columns: 1fr;
  }
  .fcc-key {
    border-right: none;
    border-bottom: 1px solid #e4e4e4;
    background: #fafafa;
  }
}
