/* Estimator: new hero, guided one-step-at-a-time flow, inline questions. */

/* ---- hero ---- */
.est-hero2 { padding: 56px 0 64px; }
.eh-head { max-width: 46rem; margin: 0 auto 36px; text-align: center; }
.eh-head .lead { margin-left: auto; margin-right: auto; }
.eh-grid { display: grid; gap: 28px; align-items: center; max-width: 66rem; margin: 0 auto; }
@media (min-width: 900px) { .eh-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; } }
.eh-work { padding: 28px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.eh-work .kicker-sm { font-size: .8rem; letter-spacing: .08em; }
.eh-work ul { margin: 18px 0; }
.eh-work li { font-size: 1.02rem; line-height: 1.45; }
.eh-go { margin-top: 8px; }
.eh-art { display: grid; place-items: center; min-width: 0; }
.eh-svg { width: 100%; max-width: 520px; height: auto; display: block; }
.est-hero2 .est-fn { margin-top: 6px; }
@media (max-width: 899px) { .eh-svg { max-width: 380px; } }

/* ---- guided flow ---- */
.gd-wrap { max-width: 52rem; margin: 0 auto; }
.gd-progress { margin-bottom: 18px; }
.gd-count { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.gd-count b { color: var(--navy); }
.gd-bar { height: 6px; background: rgba(15,42,61,.1); border-radius: 99px; overflow: hidden; }
.gd-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .35s ease; }
.gd-panel[hidden] { display: none !important; }
.gd-panel { animation: gdIn .25s ease; }
@keyframes gdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gd-panel { animation: none; } .gd-bar span { transition: none; } }
.gd-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(15,42,61,.1); }
.gd-nav-solo { border-top: 0; padding-top: 0; margin-top: 18px; }
.gd-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.gd-pick .btn[disabled] { opacity: .5; cursor: not-allowed; }
.step-pkg .tier-tiles { margin-top: 20px; }
.qstep-h:focus { outline: none; }

/* recap on the last step */
.gd-recap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 16px; margin: 18px 0; background: var(--cream, #faf7f0); border: 1px solid rgba(15,42,61,.12); border-radius: 12px; }
.gd-recap[hidden] { display: none; }
.gd-recap-k { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gd-recap b { color: var(--navy); }
.gd-recap-p { margin-left: auto; font-weight: 600; color: var(--teal); }
.gd-cta { margin-top: 8px; }
.gd-email { margin-top: 20px; }
.gd-email summary { cursor: pointer; font-size: .9rem; color: var(--teal); font-weight: 600; }
.gd-email .est-form { margin-top: 12px; }

/* inline questions */
.gd-form { display: grid; gap: 16px; margin-top: 8px; }
.qf[hidden] { display: none !important; }
.qf-lab { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: 6px; padding: 0; }
.qf-tag { font-weight: 400; color: var(--muted); font-size: .8rem; }
.qf-help { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.qf .inp, .qf select.inp, .qf textarea.inp { width: 100%; }
.qf textarea.inp { height: auto; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.qf-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; font-size: .95rem; color: var(--navy); }
.qf-opt input { margin-top: 3px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.qf-single { padding: 4px 0; }
.gd-act { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.gd-nav .btn[disabled] { opacity: .55; cursor: wait; }
.gd-act [data-qemail][aria-disabled="true"] { opacity: .5; }
.form-msg[data-ok] { color: #1f6f5c; }
@media (max-width: 560px) { .gd-act { width: 100%; flex-direction: column-reverse; align-items: stretch; } .gd-act .btn { width: 100%; justify-content: center; } }
.qf-yn { display: flex; gap: 10px; flex-wrap: wrap; }
.qf-ynb { position: relative; cursor: pointer; }
.qf-ynb input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qf-ynb span { display: inline-flex; align-items: center; justify-content: center; min-width: 6rem; min-height: 46px; padding: 0 22px; border: 2px solid rgba(15,42,61,.25); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 700; font-size: 1rem; transition: background .15s, border-color .15s, color .15s; }
.qf-ynb:hover span { border-color: var(--teal); }
.qf-ynb input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.qf-ynb input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.qf-namerow { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr); gap: 10px; }
.qf-np { min-width: 0; }
.qf-sub { display: block; font-size: .78rem; color: var(--muted); margin: 0 0 4px; }
.qf-np .inp { width: 100%; }
.qf-mi .inp { text-align: center; }
@media (max-width: 420px) { .qf-namerow { grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 1fr); gap: 8px; } }

.gd-thanks { text-align: center; padding: 28px 8px; }
.gd-thanks[hidden] { display: none; }
.gd-thanks-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(73,146,146,.15); color: var(--teal); margin-bottom: 14px; }
.gd-thanks h3:focus { outline: none; }

/* package tiles: even heights, price pinned to the bottom, "Recommended" as a quiet tag */
.step-pkg .tier-card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; text-align: left; font-family: inherit; }
.step-pkg .tier-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.step-pkg .tier-rec { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.step-pkg .tier-price { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.7rem; line-height: 1.1; }
.gd-body .calc-help { font-size: .95rem; line-height: 1.55; margin: 6px 0 0; }
.step-final .gd-body { padding-top: 24px; }
.step-final .gd-recap { margin-top: 20px; }
.qf-opt { padding: 6px 0; }
/* comparison table (desktop): equal centered package columns, left-aligned row names, soft banding */
@media (min-width: 641px) {
  .step-pkg .tier-sub { margin: 36px 0 6px; padding-left: 32px; font-size: 1.15rem; }
  .step-pkg .tier-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .95rem; margin-top: 10px; }
  .step-pkg .tier-table .tt-corner, .step-pkg .tier-table tbody th[scope="row"] { width: 24%; }
  .step-pkg .tier-table thead th { text-align: center; vertical-align: top; padding: 14px 10px 12px; border-bottom: 2px solid var(--navy); background: none; }
  .step-pkg .tier-table .tt-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
  .step-pkg .tier-table thead .tier-badge { display: inline-block; margin-top: 6px; }
  .step-pkg .tier-table tbody th[scope="row"] { text-align: left; vertical-align: middle; padding: 14px 14px 14px 12px; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid rgba(15,42,61,.1); }
  .step-pkg .tier-table td { text-align: center; vertical-align: middle; padding: 14px 12px; line-height: 1.45; color: var(--navy); border-bottom: 1px solid rgba(15,42,61,.1); }
  .step-pkg .tier-table tbody tr:nth-child(even) th, .step-pkg .tier-table tbody tr:nth-child(even) td { background: rgba(15,42,61,.03); }
  .step-pkg .tier-table th.sel, .step-pkg .tier-table td.sel { background: rgba(73,146,146,.12) !important; }
  .step-pkg .tier-table td { border-left: 1px solid rgba(15,42,61,.06); }
}
/* comparison: package cards on desktop (equal height, rows lined up, none raised), tabs on phones */
.cmp-badge-fix { display: none; }
.cmp { margin-bottom: 18px; }
.cmp-pick .cp-on { display: none; }
.cmp-list { margin: 0; }
.cmp-item dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.cmp-item dd { margin: 0; font-size: .98rem; line-height: 1.4; color: var(--navy); }
.cmp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 30px; }
.cmp-price { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--navy); }
.cmp-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.cmp-head .tier-rec { display: block; margin-bottom: 4px; }
@media (min-width: 641px) {
  .cmp-tabs { display: none; }
  .step-pkg .tier-sub { margin-top: 20px; }
  .cmp-wide { margin-top: 14px; }
  .cmp-wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 18px; }
  .cmp-card { display: grid; grid-row: span var(--n, 11); grid-template-rows: subgrid; row-gap: 0; padding: 22px 22px 10px; background: #fff; border: 1.5px solid #e3e8ec; border-radius: 16px; box-shadow: 0 4px 16px rgba(15,42,61,.06); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
  /* no special border for the default plan: only a chosen card is highlighted */
  .cmp-card:hover { border-color: rgba(73,146,146,.6); }
  .cmp-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .cmp-card.on { border-color: var(--teal); background: #f2f8f7; box-shadow: 0 0 0 1px var(--teal), 0 8px 22px rgba(15,42,61,.12); }
  .cmp-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; }
  .cmp-rec { display: block; height: 1rem; line-height: 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
  .cmp-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--navy); }
  .cmp-price { font-size: 1.6rem; }
  .cmp-head .cmp-price-row { min-height: 26px; }
  .cmp-head .tier-badge { font-size: .68rem; padding: 3px 9px; }
  .cmp-card .cmp-list { display: contents; }
  .cmp-card .cmp-item { padding: 11px 0; border-top: 1px solid #eceff2; }
  .cmp-card .cmp-item dt { font-size: .64rem; letter-spacing: .09em; margin-bottom: 3px; }
  .cmp-card .cmp-item dd { font-size: .86rem; line-height: 1.4; }
  .cmp-select { align-self: center; justify-self: stretch; margin: 10px 0 12px; padding: 10px 14px; text-align: center; border-radius: 10px; font-weight: 700; font-size: .85rem; color: var(--navy); border: 2px solid var(--navy); }
  .cmp-select::before { content: 'Select this package'; }
  .cmp-card.on .cmp-select { background: var(--navy); color: #fff; }
  .cmp-card.on .cmp-select::before { content: 'Selected \2713'; }
}
@media (max-width: 640px) {
  .cmp-wide { display: none; }
  .cmp-tabs { margin-top: 14px; }
  .cmp-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: rgba(15,42,61,.07); border-radius: 12px; }
  .cmp-tab { min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--navy); font: inherit; font-size: .98rem; font-weight: 700; cursor: pointer; }
  .cmp-tab.on { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(15,42,61,.25); }
  .cmp-panel { padding-top: 16px; }
  .cmp-panel[hidden] { display: none; }
  .cmp-pick { width: 100%; justify-content: center; margin-top: 18px; min-height: 48px; }
  .cmp-pick .cp-on, .cmp-pick.on .cp-off { display: none; }
  .cmp-pick.on .cp-on { display: inline; }
  .cmp-pick.on { background: var(--navy); color: #fff; border-color: var(--navy); }
  .cmp-panel .cmp-item { padding: 14px 0; border-bottom: 1px solid rgba(15,42,61,.1); }
  .cmp-panel .cmp-item dd { font-size: 1rem; }
}
/* Markdown text from the admin */
.md p { margin: 0 0 .6em; }
.md > :last-child { margin-bottom: 0; }
.md ul { list-style: disc; padding-left: 1.25em; margin: 0 0 .6em; }
.md a { color: var(--teal); text-decoration: underline; }
.est-hero .md a, .eh-work li a { color: var(--gold); text-decoration: underline; }
.md strong { font-weight: 700; }
.gd-wrap .card { padding-bottom: 28px; }

@media (max-width: 640px) {
  .gd-wrap { max-width: none; }
  .step-pkg .tier-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .step-pkg .tier-price { font-size: 1.5rem; }
  /* comparison table becomes one card per row, each package labelled */
  .step-pkg .tier-table, .step-pkg .tier-table tbody, .step-pkg .tier-table tr, .step-pkg .tier-table td, .step-pkg .tier-table th[scope="row"] { display: block; width: 100%; }
  .step-pkg .tier-table thead { display: none; }
  .step-pkg .tier-table tr { padding: 14px 0; border-bottom: 1px solid rgba(15,42,61,.12); }
  .step-pkg .tier-table th[scope="row"] { padding: 0 0 8px; border: 0; background: none; font-size: .78rem; letter-spacing: .05em; }
  .step-pkg .tier-table td { position: relative; padding: 5px 0 5px 6.5rem; border: 0; background: none !important; font-size: .9rem; line-height: 1.45; }
  .step-pkg .tier-table td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 6rem; font-weight: 700; color: var(--navy); font-size: .8rem; }
  .step-pkg .tier-table-wrap { overflow: visible; }
}

@media (max-width: 560px) {
  .gd-nav { flex-wrap: wrap; }
  .gd-nav .btn { flex: 1 1 auto; justify-content: center; }
  .gd-pick .btn { width: 100%; justify-content: center; }
  .gd-recap-p { margin-left: 0; width: 100%; }
}