/* Confirm details (.conf-), Pricing (.cfg-, the optional last step), Book a call (.book-).
   Built on the tokens and components in shell.css. */

.conf-head h1, .cfg-head h1, .book-title {
  font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance;
}
.conf-head p, .cfg-head p { margin-top: 6px; color: var(--muted); text-wrap: pretty; }
/* Pricing: the lede says it is free and optional. */
.cfg-head p { margin-top: 8px; line-height: 1.55; }

/* ---------- Confirm details ---------- */

.conf { display: flex; flex-direction: column; gap: 16px; }
.conf-card { overflow: hidden; }

.conf-row {
  display: grid; grid-template-columns: 18px 104px minmax(0, 1fr); gap: 10px;
  align-items: start; padding: 9px 16px;
}
.conf-row + .conf-row { border-top: 1px solid var(--line); }
.conf-row.is-warn { background: linear-gradient(90deg, #F8F0E1 0%, #FBF6EC 55%, rgba(255, 255, 255, 0) 100%); }
.conf-row__ico { display: flex; padding-top: 9.5px; }
.conf-row__ico .ico { width: 18px; height: 18px; }
.conf-row__label { padding-top: 7px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.conf-row__label label { cursor: pointer; }
.conf-row__body { min-width: 0; display: grid; gap: 7px; }

.conf-logo { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.conf-logo__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.conf-logo__mark:empty { border-radius: 50%; background: var(--line); }
.conf-logo__mark svg { display: block; width: 36px; height: 36px; }
.conf-logo__q { color: var(--ink); font-size: var(--fs-sm); }
.conf-logo__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.conf-logo__btns .btn { min-height: 30px; padding: 4px 12px; }

.conf-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: -4px; }
.conf-swatch {
  position: relative; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
.conf-swatch__dot {
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .15s;
}
.conf-swatch:hover .conf-swatch__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-strong); }
.conf-swatch:focus-within { outline: 2px solid var(--navy); outline-offset: 0; }
.conf-edit { margin-left: 6px; font-size: var(--fs-sm); }

.conf-about { resize: vertical; min-height: 64px; padding: 7px 12px; font-size: var(--fs-sm); line-height: 1.45; }

.conf-note { padding-top: 7px; font-size: var(--fs-sm); color: var(--gold-text); font-weight: 500; }
.conf-row:not(.is-warn) .conf-note { color: var(--muted); font-weight: 400; }
/* "I toned these down a little...": the color safety step changed their colors noticeably. */
.conf-toned { margin-top: 10px; padding-top: 0; }
.conf-phone { max-width: 240px; }
.conf-card .input:not(textarea) { padding-block: 7px; }

.conf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }


/* ---------- Pricing ---------- */

.cfg {
  display: flex; flex-direction: column;
  height: 100%; min-height: 420px;
  overflow: hidden;
}
/* Header and add-ons scroll together under a soft fade; the footer stays at the bottom. */
.cfg-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 22px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
}
.cfg-head { padding: 18px 0 12px; }

.cfg-base {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  border-radius: var(--radius-sm); background: var(--navy); color: #C9CDD4;
}
.cfg-base > div { flex: 1; min-width: 0; }
.cfg-base strong { display: block; color: #fff; font-size: 15px; }
.cfg-base span { font-size: var(--fs-sm); }
.cfg-base .cfg-base__tag { flex: none; color: #fff; font-weight: 600; font-size: var(--fs-md); }

/* What I'd suggest and what to do with it, right above the add-ons. */
.cfg-suggest { margin: 14px 0 10px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.cfg-list { display: grid; gap: 8px; }
.cfg-more { display: block; margin: 10px 0 0; font-size: var(--fs-sm); color: var(--text); }
.cfg-also { margin-top: 10px; }
.cfg-also[hidden] { display: none; }

.cfg-item {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px;
  align-items: start; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.cfg-item:hover { border-color: var(--line-strong); }
/* Small phones: the price goes under the name, so the words get the card's width. */
@media (max-width: 480px) {
  .cfg-item { grid-template-columns: 20px minmax(0, 1fr); row-gap: 4px; }
  .cfg-item__box { grid-column: 1; grid-row: 1; }
  .cfg-item__text { grid-column: 2; grid-row: 1; }
  .cfg-item__price { grid-column: 2; grid-row: 2; }
}
.cfg-item:has(:checked) { border-color: var(--navy); }
.cfg-item__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cfg-item__box {
  position: relative; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface);
  transition: background-color .15s, border-color .15s, border-radius .15s;
}
.cfg-item__box::after {
  content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .15s;
}
.cfg-item__input:checked + .cfg-item__box { background: var(--navy); border-color: var(--navy); border-radius: 50%; }
.cfg-item__input:checked + .cfg-item__box::after { transform: rotate(45deg) scale(1); }
.cfg-item__input:focus-visible + .cfg-item__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.cfg-item__text strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.cfg-item__text > span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.cfg-item__text .cfg-tag {
  display: inline-block; margin-top: 6px; padding: 1px 9px;
  border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-text);
  font-size: 11.5px; font-weight: 600;
}
/* A tag that opens its finding in the Security check. Its own block, so it never stretches the row. */
.cfg-item__text a.cfg-tag--link { display: table; text-decoration: none; transition: background-color .2s ease; }
.cfg-item__text a.cfg-tag--link:hover { text-decoration: underline; text-underline-offset: 2px; }
.cfg-item__text a.cfg-tag--link:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cfg-item__price { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cfg-item__text .cfg-hint { margin-top: 4px; font-size: var(--fs-xs); color: var(--green); }
.cfg-item:not(:has(:checked)) .cfg-hint { color: var(--muted); }

/* The estimate stays visible but quiet: the site is the hero, not the price. */
.cfg-foot { flex: none; padding: 12px 22px 18px; border-top: 1px solid var(--line); }
.cfg-total { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cfg-total__num { color: var(--ink); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.cfg-total__label { color: var(--muted); }
.cfg-total__num strong { font-weight: 650; }
.cfg-total__num strong, .cfg-total__num [data-monthly] { display: inline-block; }
.cfg-total__num.is-tick strong, .cfg-total__num.is-tick [data-monthly] { animation: cfg-tick .3s ease; }
@keyframes cfg-tick { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.cfg-breakdown {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: var(--radius-sm); background: #F7F8F5; font-size: var(--fs-sm);
}
.cfg-breakdown[hidden] { display: none; }
.cfg-breakdown dl { display: grid; gap: 4px; margin: 0; }
.cfg-breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.cfg-breakdown dt { color: var(--text); }
.cfg-breakdown dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-breakdown__note { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.cfg-foot__note { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; text-align: center; text-wrap: pretty; }

/* The one action at the foot: ask for a call about this build, send it to Tim too, or "Sent". */
.cfg-act { margin-top: 14px; }
.cfg-send { display: grid; gap: 10px; }
.cfg-sent {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px;
  border-radius: var(--radius-sm); background: var(--green-soft);
  color: var(--text); line-height: 1.45; text-wrap: pretty; animation: rise .3s ease both;
}
.cfg-sent:focus { outline: none; }
.cfg-sent .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.cfg-sent strong { color: var(--ink); font-weight: 600; }


/* ---------- Book a call ---------- */

.book { display: flex; flex-direction: column; gap: 16px; }
.book h2 { font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.01em; }


.book-agenda { padding: 0 4px; }
.book-agenda ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.book-agenda li { position: relative; padding-left: 16px; color: var(--ink); line-height: 1.4; }
.book-agenda li::before {
  content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--line-strong);
}
.book-agenda p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); text-wrap: pretty; }

.book-call { padding: 16px 20px 18px; }









.book-done {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border-radius: var(--radius-sm); background: var(--green-soft); animation: rise .35s ease both;
}
.book-done:focus { outline: none; }
.book-done > .ico { flex: none; width: 22px; height: 22px; }
.book-done__title { color: var(--ink); font-weight: 600; font-size: 15px; text-wrap: pretty; }
.book-done p + p { margin-top: 4px; font-size: var(--fs-sm); }
.book-done .link { margin-top: 10px; font-size: var(--fs-sm); }


.book-quiet { display: grid; gap: 4px; text-align: center; font-size: var(--fs-sm); color: var(--muted); text-wrap: balance; }



/* ---------- Small screens ---------- */

/* A narrower left column (1280px laptops): labels sit above their fields so nothing wraps awkwardly. */
@media (max-width: 1360px) {
  .conf-row { grid-template-columns: 18px minmax(0, 1fr); row-gap: 6px; padding-block: 10px; }
  .conf-row__ico { padding-top: 1px; }
  .conf-row__label, .conf-note { padding-top: 0; }
  .conf-row__body { grid-column: 2; }
}
@media (max-width: 900px) {
  .cfg { height: auto; min-height: 0; }
  .cfg-scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 8px; }
}


/* Pricing fills its column; no extra breathing room is needed under the card. */
@media (min-width: 1181px) { body[data-route="configure"] .panel { padding-bottom: 4px; } }

/* The questions carried over from the progress screen, and how the site should feel. */
.conf-q { margin: 1px 0 8px; font-size: var(--fs-sm); color: var(--text); line-height: 1.45; }
.conf-hint { margin-left: 4px; font-size: var(--fs-xs); color: var(--muted); }
.conf-other { margin-top: 8px; max-width: 300px; padding: 7px 12px; font-size: var(--fs-sm); }
.conf-other[hidden] { display: none; }
.conf-row .chips { gap: 6px; }
.conf-row .chip { padding: 4px 11px; font-size: 12.5px; }

/* Their own logo on Confirm, which may be wider than the round sample mark. */
.conf-logo__mark:has(img) { width: auto; max-width: 160px; }
.conf-logo__mark img { display: block; width: auto; height: 36px; max-width: 160px; object-fit: contain; }
.cfg-item__price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* The card fills the column below the "Step 4 of 4" line, not the whole column, so its footer is
   never cut off at the bottom. */
@media (min-width: 1181px) {
  body[data-route="configure"] .panel { display: flex; flex-direction: column; }
  body[data-route="configure"] .panel > .cfg { flex: 1 1 auto; height: auto; min-height: 0; }
}
