/* ============================================================
   /wedding-venue-time-calculator. Page chrome, article, and FAQ come
   from guides.css. The calculator band reuses the homepage's "Actual
   value calculator" look (charcoal panel, gold-soft accents, Inter,
   pill buttons; see app/Views/marketing/home.html .calculator-band).
   The band is dark in both color schemes, so its tokens don't flip.
   ============================================================ */

.tc-page {
    --tc-charcoal: #161311;
    --tc-gold-soft: #f0d49a;
    --tc-gold: #c99948;
    --tc-coral: #e8916f;
    --tc-on-dark: #ffffff;
    --tc-on-dark-muted: rgba(255, 255, 255, .74);
    --tc-panel: rgba(255, 255, 255, .06);
    --tc-panel-line: rgba(255, 255, 255, .14);
    --tc-input-bg: rgba(0, 0, 0, .22);
    --tc-input-line: rgba(255, 255, 255, .24);
    --tc-error: #ffb4a2;
    --tc-shadow: 0 24px 70px rgba(27, 21, 17, .16);
}

/* Several elements here set their own display; without this the JS's
   hidden toggles would silently do nothing. */
.tc-page [hidden] { display: none !important; }

.tc-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.tc-main { padding-bottom: 48px; }
.tc-hero { max-width: 780px; margin-bottom: 28px; }
.tc-sub {
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 0 14px;
    color: var(--ink);
}
@media (min-width: 768px) { .tc-sub { font-size: 1.35rem; } }
.tc-trust {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted);
}

/* ── Band ─────────────────────────────────────────────────── */
.tc-band {
    padding: clamp(18px, 4vw, 38px);
    border-radius: 8px;
    background: var(--tc-charcoal);
    color: var(--tc-on-dark);
    box-shadow: var(--tc-shadow);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    scroll-margin-top: 16px;
}
.tc-calc {
    display: grid;
    gap: 22px;
}
@media (min-width: 960px) {
    .tc-calc { grid-template-columns: 1.05fr .95fr; align-items: start; }
    .tc-col-results { position: sticky; top: 16px; }
}

.tc-step {
    padding: 20px;
    border: 1px solid var(--tc-panel-line);
    border-radius: 8px;
    background: var(--tc-panel);
}
.tc-step + .tc-step { margin-top: 18px; }
.tc-band .tc-step-title {
    margin: 0 0 16px;
    font-family: Inter, system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-gold-soft);
}
.tc-step-note { margin: -6px 0 16px; font-size: .92rem; color: var(--tc-on-dark-muted); }

/* ── Fields ───────────────────────────────────────────────── */
.tc-field { display: grid; gap: 6px; margin-bottom: 16px; }
.tc-field:last-child { margin-bottom: 0; }
.tc-field label { font-size: .88rem; font-weight: 700; color: var(--tc-on-dark-muted); }
.tc-band input[type="text"],
.tc-band input[type="email"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--tc-input-line);
    border-radius: 8px;
    background: var(--tc-input-bg);
    color: var(--tc-on-dark);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
}
.tc-band input::placeholder { color: rgba(255, 255, 255, .45); }
.tc-band input:focus {
    border-color: var(--tc-gold-soft);
    box-shadow: 0 0 0 3px rgba(240, 212, 154, .18);
}
.tc-band input[aria-invalid="true"] { border-color: var(--tc-error); }
.tc-input-prefix { position: relative; }
.tc-input-prefix span {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--tc-on-dark-muted); font-weight: 700; pointer-events: none;
}
.tc-band .tc-input-prefix input { padding-left: 30px; }
.tc-help { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--tc-on-dark-muted); }
.tc-field-error { margin: 0; font-size: .82rem; font-weight: 600; color: var(--tc-error); }

/* ── Task rows ────────────────────────────────────────────── */
.tc-tasks { display: grid; gap: 22px; }
.tc-module { display: grid; gap: 10px; }
.tc-module-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0;
    font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tc-on-dark);
}
.tc-module-name i { margin-right: 4px; color: var(--tc-gold-soft); font-size: 1rem; }
.tc-module-price { color: var(--tc-gold-soft); }
.tc-soon {
    padding: 2px 9px;
    border: 1px solid var(--tc-coral);
    border-radius: 999px;
    color: var(--tc-coral);
    font-size: .7rem;
    letter-spacing: .06em;
}
.tc-task {
    border: 1px solid var(--tc-panel-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .14);
    transition: border-color .15s ease, background .15s ease;
}
.tc-task.is-checked { border-color: rgba(240, 212, 154, .55); background: rgba(240, 212, 154, .06); }
.tc-task-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: start;
    padding: 14px;
    cursor: pointer;
}
.tc-task-check {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.tc-check-box {
    display: grid; place-items: center;
    width: 24px; height: 24px; margin-top: 1px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 6px;
    background: transparent;
    color: transparent;
    font-size: 13px;
    transition: background .15s ease, border-color .15s ease;
}
.tc-task-check:checked + .tc-check-box {
    background: var(--tc-gold-soft); border-color: var(--tc-gold-soft); color: #1f1712;
}
.tc-task-check:focus-visible + .tc-check-box {
    outline: 2px solid var(--tc-gold-soft); outline-offset: 2px;
}
.tc-task-text { display: grid; gap: 2px; min-width: 0; }
.tc-task-label { font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--tc-on-dark); }
.tc-task-tool { font-size: .82rem; color: var(--tc-on-dark-muted); }

.tc-task-body { padding: 0 14px 14px 50px; }
@media (max-width: 480px) { .tc-task-body { padding-left: 14px; } }
.tc-micro {
    margin: 0 0 12px;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--tc-gold-soft);
}
.tc-micro i { margin-right: 4px; }
.tc-field-inline { max-width: 220px; }
.tc-msg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tc-msg-grid .tc-field { margin-bottom: 0; }
.tc-msg-grid label { font-size: .78rem; }
.tc-converted { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: var(--tc-on-dark); }
.tc-mode-toggle {
    margin-top: 10px;
    padding: 6px 0;
    min-height: 32px;
    border: 0;
    background: none;
    color: var(--tc-gold-soft);
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tc-mode-toggle:focus-visible { outline: 2px solid var(--tc-gold-soft); outline-offset: 2px; }

/* ── Results ──────────────────────────────────────────────── */
.tc-results {
    padding: 22px;
    border: 1px solid var(--tc-panel-line);
    border-radius: 8px;
    background: var(--tc-panel);
}
.tc-results.is-filled { border-color: rgba(240, 212, 154, .45); }
.tc-stage { display: grid; }
.tc-stage > * { grid-area: 1 / 1; }
/* Reserve the filled state's height up front so neither swap shifts layout. */
.tc-stage { min-height: 300px; }
.tc-stage > .is-off, .tc-lines > .is-off { visibility: hidden; }
.tc-empty {
    display: grid; place-content: center; justify-items: center; gap: 10px;
    text-align: center; padding: 20px;
    color: var(--tc-on-dark-muted);
}
.tc-empty i { font-size: 1.6rem; color: var(--tc-gold-soft); }
.tc-empty p { margin: 0; max-width: 280px; font-size: 1rem; font-weight: 600; }
.tc-big {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--tc-on-dark);
}
.tc-big strong {
    display: block;
    margin: 4px 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(2.6rem, 9vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: var(--tc-gold-soft);
    font-variant-numeric: tabular-nums;
}
.tc-month { margin: 6px 0 16px; font-size: .92rem; color: var(--tc-on-dark-muted); }
.tc-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}
.tc-compare-col {
    padding: 12px 14px;
    border: 1px solid var(--tc-panel-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .2);
}
.tc-compare-col.is-after { border-color: rgba(240, 212, 154, .55); background: rgba(240, 212, 154, .08); }
.tc-compare-col p { margin: 0; }
.tc-compare-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tc-on-dark-muted); }
.tc-compare-big { margin-top: 4px !important; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--tc-on-dark); font-variant-numeric: tabular-nums; }
.tc-compare-big span:not(.tc-unit) { white-space: nowrap; }
.tc-compare-col.is-after .tc-compare-big { color: var(--tc-gold-soft); }
.tc-compare-sub { margin-top: 2px !important; font-size: .82rem; color: var(--tc-on-dark-muted); font-variant-numeric: tabular-nums; }
.tc-compare-arrow { color: var(--tc-gold-soft); }
.tc-unit { font-size: .78rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 400px) {
    .tc-compare { gap: 6px; }
    .tc-compare-col { padding: 10px; }
    .tc-compare-big { font-size: 1.15rem; }
}
.tc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tc-lines li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; line-height: 1.5; color: var(--tc-on-dark); }
.tc-lines i { margin-top: 4px; color: var(--tc-gold-soft); }
.tc-lines strong { color: var(--tc-gold-soft); font-variant-numeric: tabular-nums; }

/* ── CTAs ─────────────────────────────────────────────────── */
.tc-ctas { display: grid; gap: 12px; margin-top: 20px; }
.tc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 800; font-size: .95rem;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.tc-btn:hover:not(:disabled) { transform: translateY(-2px); }
.tc-btn:disabled { opacity: .5; cursor: not-allowed; }
.tc-btn:focus-visible { outline: 2px solid var(--tc-gold-soft); outline-offset: 3px; }
body.guide-page a.tc-btn-primary,
.tc-btn-primary {
    color: #1f1712;
    background: var(--tc-gold-soft);
    box-shadow: 0 14px 34px rgba(240, 212, 154, .2);
    white-space: normal;
    line-height: 1.25;
    padding-top: 10px; padding-bottom: 10px;
}
.tc-btn-gold { color: #1f1712; background: var(--tc-gold-soft); white-space: nowrap; }
.tc-btn-ghost {
    color: var(--tc-on-dark);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    font-size: .88rem;
    font-weight: 700;
}
.tc-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .tc-cta-row { grid-template-columns: 1fr; } }
.tc-status { margin: 0; font-size: .88rem; font-weight: 600; color: var(--tc-on-dark); }
.tc-status.is-error { color: var(--tc-error); }
.tc-status.is-success { color: var(--tc-gold-soft); }
.tc-band .tc-share-fallback { font-size: .85rem; font-weight: 400; }

.tc-email-form { display: grid; gap: 8px; padding-top: 4px; }
.tc-email-form > label { font-size: .88rem; font-weight: 700; color: var(--tc-on-dark-muted); }
.tc-email-row { display: flex; gap: 8px; }
.tc-email-row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .tc-email-row { flex-direction: column; } }
.tc-consent { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--tc-on-dark-muted); }
body.guide-page .tc-consent a { color: var(--tc-gold-soft); }

.tc-disclaimer {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--tc-panel-line);
    font-size: .8rem;
    line-height: 1.55;
    color: var(--tc-on-dark-muted);
}

/* ── How we calculate ─────────────────────────────────────── */
.tc-how {
    margin-top: 14px;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--tc-on-dark-muted);
}
.tc-how summary {
    min-height: 44px;
    display: flex; align-items: center;
    color: var(--tc-gold-soft);
    font-weight: 800;
    cursor: pointer;
}
.tc-how summary:focus-visible { outline: 2px solid var(--tc-gold-soft); outline-offset: 2px; }
.tc-how p { margin: 8px 0; }
.tc-how ul { list-style: none; margin: 8px 0; padding: 0; }
.tc-how li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 7px 0; border-bottom: 1px solid var(--tc-panel-line);
}
.tc-how li strong { color: var(--tc-on-dark); white-space: nowrap; }

/* ── Article + FAQ (below the fold) ───────────────────────── */
.tc-article { margin-top: 56px; content-visibility: auto; contain-intrinsic-size: auto 2400px; }
.tc-article h2:first-child { margin-top: 0; }
.tc-faq-item { padding: 14px 0; border-bottom: 1px solid var(--mist); }
.g-article .tc-faq-item h3 { margin: 0 0 6px; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 1.05rem; }
.tc-faq-item p { margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
.tc-bottom-cta { margin-top: 40px; }

/* ── Sticky summary footer ────────────────────────────────── */
.tc-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #241c18, var(--tc-charcoal));
    border-top: 3px solid var(--tc-gold-soft);
    box-shadow: 0 -4px 0 rgba(240, 212, 154, .12), 0 -18px 44px rgba(0, 0, 0, .35);
    color: var(--tc-on-dark);
    font-family: Inter, system-ui, sans-serif;
    animation: tc-sticky-in .45s cubic-bezier(.2, .9, .3, 1.25);
}
@keyframes tc-sticky-in {
    0% { transform: translateY(100%); }
    70% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.tc-sticky-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.tc-sticky-prompt, .tc-sticky-stats { margin: 0; line-height: 1.35; }
.tc-sticky-prompt { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; font-weight: 700; }
.tc-sticky-prompt i {
    display: grid; place-items: center; flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--tc-gold-soft); color: #1f1712; font-size: 1.1rem;
}
.tc-sticky-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 1rem; font-weight: 600; }
.tc-sticky-stats strong { color: var(--tc-gold-soft); font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tc-sticky-dot { color: var(--tc-on-dark-muted); font-size: 1.2rem; }
.tc-sticky-stats > span { white-space: nowrap; }
.tc-nowrap { white-space: nowrap; }
/* margin-left: auto keeps the buttons right-aligned when they wrap to a second row. */
.tc-sticky-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
body.guide-page a.tc-sticky-link {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border: 2px solid var(--tc-gold-soft); border-radius: 999px;
    color: var(--tc-gold-soft); font-size: .95rem; font-weight: 800;
    text-decoration: none; white-space: nowrap;
    transition: transform .2s ease;
}
/* Same lift as the .tc-btn buttons; the fill never changes on hover. */
body.guide-page a.tc-sticky-link:hover { transform: translateY(-2px); }
/* "Try the calculator" is the only action before they start -- solid gold. */
body.guide-page a.tc-sticky-link.is-primary { background: var(--tc-gold-soft); color: #1f1712; }
.tc-sticky-link:focus-visible { outline: 2px solid var(--tc-gold-soft); outline-offset: 3px; }
.tc-sticky .tc-sticky-cta { min-height: 48px; padding: 0 24px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 600px) {
    .tc-sticky { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
    .tc-sticky-inner { gap: 12px; }
    .tc-sticky-prompt { font-size: .92rem; gap: 10px; }
    .tc-sticky-prompt i { width: 34px; height: 34px; font-size: .95rem; }
    .tc-sticky .tc-sticky-cta { display: none; }
    .tc-sticky-stats { flex-direction: column; gap: 0; font-size: .9rem; flex: 1; min-width: 0; }
    /* Lets 'You could be losing' wrap above the amount instead of pushing the button off screen. */
    .tc-sticky-stats > span { white-space: normal; }
    .tc-sticky-stats strong { font-size: 1.3rem; }
    .tc-sticky-dot { display: none; }
    /* On phones it's the only action in either state, so always solid. */
    body.guide-page a.tc-sticky-link { background: var(--tc-gold-soft); color: #1f1712; padding: 0 16px; min-height: 44px; font-size: .88rem; }
    /* Not started: prompt on top, full-width button below, instead of a
       squeezed text column beside the button. */
    .tc-sticky:not(.is-started) .tc-sticky-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .tc-sticky:not(.is-started) .tc-sticky-actions { width: 100%; }
    .tc-sticky:not(.is-started) a.tc-sticky-link { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-btn, .tc-task, .tc-check-box { transition: none; }
    .tc-sticky { animation: none; }
    body.guide-page a.tc-sticky-link:hover { transform: none; }
    .tc-btn:hover:not(:disabled) { transform: none; }
}
