/*
 * The online valuation's two pages, from the mockups in new_stuff/:
 *   - the quiz and what it gives you (Free Valuation page-html/Main.dc.html),
 *     website/valuation.html;
 *   - the report with its matching clients (Valuation result-html/
 *     Results.dc.html), website/account/valuation.html.
 * The mockups' navy and red, not the site's, scoped to .val so the quiz's
 * own rules in site.css pick them up through the tokens.
 */

.val {
    --brand: #e2231a;
    --brand-600: #c81e16;
    --brand-50: #fff7f6;
    --brand-100: #f6d3d1;
    --ink: #14213a;
    --muted: #46536a;
    --line: #e3e6ec;
    --line-strong: #c9cfda;
    --bg: #f6f8fb;
    --val-blue: #1b4e9b;
    --val-blue-50: #dce5f3;
    --val-blue-text: #e4ebf7;
    --val-body: #2f3b52;

    color: var(--ink);
    line-height: 1.5;
}
/* :where() keeps these at one class, so a link styled as a button wins. */
.val :where(a:not(.val-btn):not(.btn)) { color: var(--val-blue); }
.val :where(a:not(.val-btn):not(.btn)):hover { color: var(--ink); }
.val :is(a, button, input):focus-visible { outline: 3px solid var(--val-blue); outline-offset: 2px; }

/* In a .container, so the page lines up with the navbar. */
.val-wrap { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 48px; }

.val-kicker { margin: 0; color: var(--brand-600); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.val-h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.val-lead { margin: 0; font-size: 18px; color: var(--muted); }

.val-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px; border: 0; border-radius: 10px;
    font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.val-btn--red { background: var(--brand-600); color: #fff; }
.val-btn--red:hover { background: #a81912; color: #fff; }
.val-btn--white { background: #fff; color: var(--val-blue); padding: 0 20px; }
.val-btn--white:hover { background: var(--val-blue-50); color: var(--ink); }

/* ---- the hero ------------------------------------------------------------ */

.val-hero { display: flex; flex-direction: column; gap: 28px; }
.val-intro { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.val-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.val-intro p { margin: 0; font-size: 18px; color: var(--muted); max-width: 720px; }
.val-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.val-chips li {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: #fff; border: 1px solid var(--val-blue-50); border-radius: 999px; font-weight: 700; font-size: 15px;
}
.val-chips svg { flex: none; }

.val-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.val-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ---- the quiz's card (the quiz itself is site.css's .quiz) ---------------- */

.val .quiz.val-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.val .quiz-progress-text { font-size: 14px; color: var(--muted); }
.val .quiz-progress-bar { background: #edf0f4; }
.val .quiz-title { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 18px; }
.val .quiz-intro { margin: 0; color: var(--val-body); }
.val .quiz-disclaimer { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.val .quiz-disclaimer.has-error { border-color: var(--brand-600); }
.val .quiz-disclaimer-title { margin-bottom: 8px; font-weight: 700; }
.val .quiz-agree { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin: 0; font-size: 15px; color: var(--val-body); cursor: pointer; }
.val .quiz-agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--val-blue); cursor: pointer; }
.val .quiz-agree-error { margin: 12px 0 0; color: var(--brand-600); font-weight: 600; font-size: 15px; }
.val .quiz-agree-error[hidden] { display: none; }
.val .quiz-nav { border-top-color: var(--line); }
.val .quiz-nav .btn-brand {
    --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-bg: #a81912; --bs-btn-hover-border-color: #a81912;
    --bs-btn-active-bg: #a81912; --bs-btn-active-border-color: #a81912;
    min-height: 48px; padding: 0 28px; border-radius: 10px; font-weight: 700; font-size: 16px;
    display: inline-flex; align-items: center; gap: 8px;
}
.val .quiz-nav .btn-outline-ink { min-height: 48px; border-radius: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.val .quiz-card { border-radius: 12px; }
.val .btn-check:checked + .quiz-card { box-shadow: 0 0 0 3px var(--brand-100); }

/* ---- prefer a visit ----------------------------------------------------- */

.val-visit {
    background: var(--val-blue); color: #fff; border-radius: 16px; padding: 24px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.val-visit > div { flex: 1 1 280px; min-width: 0; }
.val-visit h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.val-visit p { margin: 0; color: var(--val-blue-text); }

/* ---- the sample report -------------------------------------------------- */

.val-sample {
    flex: 1 1 400px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.val-sample-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.val-sample-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.val-sample-head p { margin: 0; font-size: 14px; color: var(--muted); }
.val-sample-body { max-width: 460px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.val-sample-page { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 1040 / 1472; background: #fff; }
.val-sample-page img { display: block; width: 100%; height: 100%; }
.val-sample-title { margin: 0; font-weight: 700; }
.val-sample-desc { margin: 2px 0 0; font-size: 15px; color: var(--muted); min-height: 45px; }
.val-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.val-thumbs button {
    padding: 0; min-height: 44px; background: #fff; cursor: pointer; overflow: hidden;
    border-radius: 6px; border: 2px solid var(--line);
}
.val-thumbs button[aria-pressed="true"] { border-color: var(--brand); }
.val-thumbs img { display: block; width: 100%; aspect-ratio: 1040 / 1472; }

/* ---- matching clients (an example) -------------------------------------- */

.val-matching { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.val-matching-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.val-matching-card { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.val-matching-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.val-matching-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.val-tag { margin: 0; padding: 2px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.val-matches { list-style: none; margin: 0; padding: 0; }
.val-matches li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.val-matches li > div { flex: 1 1 240px; min-width: 0; }
.val-matches p { margin: 0; }
.val-matches .val-match-what { font-weight: 700; }
.val-matches .val-match-budget { font-size: 15px; color: var(--muted); }
.val-matches .val-match-score { padding: 3px 10px; background: var(--val-blue-50); border-radius: 999px; font-size: 14px; font-weight: 700; }
.val-matches .val-match-score--good { background: var(--bg); border: 1px solid var(--line); }
.val-matching-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---- not an AI prompt ---------------------------------------------------- */

.val-compare-head { max-width: 760px; }
.val-compare-head .val-h2 { margin-bottom: 8px; }
.val-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; margin-top: 24px; }
.val-compare-col {
    grid-row: span 7; display: grid; grid-template-rows: subgrid;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 24px 12px; margin-bottom: 24px;
}
.val-compare-col h3 { margin: 0; padding: 16px 0 12px; font-size: 20px; font-weight: 800; color: var(--muted); }
.val-compare-col > div { padding: 12px 0; border-top: 1px solid var(--line); }
.val-compare-col p { margin: 0; }
.val-compare-col .val-compare-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.val-compare-col .val-compare-value { margin-top: 2px; }
.val-compare-col--ours { background: var(--brand-50); border: 2px solid var(--brand); padding: 7px 23px 11px; }
.val-compare-col--ours h3 { color: var(--brand-600); }
.val-compare-col--ours > div { border-top-color: var(--brand-100); }
.val-compare-col--ours .val-compare-label { color: #a81912; }
.val-compare-col--ours .val-compare-value { font-weight: 600; }

/* ---- the bad news -------------------------------------------------------- */

.val-honest { background: var(--val-blue); color: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.val-honest-head { max-width: 760px; }
.val-honest-head .val-kicker { color: var(--val-blue-50); margin-bottom: 8px; }
.val-honest-head .val-h2 { margin-bottom: 8px; }
.val-honest-head p:last-child { margin: 0; font-size: 18px; color: var(--val-blue-text); }
.val-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; border-top: 1px solid #5f86c0; padding-top: 24px; }
.val-figures p { margin: 0; }
.val-figure { font-size: 30px; line-height: 1.15; font-weight: 800; }
.val-figure-what { margin-top: 4px !important; color: var(--val-blue-text); }
.val-honest .val-btn--white { padding: 0 24px; }

.val-about { margin: 0; font-size: 14px; color: var(--muted); max-width: 860px; }

/* =========================================================================
   The result: the report and its matching clients
   ========================================================================= */

.val-result { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.val-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.val-toolbar .val-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }
.val-toolbar .val-back:hover { color: var(--val-blue); }
.val-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.val-tool {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
    font-size: 15px; font-weight: 600; text-decoration: none;
}
.val .val-tool:hover { border-color: var(--ink); color: var(--ink); }

.val-sell {
    background: var(--val-blue); color: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 32px);
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
}
.val-sell-count { margin: 0; flex: none; font-size: clamp(72px, 9vw, 104px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.val-sell-text { flex: 999 1 380px; min-width: 0; }
.val-sell-text h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.val-sell-text p { margin: 0; font-size: 17px; color: var(--val-blue-text); }
.val-sell-action { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.val-sell-action form { margin: 0; }
.val-sell-button {
    width: 100%; min-height: 60px; padding: 0 24px; background: var(--brand); color: #fff; border: 0; border-radius: 12px;
    font-family: inherit; font-size: 20px; font-weight: 800; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.val-sell-button:hover { background: var(--brand-600); }
.val-sell-button:disabled { opacity: .8; cursor: progress; }
.val-sell .val-sell-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.val-sell-done { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; }
.val-sell-done[hidden] { display: none; }
.val-sell-done p { margin: 0; }
.val-sell-done p:first-child { font-size: 18px; font-weight: 800; }
.val-sell-done p + p { margin-top: 2px; font-size: 15px; color: var(--val-body); }

.val-report { background: #e6e9ee; border-radius: 16px 16px 0 0; padding: clamp(12px, 2.5vw, 24px) clamp(12px, 2.5vw, 24px) 0; overflow: hidden; }
.val-report .vreport { background: transparent; padding-top: 0; border-radius: 0; }

/* The thank-you once they ask to sell. */
.val-modal .modal-content { border: 0; border-radius: 16px; padding: 12px 8px 8px; color: var(--ink); font-family: inherit; }
.val-modal .modal-body { text-align: center; padding: 20px 24px 8px; }
.val-modal-icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
    border-radius: 50%; background: var(--val-blue-50); color: var(--val-blue); font-size: 30px;
}
.val-modal h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.val-modal p { margin: 0; font-size: 17px; color: var(--val-body); }
.val-modal .val-modal-contact { margin-top: 12px; font-size: 15px; color: var(--muted); }
.val-modal .modal-footer { border: 0; justify-content: center; padding: 12px 24px 20px; }
.val-modal .val-btn { min-width: 160px; }

@media print {
    .val-toolbar, .val-sell, .val-modal { display: none !important; }
    .val-result { padding: 0; max-width: none; margin: 0; }
    .val-report { background: none; padding: 0; border-radius: 0; }
}
