/* Invitation card with a gold-foil edge around the quote checker */
.foil {
  position: relative;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--brand);
  padding: 6px;
}
.foil::before,
.foil::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--brand);
  pointer-events: none;
}
.foil::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.foil::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Quote A, B, C in one row; result card matches the form height */
.quote-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 480px) {
  .quote-row { grid-template-columns: 1fr; }
}
.tool.foil { align-items: stretch; }
.tool.foil .tool__result {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.tool.foil .tool__result-body { flex: 1; }

.quote-row .field input { min-width: 80px; }
#result-quotes li span { white-space: normal; }

/* Castle venue cards: same height */
.castle-cards [class*="card"] { min-height: 150px; }

/* Signature: planner cost scale */
.cost-scale {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cost-row {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr minmax(84px, auto);
  align-items: center;
  gap: 14px;
}
.cost-row__label { font-weight: 600; color: var(--ink); }
.cost-row__track {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cost-row__bar {
  display: block;
  height: 100%;
  background: var(--brand);
  opacity: 0.45;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}
.cost-row__span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  border-left: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  background: repeating-linear-gradient(90deg, var(--brand) 0 2px, transparent 2px 8px);
  opacity: 0.5;
}
.cost-row__value { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.cost-row.is-active .cost-row__bar { opacity: 1; }
.cost-row.is-active .cost-row__label {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.cost-row--range { padding-top: 10px; border-top: 1px dashed var(--border); }
.cost-row--range .cost-row__label { color: var(--muted); font-weight: 500; }

@media (max-width: 560px) {
  .cost-row { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .cost-row__track { grid-column: 1 / -1; grid-row: 2; }
}