/* Build-your-own quote flow: shared by services.html and index.html */
/* ===== Build-your-own quote flow ===== */
.qf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sv-quoteflow .sv-inner { gap: clamp(1rem, 2.5vh, 1.75rem); }
.qf-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.qf-progress-bar { height: 100%; width: 20%; background: #64C8FF; border-radius: 999px; transition: width .3s ease; }
.qf-stepcount { margin: 0; font-family: var(--font-code); font-size: 0.95rem; letter-spacing: 0.08em; color: var(--ink-muted); }
.qf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(1.25rem, 3vh, 2rem); }
.qf-step[hidden], .qf-choices[hidden], .qf-note[hidden] { display: none; }
.qf-h { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); margin: 0 0 clamp(1.25rem, 3vh, 2rem); outline: none; }
.qf-choices { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.2vw, 1.1rem); }
.qf-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qf-card { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: clamp(1.1rem, 1.6vw, 1.5rem); padding-right: 3.25rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12); background: rgba(16,16,22,0.78); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.qf-card--big { padding: clamp(1.75rem, 3vw, 3rem); padding-right: 4rem; min-height: clamp(11rem, 26vh, 16rem); justify-content: flex-end; }
.qf-card:hover { border-color: rgba(100,200,255,0.5); }
.qf-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-card::after { content: ""; position: absolute; top: 1.15rem; right: 1.15rem; width: 1.5rem; height: 1.5rem; border-radius: 8px; border: 2px solid rgba(255,255,255,0.35); }
.qf-card:has(input[type=radio])::after { border-radius: 999px; }
.qf-card:has(input:checked) { border-color: #64C8FF; background: rgba(100,200,255,0.12); }
.qf-card:has(input:checked)::after { background: #64C8FF; border-color: #64C8FF; content: "\2713"; color: #050508; font-weight: 900; font-size: 1rem; line-height: 1.35rem; text-align: center; }
.qf-card:has(input:focus-visible) { outline: 3px solid #64C8FF; outline-offset: 3px; }
.qf-card-name { font-family: var(--font-display); font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 800; line-height: 1.2; color: var(--ink); }
.qf-card--big .qf-card-name { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.02em; }
.qf-card-desc { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.45; color: var(--ink-muted); }
.qf-card--big .qf-card-desc { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.qf-card-price, .qf-price-inline { font-family: var(--font-display); font-weight: 800; color: #64C8FF; }
.qf-card-price { margin-top: auto; padding-top: 0.25rem; font-size: 1.15rem; }
.qf-field input, .qf-field textarea { font: inherit; font-weight: 500; color: var(--ink); background: rgba(16,16,22,0.9); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 0.8rem 1rem; }
.qf-field input:focus-visible, .qf-field textarea:focus-visible { outline: 3px solid #64C8FF; outline-offset: 2px; }
.qf-group { clear: both; display: flex; flex-direction: column; gap: 0.75rem; }
.qf-group-label { margin: 0; font-family: var(--font-code); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: #64C8FF; }
.qf-range { clear: both; margin: 0; font-family: var(--font-display); font-size: clamp(3.25rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.qf-monthly { margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; color: #64C8FF; }
.qf-note { margin: 0; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-muted); }
.qf-summary { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qf-summary li { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(100,200,255,0.35); background: rgba(100,200,255,0.08); font-size: 1rem; font-weight: 600; color: var(--ink); }
.qf-fields { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.qf-field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.qf-field input, .qf-field textarea { font-size: 1.125rem; }
.qf-field--wide { grid-column: 1 / -1; }
.qf-error { margin: 0; font-size: 1.05rem; font-weight: 600; color: #fda4af; }
.qf-error a { color: #fda4af; }
.qf-nav { display: flex; gap: 1rem; justify-content: space-between; margin-top: clamp(1.25rem, 3vh, 2.25rem); }
.qf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.75rem; padding: 1rem 1.75rem; border-radius: 16px; font: inherit; font-family: var(--font-display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.qf-btn[hidden] { display: none; }
.qf-btn--primary { margin-left: auto; background: #64C8FF; color: #050508; border: 0; }
.qf-btn--primary:hover { background: #8fd8ff; }
.qf-btn--primary:disabled { opacity: 0.6; cursor: progress; }
.qf-btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,0.25); }
.qf-btn:focus-visible { outline: 3px solid #64C8FF; outline-offset: 3px; }
.qf-success { display: flex; flex-direction: column; gap: 1rem; outline: none; }
.qf-success[hidden] { display: none; }
@media (max-width: 1100px) { .qf-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
    .qf-choices, .qf-choices--2, .qf-fields { grid-template-columns: 1fr; }
    .qf-card--big { min-height: 0; }
    .qf-nav { position: sticky; bottom: 0; z-index: 5; padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, #050508 70%, rgba(5,5,8,0)); }
    .qf-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .qf-progress-bar, .qf-card, .qf-btn { transition: none; } }
.qf-step[data-step="2"] > .qf-group-label { clear: both; }
.qf-meta { display: flex; align-items: baseline; gap: 1rem; }
.qf-saved { font-family: var(--font-code); font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-muted); opacity: 0; transition: opacity .3s ease; }
.qf-saved.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .qf-saved { transition: none; } }
/* ===== Live mini site preview ===== */
.qf-layout { --qfp-accent: #64C8FF; --qfp-line: rgba(255,255,255,0.14); --qfp-fill: rgba(255,255,255,0.07); --qfp-fill-2: rgba(255,255,255,0.12); --qfp-ink: var(--ink); --qfp-muted: var(--ink-muted); }
.qf-preview { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.qf-layout:has(form[hidden]) .qf-preview { display: none; }
.qfp-window { border: 1px solid var(--qfp-line); border-radius: 16px; overflow: hidden; background: rgba(10,10,14,0.85); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.qfp-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--qfp-line); background: rgba(255,255,255,0.03); }
.qfp-bar > i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--qfp-fill-2); }
.qfp-url { flex: 1; margin-left: 0.5rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--qfp-fill); font-family: var(--font-code); font-size: 0.75rem; color: var(--qfp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qfp-body { display: flex; flex-direction: column; }
.qfp-tabs { display: flex; gap: 0.25rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--qfp-line); overflow-x: auto; scrollbar-width: none; min-height: 2.6rem; }
.qfp-tabs::-webkit-scrollbar { display: none; }
.qfp-tab { flex: 0 0 auto; padding: 0.3rem 0.65rem; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--qfp-muted); cursor: pointer; transition: color .15s ease, background-color .15s ease, opacity .2s ease, transform .2s ease; }
.qfp-tab:hover { color: var(--qfp-ink); background: var(--qfp-fill); }
.qfp-tab[aria-pressed="true"] { color: var(--qfp-ink); background: var(--qfp-fill-2); }
.qfp-tab--cta { margin-left: auto; border-color: var(--qfp-accent); color: var(--qfp-accent); }
.qfp-tab:focus-visible { outline: 2px solid var(--qfp-accent); outline-offset: 1px; }
.qfp-tab.qfp-out { opacity: 0; transform: scale(0.9); pointer-events: none; }
.qfp-page { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.85rem; min-height: 19rem; max-height: 26rem; overflow: hidden; }
.qfp-cap { margin: 0; font-family: var(--font-code); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--qfp-muted); text-align: center; }
/* wireframe blocks */
.qfp-b { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.qfp-b > i { display: block; border-radius: 6px; background: var(--qfp-fill); }
.qfp-lab { width: 100%; font-size: 0.75rem; font-weight: 700; color: var(--qfp-muted); }
.qfp-title .qfp-lab { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--qfp-ink); }
.qfp-note .qfp-lab { font-weight: 500; text-align: center; padding: 2rem 0; }
.qfp-hero { flex-direction: column; padding: 0.9rem; border-radius: 10px; background: var(--qfp-fill); }
.qfp-hero > i { background: var(--qfp-fill-2); }
.qfp-h1 { width: 70%; height: 0.9rem; }
.qfp-ln { width: 100%; height: 0.45rem; }
.qfp-hero .qfp-ln:last-of-type, .qfp-lines .qfp-ln:last-child { width: 60%; }
.qfp-btn { width: 5rem; height: 1.3rem; border-radius: 6px; background: var(--qfp-accent) !important; opacity: 0.85; }
.qfp-button .qfp-lab, .qfp-paybtn { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0.25rem 0.8rem; border-radius: 6px; background: var(--qfp-accent); color: #050508; font-size: 0.75rem; font-weight: 800; opacity: 1; }
.qfp-cards > i, .qfp-articles > i { flex: 1 1 28%; height: 3.4rem; }
.qfp-articles > i { height: 4rem; }
.qfp-listings > i { flex: 1 1 28%; height: 3.6rem; background: linear-gradient(var(--qfp-fill-2) 0 62%, var(--qfp-fill) 62%); }
.qfp-grid > i { flex: 1 1 28%; height: 2.8rem; }
.qfp-media > i { width: 100%; height: 4.5rem; }
.qfp-field { width: 100%; height: 1.35rem; border: 1px solid var(--qfp-line); background: transparent !important; }
.qfp-search .qfp-field { border-color: var(--qfp-accent); }
.qfp-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.qfp-day { height: 1.25rem; }
.qfp-calendar .qfp-day:nth-child(9), .qfp-calendar .qfp-day:nth-child(16) { background: var(--qfp-accent); opacity: 0.8; }
.qfp-checkout { flex-direction: column; padding: 0.75rem; border: 1px dashed var(--qfp-line); border-radius: 10px; }
.qfp-paybtn { align-self: flex-start; }
.qfp-threads { flex-direction: column; gap: 0.35rem; }
.qfp-calltext { margin-top: auto; justify-content: flex-end; align-items: center; }
.qfp-calltext .qfp-lab { width: auto; flex: 1; }
.qfp-pill { width: 2.6rem; height: 1.35rem; border-radius: 999px !important; background: var(--qfp-accent) !important; opacity: 0.85; }
.qfp-in { animation: qfp-in .28s ease both; }
@keyframes qfp-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
    .qf-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
    .qf-preview { position: sticky; top: calc(var(--header-h, 4.5rem) + 1rem); }
}
@media (max-width: 999px) {
    .qf-layout { display: flex; flex-direction: column; gap: 1rem; }
    .qf-preview { order: -1; }
    .qfp-page { min-height: 9.5rem; max-height: 9.5rem; padding: 0.6rem; gap: 0.45rem; }
    .qfp-cap { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qfp-in { animation: none; } .qfp-tab { transition: none; } }
/* ===== Compact add-on rows + roomier preview ===== */
.qf-step[data-step="2"] .qf-choices { grid-template-columns: 1fr; gap: 0.55rem; }
.qf-step[data-type="Web app"] .qf-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qf-card--row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem; row-gap: 0.35rem; padding: 0.75rem 3.1rem 0.75rem 1.1rem; gap: 0.35rem 0.5rem; }
.qf-card--row::after { top: 0.85rem; }
.qf-row-pick { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.75rem; min-width: 0; cursor: pointer; }
.qf-row-pick::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole card selects */
.qf-card--row .qf-card-name { font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
.qf-card--row .qf-card-price { margin: 0; padding: 0; font-size: 0.95rem; white-space: nowrap; }
.qf-exp { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-muted); cursor: pointer; }
.qf-exp:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.qf-exp:focus-visible { outline: 2px solid #64C8FF; outline-offset: 2px; }
.qf-chev { width: 0.55em; height: 0.55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: 0.75; transition: transform .2s ease; }
.qf-exp[aria-expanded="true"] .qf-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.qf-card--row .qf-card-desc { grid-column: 1 / -1; position: relative; z-index: 1; margin: 0; font-size: 0.95rem; line-height: 1.45; cursor: default; }
.qf-card--row .qf-card-desc[hidden] { display: none; }
/* preview tabs: smaller, wrap to more rows instead of clipping */
.qfp-tabs { flex-wrap: wrap; overflow: visible; row-gap: 0.25rem; }
.qfp-tab { font-size: 0.74rem; padding: 0.25rem 0.5rem; }
@media (min-width: 1000px) {
    .qf-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .qfp-page { min-height: clamp(18rem, calc(100vh - 22rem), 34rem); max-height: clamp(18rem, calc(100vh - 22rem), 34rem); }
}
@media (max-width: 699px) {
    .qf-step[data-type="Web app"] .qf-choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .qf-chev { transition: none; } }
.qf-step[data-step="2"] .qf-h { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.qf-step[data-type="Web app"] .qf-card--row { padding: 0.55rem 2.6rem 0.55rem 0.9rem; }
.qf-step[data-type="Web app"] .qf-card--row::after { top: 0.6rem; }
.qf-step[data-type="Web app"] .qf-card--row .qf-card-name { font-size: 0.98rem; line-height: 1.25; }
.qf-step[data-type="Web app"] .qf-card--row .qf-card-price { font-size: 0.85rem; }
.qf-step[data-type="Web app"] .qf-choices { gap: 0.45rem; }
/* the drawn checkbox (card ::after) must not swallow clicks; the real input sits exactly on it */
.qf-card--row::after { pointer-events: none; z-index: 3; }
.qf-card--row input { top: 0.85rem; right: 1.15rem; left: auto; width: 1.5rem; height: 1.5rem; margin: 0; z-index: 2; cursor: pointer; }
.qf-step[data-type="Web app"] .qf-card--row input { top: 0.6rem; }
.qf-row-pick > span { position: relative; z-index: 1; }
/* forum thread list: avatar dot + title line + reply count */
.qfp-thread { position: relative; height: 2.1rem; border-radius: 8px; background: var(--qfp-fill, rgba(255,255,255,0.06)); }
.qfp-thread::before { content: ""; position: absolute; left: 0.55rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -0.55rem; border-radius: 50%; background: rgba(255,255,255,0.18); }
.qfp-thread::after { content: ""; position: absolute; left: 2.1rem; right: 3rem; top: 50%; height: 0.4rem; margin-top: -0.2rem; border-radius: 4px; background: rgba(255,255,255,0.14); }
/* Step 1 (product choice) and the estimate step use the full width; the preview shows from step 2 on */
@media (min-width: 1000px) {
    .qf-layout[data-step="1"] { grid-template-columns: minmax(0, 1fr); }
}
.qf-layout[data-step="1"] .qf-preview { display: none; }
.qf-step[data-step="4"] .qf-range { font-size: clamp(2.75rem, 5.5vw, 5rem); }
/* No preview (web app, or nothing picked yet): the form takes the full width */
.qf-layout[data-preview="off"] .qf-preview { display: none; }
@media (min-width: 1000px) {
    .qf-layout[data-preview="off"] { grid-template-columns: minmax(0, 1fr); }
    .qf-layout[data-preview="off"] .qf-step[data-type="Web app"] .qf-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
