:root {
    --cq-bg: #F0F4F8;
    --cq-white: #FFFFFF;
    --cq-blue: #2563EB;
    --cq-blue-hover: #1D4ED8;
    --cq-blue-soft: rgba(37, 99, 235, 0.08);
    --cq-blue-ring: rgba(37, 99, 235, 0.25);
    --cq-text: #111827;
    --cq-text-muted: #6B7280;
    --cq-text-dim: #9CA3AF;
    --cq-border: #E5E7EB;
    --cq-green: #16A34A;
    --cq-green-soft: rgba(22, 163, 74, 0.10);
    --cq-red: #DC2626;
    --cq-red-soft: rgba(220, 38, 38, 0.08);
    --cq-gold: #F59E0B;
    --cq-radius: 16px;
    --cq-radius-sm: 10px;
    --cq-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cq-card-width: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: var(--cq-font);
    font-size: 16px;
    background: var(--cq-bg);
    color: var(--cq-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--cq-white);
    border-bottom: 1px solid var(--cq-border);
}

.cq-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--cq-text);
}

.cq-brand-wordmark {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    line-height: 1;
}

.cq-brand-accent { color: var(--cq-blue); }

.cq-shield {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cq-text-muted);
    letter-spacing: 0.01em;
}

.cq-shield svg {
    width: 16px;
    height: 16px;
    color: var(--cq-blue);
    flex-shrink: 0;
}

.cq-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 3rem;
}

.cq-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cq-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cq-border);
    transition: background 0.25s ease;
}

.cq-dot.active {
    background: var(--cq-blue);
}

.cq-dot.completed {
    background: var(--cq-blue);
}

.cq-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cq-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.cq-card {
    width: 100%;
    max-width: var(--cq-card-width);
    background: var(--cq-white);
    border-radius: var(--cq-radius);
    padding: 2.25rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    animation: cqCardIn 0.3s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cqCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cq-blue-soft);
    margin: 0 auto 1.25rem;
}

.cq-icon svg {
    width: 26px;
    height: 26px;
    color: var(--cq-blue);
}

.cq-icon-green {
    background: var(--cq-green-soft);
}

.cq-icon-green svg {
    color: var(--cq-green);
}

.cq-headline {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--cq-text);
}

.cq-subtitle {
    font-size: 0.92rem;
    color: var(--cq-text-muted);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.cq-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--cq-font);
    background: var(--cq-blue);
    color: #fff;
    border: none;
    border-radius: var(--cq-radius-sm);
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease;
    text-decoration: none;
    line-height: 1.4;
}

.cq-btn-primary:hover {
    background: var(--cq-blue-hover);
    transform: translateY(-1px);
}

.cq-btn-primary:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
}

.cq-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: var(--cq-font);
    background: transparent;
    border: 1.5px solid var(--cq-border);
    border-radius: var(--cq-radius-sm);
    color: var(--cq-text-muted);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease;
    text-decoration: none;
}

.cq-btn-secondary:hover {
    border-color: #9CA3AF;
    color: var(--cq-text);
}

.cq-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--cq-font);
    background: var(--cq-green);
    color: #fff;
    border: none;
    border-radius: var(--cq-radius-sm);
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease;
    text-decoration: none;
}

.cq-btn-call:hover {
    background: #15803D;
    transform: translateY(-1px);
}

.cq-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.cq-input-group {
    margin-bottom: 1rem;
}

.cq-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cq-text);
    margin-bottom: 0.35rem;
}

.cq-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--cq-font);
    border: 1.5px solid var(--cq-border);
    border-radius: var(--cq-radius-sm);
    background: var(--cq-white);
    color: var(--cq-text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
    outline: none;
}

.cq-input:focus {
    border-color: var(--cq-blue);
    box-shadow: 0 0 0 3px var(--cq-blue-ring);
}

.cq-input::placeholder {
    color: var(--cq-text-dim);
}

.cq-input.cq-input-error {
    border-color: var(--cq-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.cq-error-text {
    font-size: 0.8rem;
    color: var(--cq-red);
    margin-top: 0.3rem;
}

.cq-privacy {
    font-size: 0.78rem;
    color: var(--cq-text-dim);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.cq-privacy svg {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-right: 0.2rem;
}

.cq-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.cq-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cq-text-muted);
}

.cq-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--cq-blue);
    flex-shrink: 0;
}

.cq-contractor-card {
    background: #FAFBFC;
    border: 1px solid var(--cq-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.cq-contractor-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.cq-contractor-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--cq-white);
    border: 1px solid var(--cq-border);
    padding: 4px;
}

.cq-contractor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cq-text);
    line-height: 1.3;
}

.cq-contractor-sub {
    font-size: 0.8rem;
    color: var(--cq-text-muted);
    margin-top: 0.1rem;
}

.cq-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.cq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--cq-blue-soft);
    color: var(--cq-blue);
    white-space: nowrap;
}

.cq-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.cq-badge-oc {
    background: #FEF3C7;
    color: #92400E;
}

.cq-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cq-rating-score {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cq-text);
}

.cq-stars {
    display: flex;
    gap: 1px;
}

.cq-star {
    width: 16px;
    height: 16px;
    color: var(--cq-gold);
}

.cq-rating-count {
    font-size: 0.8rem;
    color: var(--cq-text-muted);
    margin-left: 0.2rem;
}

.cq-rating-google {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cq-rating-google img {
    width: 16px;
    height: 16px;
}

.cq-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 1rem auto;
}

.cq-status-open {
    background: var(--cq-green-soft);
    color: var(--cq-green);
}

.cq-status-closed {
    background: var(--cq-red-soft);
    color: var(--cq-red);
}

.cq-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: cqPulse 2s ease-in-out infinite;
}

.cq-status-open .cq-status-dot {
    background: var(--cq-green);
}

.cq-status-closed .cq-status-dot {
    background: var(--cq-red);
}

@keyframes cqPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cq-flash {
    max-width: var(--cq-card-width);
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--cq-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}

.cq-flash-danger {
    background: var(--cq-red-soft);
    color: var(--cq-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.cq-flash-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.eq-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.eq-option-btn {
    display: block;
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--cq-font);
    background: var(--cq-white);
    color: var(--cq-text);
    border: 1.5px solid var(--cq-border);
    border-radius: var(--cq-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
    line-height: 1.4;
}

.eq-option-btn:hover {
    border-color: var(--cq-blue);
    background: var(--cq-blue-soft);
    transform: translateY(-1px);
}

.eq-option-btn:active {
    transform: translateY(0);
    background: rgba(37, 99, 235, 0.12);
}

.eq-result-card {
    text-align: left;
}

.eq-explanation {
    font-size: 0.95rem;
    color: var(--cq-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.eq-advisory {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cq-text);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--cq-blue-soft);
    border-radius: var(--cq-radius-sm);
    border-left: 3px solid var(--cq-blue);
}

.eq-reassurance {
    font-size: 0.88rem;
    color: var(--cq-text-muted);
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.eq-cta-section {
    margin-top: 0.5rem;
}

.eq-subtext {
    font-size: 0.92rem;
    color: var(--cq-text-dim);
    text-align: center;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.eq-cta-subtext {
    font-size: 0.82rem;
    color: var(--cq-text-dim);
    text-align: center;
    margin-top: 0.65rem;
    line-height: 1.5;
}

.eq-leak-headline {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.55rem;
    line-height: 1.25;
}

.eq-leak-disclaimer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--cq-text-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.eq-leak-section {
    border-top: 1px solid var(--cq-border);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.eq-leak-section-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cq-text);
    margin-bottom: 0.6rem;
    letter-spacing: -0.005em;
}

.eq-leak-bars-section .eq-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.eq-bar-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #F3F4F6;
    border: 1px solid var(--cq-border);
    overflow: hidden;
    min-height: 44px;
}

.eq-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.10);
    z-index: 0;
    transition: width 280ms ease;
}

.eq-bar-row.eq-bar-top {
    background: var(--cq-blue);
    border-color: var(--cq-blue);
}

.eq-bar-row.eq-bar-top .eq-bar-fill {
    background: transparent;
}

.eq-bar-label,
.eq-bar-value {
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    color: var(--cq-text);
    line-height: 1.3;
}

.eq-bar-label {
    flex: 1 1 auto;
    font-weight: 600;
}

.eq-bar-value {
    flex: 0 0 auto;
    color: var(--cq-text-muted);
    white-space: nowrap;
}

.eq-bar-value strong {
    font-weight: 700;
    color: var(--cq-text);
}

.eq-bar-row.eq-bar-top .eq-bar-label,
.eq-bar-row.eq-bar-top .eq-bar-value,
.eq-bar-row.eq-bar-top .eq-bar-value strong {
    color: #FFFFFF;
}

.eq-leak-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.eq-leak-row-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cq-blue-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cq-blue);
}

.eq-leak-row-icon svg {
    width: 18px;
    height: 18px;
}

.eq-leak-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

.eq-leak-bullets {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0;
    color: var(--cq-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.eq-leak-bullets li + li {
    margin-top: 0.3rem;
}

.eq-leak-paragraph {
    font-size: 0.92rem;
    color: var(--cq-text-muted);
    line-height: 1.6;
    margin: 0;
}

.eq-leak-result .eq-cta-section {
    margin-top: 1.75rem;
}

@media (max-width: 520px) {
    .cq-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .cq-headline {
        font-size: 1.3rem;
    }

    .cq-contractor-header {
        flex-direction: column;
        text-align: center;
    }

    .cq-badges {
        justify-content: center;
    }

    .cq-rating {
        justify-content: center;
    }

    .cq-trust-strip {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cq-shield {
        display: none;
    }

    .eq-option-btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
}

/* ── Leak Result educational guide (entry_result_leak.html) ── */
/* Task #262: min-width:0 + max-width:100% let this flex child shrink below
   its descendants' min-content size when its flex parent (.cq-main) is
   narrower than the viewport — fixes mobile horizontal overflow. */
.rl-leak-guide {
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--cq-text);
    overflow: hidden;
}

.rl-leak-card {
    background: var(--cq-white);
    border: 1px solid var(--cq-border);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.rl-leak-eyebrow {
    display: inline-block;
    background: var(--cq-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
}

.rl-leak-h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: #0F172A;
}

.rl-leak-h2 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0F172A;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    min-width: 0;
}

.rl-leak-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cq-blue);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rl-leak-lede {
    font-size: 0.95rem;
    color: var(--cq-text-muted);
    line-height: 1.6;
}

.rl-leak-prose {
    font-size: 0.95rem;
    color: var(--cq-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* Hero */
.rl-leak-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.rl-leak-hero-text,
.rl-leak-hero-media { min-width: 0; }

.rl-leak-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--cq-border);
}

/* Callout */
.rl-leak-callout {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.rl-leak-callout-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cq-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rl-leak-callout-icon svg { width: 20px; height: 20px; }

.rl-leak-callout-text {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.45;
    margin: 0;
}

/* Two-column layout */
.rl-leak-two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.rl-leak-col-main { grid-column: 1; min-width: 0; }
.rl-leak-col-side {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Concern cards */
.rl-leak-concern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.rl-leak-concern {
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid;
}

.rl-leak-concern-low {
    background: #ECFDF5;
    border-color: #A7F3D0;
}

.rl-leak-concern-high {
    background: #FEF2F2;
    border-color: #FECACA;
}

.rl-leak-concern-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.rl-leak-concern-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rl-leak-concern-icon svg { width: 22px; height: 22px; }

.rl-leak-concern-low .rl-leak-concern-icon { color: var(--cq-green); }
.rl-leak-concern-high .rl-leak-concern-icon { color: var(--cq-red); }

.rl-leak-concern-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.rl-leak-concern-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.55;
    margin: 0;
}

/* Check lists ("What this may point to" / "What a roofer may check") */
.rl-leak-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.rl-leak-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: #1F2937;
    line-height: 1.5;
}

.rl-leak-check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--cq-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.rl-leak-check svg { width: 22px; height: 22px; }

/* "Why this matters" supporting figure */
.rl-leak-figure {
    margin: 0 0 1rem;
    border: 1px solid var(--cq-border);
    border-radius: 10px;
    overflow: hidden;
    background: #F8FAFC;
}

.rl-leak-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rl-leak-figure figcaption {
    padding: 0.6rem 0.85rem 0.75rem;
    font-size: 0.85rem;
    color: var(--cq-text-muted);
    line-height: 1.5;
}

/* Cause grid (auto-fit so 2 or 3 cards fill cleanly) */
.rl-leak-cause-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rl-leak-cause {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.rl-leak-cause-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--cq-border);
    background: #F3F4F6;
}

.rl-leak-cause-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rl-leak-cause-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0.1rem 0 0;
    line-height: 1.3;
}

.rl-leak-cause-text {
    font-size: 0.85rem;
    color: var(--cq-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Question list (decorative checkboxes) */
.rl-leak-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rl-leak-question-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: #1F2937;
    line-height: 1.5;
    padding: 0.15rem 0;
}

.rl-leak-checkbox {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid #94A3B8;
    border-radius: 4px;
    background: #fff;
    margin-top: 2px;
}

/* Bottom line */
.rl-leak-bottom-line { background: #F8FAFC; }

/* Prompt-4: educational disclaimer — small info box right under the hero. */
.rl-leak-disclaimer,
.rl-leak-emergency {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin: 0 auto 1.1rem;
    max-width: 880px;
    font-size: 0.93rem;
    line-height: 1.5;
}
.rl-leak-disclaimer {
    background: #F1F5FB;
    border: 1px solid #DCE5F2;
    color: #334155;
}
.rl-leak-emergency {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #7F1D1D;
}
.rl-leak-disclaimer-icon,
.rl-leak-emergency-icon {
    flex: 0 0 auto;
    display: inline-flex;
    margin-top: 0.1rem;
}
.rl-leak-disclaimer-icon { color: #2563EB; }
.rl-leak-emergency-icon  { color: #B91C1C; }
.rl-leak-disclaimer-icon svg,
.rl-leak-emergency-icon svg { width: 20px; height: 20px; }
.rl-leak-disclaimer p,
.rl-leak-emergency p { margin: 0; }

/* Prompt-4: transition copy block above the bottom CTA. */
.rl-leak-cta-intro {
    margin: 0 auto 0.85rem;
    max-width: 560px;
    text-align: center;
}
.rl-leak-cta-headline {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cq-text);
    line-height: 1.35;
}
.rl-leak-cta-intro .rl-leak-cta-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--cq-text-muted);
}

/* Prompt-4: secondary back / decline links under the CTA button. */
.rl-leak-cta-secondary {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
}
.rl-leak-back-link,
.rl-leak-decline-link {
    font-size: 0.9rem;
    color: var(--cq-text-muted);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    padding: 0.15rem 0.25rem;
}
.rl-leak-back-link { color: var(--cq-blue); border-bottom-color: rgba(37, 99, 235, 0.35); }
.rl-leak-back-link:hover,
.rl-leak-decline-link:hover { border-bottom-style: solid; }

/* Bottom CTA */
.rl-leak-cta {
    margin: 0.5rem auto 0;
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.rl-leak-cta form { margin: 0; }

.rl-leak-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--cq-font);
    background: var(--cq-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rl-leak-next-btn:hover {
    background: var(--cq-blue-hover);
    transform: translateY(-1px);
}

.rl-leak-next-icon { display: inline-flex; }
.rl-leak-next-icon svg { width: 22px; height: 22px; }

.rl-leak-cta-sub {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    color: var(--cq-text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
    .rl-leak-cause-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Task #262: minmax(0, 1fr) prevents the min-content floor on each track
       from forcing the grid wider than the viewport on narrow screens. */
    .rl-leak-hero             { grid-template-columns: minmax(0, 1fr); }
    .rl-leak-hero-media img   { max-height: 180px; }
    .rl-leak-figure img       { max-height: 200px; }
    .rl-leak-two-col          { grid-template-columns: minmax(0, 1fr); }
    /* Task #263: Reset the explicit grid-column placements that were set for
       the desktop 2-column layout. On mobile the grid is one track, but
       .rl-leak-col-side { grid-column: 2 } was forcing an implicit 2nd track
       (auto = max-content) to be created, starving col-main of width and
       stacking its words one-per-line. `auto` lets both items flow into the
       single track as separate grid rows. */
    .rl-leak-col-main,
    .rl-leak-col-side       { grid-column: auto; }
    .rl-leak-concern-grid     { grid-template-columns: minmax(0, 1fr); }
    .rl-leak-cause-grid       { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
    .rl-leak-h1               { font-size: 1.3rem; margin-bottom: 0.55rem; }
    .rl-leak-h2               { font-size: 1.05rem; margin-bottom: 0.55rem; }
    .rl-leak-prose            { margin-bottom: 0.7rem; font-size: 0.92rem; }
    .rl-leak-eyebrow          { margin-bottom: 0.55rem; }
    .rl-leak-figure           { margin: 0 0 0.7rem; }
    .rl-leak-check-list       { gap: 0.5rem; }
    .rl-leak-question-list    { gap: 0.4rem; }
    .rl-leak-guide            { gap: 0.5rem; }
    .rl-leak-card             { padding: 0.95rem 0.9rem; border-radius: 12px; }
    .rl-leak-callout          { padding: 0.8rem 0.85rem; gap: 0.6rem; }
    .rl-leak-callout-text     { font-size: 0.92rem; }
    .cq-main                  { padding: 0.625rem 0.5rem 1.25rem; }
    .cq-progress              { margin-bottom: 0.6rem; }
    .cq-trust-strip           { margin-top: 1rem; padding-top: 0.75rem; gap: 1rem; }

    /* Task #262 safety belt: scoped only to the result/guide subtree.
       Forces every descendant to be shrinkable and never wider than the
       guide wrapper, and normalizes images so intrinsic sizes can't push
       parents wide. No global selectors. */
    .rl-leak-guide,
    .rl-leak-guide * {
        min-width: 0;
        max-width: 100%;
    }
    .rl-leak-guide img,
    .rl-leak-guide picture {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 520px) {
    .rl-leak-card             { padding: 0.8rem 0.7rem; }
    .rl-leak-h1               { font-size: 1.18rem; }
    .rl-leak-callout          { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .rl-leak-callout-text     { font-size: 0.9rem; }
    .cq-main                  { padding: 0.5rem 0.375rem 1rem; }
}

/* ── Task #244: layout polish ── */
@media (min-width: 769px) {
    .cq-main { padding: 1.25rem 1rem 2rem; }
    .cq-progress { margin-bottom: 1rem; }
}
.cq-card { padding: 1.75rem 1.5rem; }
.cq-card .cq-icon { margin-bottom: 0.85rem; }
.cq-headline { font-size: 1.4rem; margin-bottom: 0.4rem; }
.cq-subtitle { margin-bottom: 1.1rem; }

/* Back link sits above the card, left-aligned to the card width */
.eq-back-wrap {
    width: 100%;
    max-width: var(--cq-card-width);
    margin: 0 auto 0.65rem;
}
.eq-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    padding: 0.35rem 0.55rem;
    margin-left: -0.55rem;
    font-family: var(--cq-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cq-text-muted);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}
.eq-back:hover { color: var(--cq-text); background: rgba(15, 23, 42, 0.04); }
.eq-back svg { width: 16px; height: 16px; }

/* Mini-quiz options: subtle press/selected feedback while form submits */
.eq-option-btn.is-selected {
    background: var(--cq-blue);
    color: #fff;
    border-color: var(--cq-blue);
}
.eq-option-btn:disabled { cursor: progress; opacity: 0.92; }

/* Match-reason chips on connection-quiz step 3 */
.cq-match-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.25rem 0 1rem;
}
.cq-match-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}
.cq-match-chip svg { width: 13px; height: 13px; }

/* "Your roof issue" summary box on step 4 */
.cq-summary-box {
    border: 1px solid var(--cq-border);
    background: #F8FAFC;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 0 0 1.1rem;
    text-align: left;
}
.cq-summary-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cq-text-muted);
    margin: 0 0 0.45rem;
}
.cq-summary-title svg { width: 14px; height: 14px; color: var(--cq-blue); }
.cq-summary-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.cq-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.35;
}
.cq-summary-label { color: var(--cq-text-muted); font-weight: 500; flex: 0 0 auto; }
.cq-summary-value { color: var(--cq-text); font-weight: 600; text-align: right; }

/* Result-page hero/figure tightening (Task #244) — desktop only;
   mobile values live in @media (max-width: 768px) above (Task #261). */
@media (min-width: 769px) {
    .rl-leak-guide { gap: 1rem; }
    .rl-leak-card { padding: 1.4rem 1.4rem; }
    .rl-leak-hero-media img { max-height: 280px; }
    .rl-leak-figure img { max-height: 260px; object-fit: cover; }
}

/* Task #244 spec compliance: urgency chip variant + step-3 trust line */
.cq-match-chip-urgency {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
}
.cq-trust-line {
    margin: 0.65rem 0 1rem;
    font-size: 0.88rem;
    color: var(--cq-text-muted);
    text-align: center;
    line-height: 1.45;
}

/* Prompt-5: step-4 consent + step-5 reassurance copy */
.cq-consent {
    margin: 0.6rem 0 0.85rem;
    padding: 0.7rem 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--cq-text-muted);
    line-height: 1.5;
    text-align: left;
}
.cq-consent a { color: var(--cq-blue); text-decoration: underline; }
.cq-sent-note {
    margin: 0.5rem 0 0.35rem;
    font-size: 0.95rem;
    color: var(--cq-text);
    text-align: center;
    font-weight: 600;
}
.cq-safety-note {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.85rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #7F1D1D;
    text-align: center;
    line-height: 1.5;
}
.cq-call-helper {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.9rem;
    color: var(--cq-text-muted);
    text-align: center;
}

/* Task #244 spec compliance: step 5 "Sent to:" line */
.cq-sent-to {
    margin: 0.25rem 0 0.85rem;
    font-size: 0.95rem;
    color: var(--cq-text);
    text-align: center;
}
.cq-sent-to strong {
    color: var(--cq-text);
    font-weight: 700;
}

/* Task #251 — official circular RoofLocal logo in the connect/entry quiz
   header. Replaces the previous text wordmark inside .cq-brand. */
.cq-brand .rl-logo-img {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 600px) {
    .cq-brand .rl-logo-img { height: 22px; }
}

/* ── Task #264: Mobile-only sticky Next CTA for entry result pages ── */
.rl-leak-sticky-cta { display: none; }

@media (max-width: 768px) {
    .rl-leak-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        padding: 0.7rem 1rem;
        padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
        box-sizing: border-box;
    }
    .rl-leak-sticky-cta form { margin: 0; }
    .rl-leak-sticky-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.95rem 1.25rem;
        font-size: 1.02rem;
        font-weight: 700;
        font-family: var(--cq-font);
        background: var(--cq-blue);
        color: #fff;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }
    .rl-leak-sticky-btn:active { background: var(--cq-blue-hover); }
    .rl-leak-sticky-arrow { display: inline-flex; }

    /* Reserve enough bottom padding on the guide so the sticky bar
       never overlaps the in-flow .rl-leak-cta sub-text or the
       Bottom-line copy when scrolled to the end. */
    .rl-leak-guide { padding-bottom: 96px; }
}

/* ===== Task #267 — step-3 compact proof grid ===== */
.cq-proof { margin: 1.2rem 0 1.1rem; text-align: left; }
.cq-proof-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.35rem; color: #0f172a; text-align: center; }
.cq-proof-copy { font-size: 0.85rem; line-height: 1.5; color: #475569; margin: 0 0 0.9rem; text-align: center; }
.cq-proof-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 0.7rem;
}
@media (min-width: 560px) {
    .cq-proof-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
}
.cq-proof-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 0.7rem 0.7rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.cq-proof-img { width: 100%; height: 86px; border-radius: 8px; overflow: hidden; margin: 0 0 0.5rem; background: #f1f5f9; }
@media (min-width: 560px) { .cq-proof-img { height: 90px; } }
.cq-proof-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cq-proof-item-title { font-size: 0.86rem; font-weight: 700; margin: 0 0 0.2rem; color: #0f172a; }
.cq-proof-item-text { font-size: 0.76rem; line-height: 1.45; color: #475569; margin: 0; }

/* Task #267 — step-4 inline form reassurance */
.cq-form-reassure {
    display: flex; align-items: center; gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    font-size: 0.82rem; line-height: 1.4;
    color: #0c4a6e;
    text-align: left;
}
.cq-form-reassure svg { width: 16px; height: 16px; flex-shrink: 0; color: #0284c7; }

/* Task #267 — step-5 closed-state messaging + secondary call-anyway button */
.cq-closed-message {
    margin: 0.5rem auto 1rem;
    max-width: 36ch;
    padding: 0.75rem 0.9rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    font-size: 0.88rem; line-height: 1.5;
    color: #7c2d12;
    text-align: center;
}
.cq-btn-call-anyway {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.cq-btn-call-anyway:hover { background: #f8fafc; color: #0f172a; border-color: #94a3b8; }
.cq-btn-call-anyway svg { color: #64748b; }

/* ===== Task #268 — step-3 proof compactness ===== */
.cq-proof { margin: 0.7rem 0 0.6rem; }
.cq-proof-title { font-size: 0.98rem; margin: 0 0 0.25rem; }
.cq-proof-copy { font-size: 0.82rem; margin: 0 0 0.65rem; }
.cq-proof-grid { gap: 0.5rem; }
@media (min-width: 560px) { .cq-proof-grid { gap: 0.6rem; } }
.cq-proof-item {
    padding: 0.5rem 0.6rem 0.6rem;
}
.cq-proof-img { height: 70px; margin: 0 0 0.4rem; }
@media (min-width: 560px) { .cq-proof-img { height: 74px; } }
.cq-proof-img img { object-fit: cover; }
.cq-proof-img-team { object-position: center 28%; }
.cq-proof-item-title { font-size: 0.82rem; margin: 0 0 0.15rem; }
.cq-proof-item-text { font-size: 0.74rem; line-height: 1.4; }

/* ===== Task #268 — step-5 closed-state dedupe =====
   Hide the small "Closed right now · they'll reach you next business day"
   chip when the long .cq-closed-message banner is shown right below it.
   The open-state chip ("Open now") stays untouched. */
.cq-status-indicator.cq-status-closed { display: none; }

/* ===== Task #268-proof — step-3 proof images upgraded for visual weight =====
   Overrides Task #267 (86-90px) and the earlier Task #268 compactness pass
   (70-74px). Mobile (≤768px) stacks one column with ~200px image height;
   ≥769px keeps the 2-column grid with ~165px image height. Card padding
   and typography stay compact so the page stays scannable. */
.cq-proof-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}
.cq-proof-item {
    padding: 0.7rem 0.8rem 0.85rem;
}
.cq-proof-img {
    height: 200px;
    margin: 0 0 0.55rem;
    border-radius: 10px;
}
.cq-proof-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cq-proof-img-team { object-position: center 28%; }
.cq-proof-item-title { font-size: 0.92rem; margin: 0 0 0.2rem; }
.cq-proof-item-text { font-size: 0.8rem; line-height: 1.45; }

@media (min-width: 769px) {
    .cq-proof-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cq-proof-img { height: 165px; }
}
@media (min-width: 1024px) {
    .cq-proof-img { height: 175px; }
}

/* Step 3 (Rail Roofing handoff) — namespaced .cq-s3-* */

.cq-s3-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
    animation: cqCardIn 0.3s cubic-bezier(.22,1,.36,1) both;
}

.cq-s3-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1220;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 12px 32px rgba(2,6,23,0.18);
    isolation: isolate;
    margin-bottom: 14px;
}
.cq-s3-hero-bg, .cq-s3-hero-bg img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0; display: block;
}
.cq-s3-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(2,6,23,0.78) 0%, rgba(2,6,23,0.65) 60%, rgba(2,6,23,0.85) 100%);
}
.cq-s3-hero-inner {
    position: relative; z-index: 2;
    padding: 1.5rem 1.25rem 1.6rem;
}
.cq-s3-eyebrow {
    display: inline-flex; flex-wrap: wrap; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; line-height: 1.2;
    margin-bottom: 0.85rem;
}
.cq-s3-eyebrow-blue { color: #60A5FA; }
.cq-s3-eyebrow-mute { color: rgba(255,255,255,0.78); }
.cq-s3-headline {
    font-size: 1.55rem; line-height: 1.15; font-weight: 800;
    color: #fff; margin: 0 0 0.5rem; letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.cq-s3-sub {
    font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.92);
    margin: 0 0 1.1rem; max-width: 56ch;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.cq-s3-sub-em { color: #93C5FD; font-weight: 600; }

.cq-s3-trust {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr; gap: 0.55rem;
}
.cq-s3-trust-item {
    display: flex; align-items: flex-start; gap: 0.65rem;
    color: rgba(255,255,255,0.95);
}
.cq-s3-trust-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.18);
    color: #93C5FD;
    border: 1px solid rgba(147,197,253,0.25);
}
.cq-s3-trust-text { display: flex; flex-direction: column; line-height: 1.35; }
.cq-s3-trust-text strong {
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: #fff;
}
.cq-s3-trust-text span {
    font-size: 0.84rem; color: rgba(255,255,255,0.78); font-weight: 500;
}

@media (min-width: 720px) {
    .cq-s3-hero-inner { padding: 2.25rem 2.25rem 2.25rem; max-width: 60%; }
    .cq-s3-headline { font-size: 2.4rem; }
    .cq-s3-sub { font-size: 1.02rem; }
    .cq-s3-hero-overlay {
        background: linear-gradient(95deg, rgba(2,6,23,0.92) 0%, rgba(2,6,23,0.72) 45%, rgba(2,6,23,0.15) 75%, rgba(2,6,23,0.05) 100%);
    }
}
@media (min-width: 1024px) {
    .cq-s3-hero { min-height: 460px; }
    .cq-s3-hero-inner { padding: 2.5rem 2.5rem; max-width: 56%; }
    .cq-s3-headline { font-size: 2.7rem; }
}

.cq-s3-profile {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    background: #fff; border-radius: 16px;
    padding: 1.1rem 1.1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(2,6,23,0.06), 0 6px 20px rgba(2,6,23,0.06);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #DC2626;
    margin-bottom: 14px;
}
@media (min-width: 820px) {
    .cq-s3-profile {
        grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
        gap: 22px; padding: 1.4rem 1.5rem 1.5rem;
    }
}

.cq-s3-profile-main { min-width: 0; }
.cq-s3-profile-head {
    display: flex; align-items: center; gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.cq-s3-profile-logo {
    width: 64px; height: 64px; flex: 0 0 64px;
    border-radius: 12px; overflow: hidden;
    background: #0b1220;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.cq-s3-profile-logo img {
    width: 100%; height: 100%; object-fit: contain; display: block;
}
@media (min-width: 720px) {
    .cq-s3-profile-logo { width: 78px; height: 78px; flex-basis: 78px; }
}
.cq-s3-profile-id { min-width: 0; }
.cq-s3-profile-name {
    font-size: 1.4rem; font-weight: 800; color: #0b1220;
    margin: 0 0 0.15rem; letter-spacing: -0.01em; line-height: 1.15;
}
@media (min-width: 720px) { .cq-s3-profile-name { font-size: 1.65rem; } }
.cq-s3-profile-led {
    font-size: 0.92rem; color: #64748b; margin: 0; font-weight: 500;
}
.cq-s3-profile-led span { color: #2563EB; font-weight: 700; }
.cq-s3-profile-tagline {
    font-size: 0.88rem; color: #475569; margin: 0.2rem 0 0;
    font-weight: 500; line-height: 1.4;
}
.cq-s3-badge-note {
    margin: 0.55rem 0 0; padding: 0.5rem 0.65rem;
    font-size: 0.78rem; color: #64748b; line-height: 1.45;
    background: #f8fafc; border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.cq-s3-profile-desc {
    font-size: 0.95rem; line-height: 1.55; color: #334155;
    margin: 0 0 1rem;
}

.cq-s3-profile-meta {
    display: flex; flex-direction: column; gap: 0.85rem;
}

.cq-s3-rating {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cq-s3-rating-google { display: inline-flex; }
.cq-s3-rating-score {
    font-size: 1.15rem; font-weight: 800; color: #0b1220;
}
.cq-s3-rating-stars { display: inline-flex; gap: 1px; }
.cq-s3-rating-stars svg { width: 16px; height: 16px; }
.cq-s3-rating-count { font-size: 0.85rem; color: #64748b; font-weight: 600; }

.cq-s3-badges {
    display: grid; grid-template-columns: 1fr; gap: 0.5rem;
}
@media (min-width: 520px) {
    .cq-s3-badges { grid-template-columns: 1fr 1fr; }
}
.cq-s3-badge {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.cq-s3-badge-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 8px;
}
.cq-s3-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.cq-s3-badge-text strong {
    font-size: 0.8rem; font-weight: 800; color: #0b1220;
    letter-spacing: 0.02em; text-transform: uppercase;
}
.cq-s3-badge-text em { font-style: normal; font-size: 0.78rem; color: #64748b; font-weight: 500; }
.cq-s3-badge-oc .cq-s3-badge-mark { background: #FEF3C7; color: #B45309; }
.cq-s3-badge-free .cq-s3-badge-mark { background: rgba(37,99,235,0.10); color: #2563EB; }

/* Owner sub-card */
.cq-s3-owner {
    background: #0b1220;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    display: grid; grid-template-columns: 96px 1fr;
    align-items: stretch;
    gap: 0;
}
.cq-s3-owner-photo { background: #0b1220; }
.cq-s3-owner-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    object-position: center 22%;
    min-height: 120px;
}
.cq-s3-owner-text {
    padding: 0.85rem 1rem;
    display: flex; flex-direction: column; justify-content: center;
}
.cq-s3-owner-eyebrow {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; color: #60A5FA; margin-bottom: 0.2rem;
}
.cq-s3-owner-name {
    font-size: 1.15rem; font-weight: 800; color: #fff;
    margin: 0 0 0.35rem; letter-spacing: -0.01em;
}
.cq-s3-owner-quote {
    font-size: 0.88rem; color: rgba(255,255,255,0.85);
    margin: 0; line-height: 1.45;
}
@media (min-width: 720px) {
    .cq-s3-owner { grid-template-columns: 1fr; }
    .cq-s3-owner-photo { aspect-ratio: 4/3; }
    .cq-s3-owner-photo img { object-position: center 18%; min-height: 0; }
    .cq-s3-owner-text { padding: 1rem 1.1rem 1.15rem; }
    .cq-s3-owner-name { font-size: 1.35rem; }
}

.cq-s3-doc {
    display: flex; align-items: flex-start; gap: 0.85rem;
    background: linear-gradient(135deg, #0b1220 0%, #111c2e 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 18px rgba(2,6,23,0.12);
    margin-bottom: 14px;
}
.cq-s3-doc-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 10px;
    background: rgba(96, 165, 250, 0.18);
    color: #93C5FD;
    border: 1px solid rgba(147,197,253,0.25);
}
.cq-s3-doc-text { min-width: 0; }
.cq-s3-doc-title {
    font-size: 1.05rem; line-height: 1.25; font-weight: 800;
    color: #fff; margin: 0 0 0.35rem; letter-spacing: -0.005em;
}
.cq-s3-doc-copy {
    font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.82);
    margin: 0; max-width: 70ch;
}
@media (min-width: 720px) {
    .cq-s3-doc { padding: 1.35rem 1.5rem; gap: 1rem; }
    .cq-s3-doc-title { font-size: 1.25rem; }
    .cq-s3-doc-copy { font-size: 0.95rem; }
}

.cq-s3-gallery { margin-bottom: 14px; }
.cq-s3-gallery-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 640px) {
    .cq-s3-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.cq-s3-gallery-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.8rem 0.85rem;
    box-shadow: 0 1px 3px rgba(2,6,23,0.05);
}
.cq-s3-gallery-img {
    width: 100%; height: 200px; border-radius: 10px;
    overflow: hidden; background: #f1f5f9; margin-bottom: 0.6rem;
}
@media (min-width: 640px) { .cq-s3-gallery-img { height: 160px; } }
@media (min-width: 1024px) { .cq-s3-gallery-img { height: 180px; } }
.cq-s3-gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cq-s3-gallery-title {
    font-size: 0.95rem; font-weight: 800; color: #0b1220;
    margin: 0 0 0.2rem; letter-spacing: -0.005em;
}
.cq-s3-gallery-text { font-size: 0.78rem; color: #64748b; margin: 0; line-height: 1.4; }

.cq-s3-ba {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(2,6,23,0.05), 0 6px 18px rgba(2,6,23,0.06);
    margin-bottom: 14px;
}
.cq-s3-ba-head { margin-bottom: 0.7rem; }
.cq-s3-ba-title {
    font-size: 1.05rem; font-weight: 800; color: #0b1220;
    margin: 0 0 0.2rem; letter-spacing: -0.005em;
}
.cq-s3-ba-copy { font-size: 0.85rem; color: #64748b; margin: 0; line-height: 1.45; }
.cq-s3-ba-img {
    border-radius: 10px; overflow: hidden; background: #0b1220;
}
.cq-s3-ba-img img { width: 100%; height: auto; display: block; }
@media (min-width: 720px) {
    .cq-s3-ba { padding: 1.25rem 1.4rem 1.4rem; }
    .cq-s3-ba-title { font-size: 1.25rem; }
}

.cq-s3-trust-line {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin: 0.4rem 0 1rem; padding: 0.7rem 0.9rem;
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
    font-size: 0.86rem; line-height: 1.5; color: #0c4a6e; text-align: left;
}
.cq-s3-trust-line svg { color: #0284c7; flex-shrink: 0; margin-top: 2px; }

.cq-s3-cta {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
}

.cq-s3-cta-reassure {
    text-align: center; font-size: 0.82rem; color: #64748b;
    margin: 0.55rem 0 0;
}

/* ────────────────────────────────────────────────────────────────
   Task #293 — Roof Check photo step (choice / walkthrough / upload)
   ──────────────────────────────────────────────────────────────── */
.rc-safety {
    background: #fff7ed;
    color: #7c2d12;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem; line-height: 1.5;
    margin: 0 0 1.1rem;
}
.rc-photo-count {
    font-size: 0.78rem; font-weight: 700;
    color: #64748b; text-transform: uppercase;
    letter-spacing: 0.06em; text-align: center;
    margin: 0 0 0.4rem;
}
.rc-photo-saved {
    background: #ecfeff;
    color: #155e75;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem; line-height: 1.5;
    margin: 0 0 1rem;
}
.rc-photo-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* Task #301 — Simplified walkthrough: Capture / Next + mini-X. */
.rc-form-capture { margin: 0 0 1rem; }
.rc-photo-capture-btn {
    display: block; width: 100%; text-align: center;
    cursor: pointer;
}
.rc-photo-capture-btn.is-loading { opacity: 0.7; pointer-events: none; }
.rc-form-next { margin: 1rem 0 0; }
.rc-photo-next { display: block; width: 100%; text-align: center; }

.rc-photo-frame {
    position: relative;
    margin: 0 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1220;
    line-height: 0;
}
.rc-photo-img {
    display: block; width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #0b1220;
}
.rc-photo-x-form {
    position: absolute; top: 0.5rem; right: 0.5rem;
    margin: 0; padding: 0;
    line-height: 1;
}
.rc-photo-x {
    width: 2rem; height: 2rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);
    background: rgba(15,23,42,0.78);
    color: #ffffff;
    font-size: 1.15rem; font-weight: 700; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background 120ms ease, transform 120ms ease;
}
.rc-photo-x:hover, .rc-photo-x:focus-visible {
    background: rgba(15,23,42,0.95);
    transform: scale(1.05);
    outline: none;
}

/* Task #296 — live viewfinder. */
.rc-viewfinder, .rc-vf-preview { margin: 0 0 1rem; }
.rc-vf-stage {
    position: relative;
    width: 100%;
    background: #0b1220;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.rc-vf-video {
    display: block; width: 100%; height: 100%;
    object-fit: cover; background: #0b1220;
}
.rc-vf-coach {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 0.85rem 1rem 0.95rem;
    font-size: 0.95rem; line-height: 1.35;
    display: flex; align-items: center; gap: 0.6rem;
    min-height: 2.6rem;
}
.rc-vf-coach-text { flex: 1; }
.rc-vf-dot {
    flex: 0 0 0.7rem;
    width: 0.7rem; height: 0.7rem; border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
    transition: background-color 200ms ease;
}
.rc-vf-dot.is-looking {
    background: #38bdf8;
    animation: rc-vf-pulse 1.1s ease-in-out infinite;
}
.rc-vf-dot.is-good { background: #22c55e; }
.rc-vf-dot.is-adjust { background: #f59e0b; }
.rc-vf-dot.is-idle { background: #94a3b8; }
@keyframes rc-vf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}
.rc-vf-controls {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 0.75rem;
}
.rc-vf-capture { font-size: 1.05rem; padding: 0.95rem 1rem; }
.rc-vf-canvas { display: none; }
/* Task #302 — AI-ready glow around the viewfinder. The ring sits
   inside .rc-vf-stage; .is-ready turns on the green border + pulse
   when the coach endpoint returns state="looks_good". */
.rc-vf-ready-ring {
    position: absolute; inset: 0;
    pointer-events: none;
    border-radius: 14px;
    border: 4px solid transparent;
    box-shadow: 0 0 0 0 rgba(34,197,94,0);
    transition: border-color 200ms ease, box-shadow 240ms ease;
}
.rc-vf-stage.is-ready .rc-vf-ready-ring {
    border-color: #22c55e;
    box-shadow:
        0 0 0 2px rgba(34,197,94,0.35),
        0 0 24px 4px rgba(34,197,94,0.55),
        inset 0 0 18px 2px rgba(34,197,94,0.35);
    animation: rc-vf-ready-pulse 1.4s ease-in-out infinite;
}
@keyframes rc-vf-ready-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(34,197,94,0.35),
            0 0 24px 4px rgba(34,197,94,0.55),
            inset 0 0 18px 2px rgba(34,197,94,0.35);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(34,197,94,0.55),
            0 0 36px 8px rgba(34,197,94,0.75),
            inset 0 0 24px 4px rgba(34,197,94,0.45);
    }
}
.rc-vf-preview-img {
    display: block; width: 100%; max-height: 70vh;
    object-fit: contain; border-radius: 14px;
    background: #0b1220;
}
.rc-vf-fallback-note {
    background: #fef3c7; color: #78350f;
    border: 1px solid #fcd34d;
    border-radius: 10px; padding: 0.6rem 0.8rem;
    font-size: 0.85rem; line-height: 1.45;
    margin: 0 0 0.75rem;
}


/* ==========================================================================
   Task #301 — Guided Roof Check v2 (gc-* namespace).
   Centered soft-white card on a blue-gray background. New visual
   template that matches the uploaded reference image. Deliberately
   isolated from the legacy .cq-*, .rc-*, and .eq-* namespaces.
   ========================================================================== */

:root {
    --gc-bg:        #f1f4f9;
    --gc-card-bg:   #ffffff;
    --gc-header-bg: #ffffff;
    --gc-text:      #0f172a;
    --gc-text-muted:#5b6479;
    --gc-border:    #e2e8f0;
    --gc-border-sub:#eef1f6;
    --gc-blue:      #2563eb;
    --gc-blue-dark: #1d4ed8;
    --gc-blue-soft: #eef4ff;
    --gc-blue-ring: rgba(37, 99, 235, 0.14);
    --gc-radius:    16px;
    --gc-radius-sm: 12px;
    --gc-shadow:    0 4px 18px rgba(15, 23, 42, 0.06);
    --gc-shadow-card: 0 6px 28px rgba(15, 23, 42, 0.07);
    --gc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gc-red:       #b91c1c;
    --gc-red-soft:  #fef2f2;
}

.gc-body {
    margin: 0;
    background: var(--gc-bg);
    color: var(--gc-text);
    font-family: var(--gc-font);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.gc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gc-header-bg);
    border-bottom: 1px solid var(--gc-border-sub);
}
.gc-brand { display: inline-flex; align-items: center; text-decoration: none; }
.gc-brand .rl-logo-img { display: block; height: 28px; width: auto; max-width: 160px; }
.gc-trust { white-space: nowrap; }
@media (max-width: 520px) {
    .gc-header { padding: 0.75rem 1rem; }
    .gc-brand .rl-logo-img { height: 22px; }
    .gc-trust { font-size: 0.78rem; }
    .gc-trust svg { width: 14px; height: 14px; }
}
.gc-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}
.gc-trust svg { color: var(--gc-blue); }
@media (max-width: 540px) {
    .gc-trust { font-size: 0.75rem; }
    .gc-trust svg { width: 14px; height: 14px; }
}

.gc-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    position: relative;
}
.gc-back-wrap {
    padding: 0.25rem 0 0.5rem;
}
.gc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    transition: color 140ms ease, background 140ms ease;
}
.gc-back:hover { color: var(--gc-blue); background: var(--gc-blue-soft); }

.gc-flash {
    border-radius: var(--gc-radius-sm);
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.gc-flash-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.gc-flash-error   { background: var(--gc-red-soft); color: var(--gc-red); border: 1px solid #fecaca; }

.gc-card-form { margin: 0; }
.gc-card {
    background: var(--gc-card-bg);
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow-card);
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
}
@media (min-width: 640px) {
    .gc-card { padding: 2.5rem 2.25rem 2rem; }
}
.gc-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gc-blue-soft);
    color: var(--gc-blue);
    margin: 0 auto 1rem;
}
.gc-card-icon svg { width: 26px; height: 26px; }
.gc-card-icon-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gc-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gc-card-bg);
}
.gc-card-icon-badge svg { width: 10px; height: 10px; }

.gc-headline {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gc-text);
    margin: 0 auto 0.6rem;
    max-width: 30ch;
}
.gc-headline-line { display: block; }
@media (min-width: 640px) { .gc-headline { font-size: 1.85rem; } }

.gc-sub {
    font-size: 0.95rem;
    color: var(--gc-text-muted);
    line-height: 1.55;
    margin: 0 auto 1.5rem;
    max-width: 38ch;
}

.gc-error {
    background: var(--gc-red-soft);
    color: var(--gc-red);
    border: 1px solid #fecaca;
    border-radius: var(--gc-radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.gc-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.gc-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--gc-card-bg);
    border: 1.5px solid var(--gc-border);
    border-radius: var(--gc-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.gc-option:hover { border-color: var(--gc-blue); background: var(--gc-blue-soft); }
.gc-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gc-option-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gc-blue-soft);
    color: var(--gc-blue);
}
.gc-option-icon svg { width: 18px; height: 18px; }
.gc-option-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gc-text);
    line-height: 1.35;
}
.gc-option-bubble {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gc-border);
    background: var(--gc-card-bg);
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.gc-option.is-selected,
.gc-option:has(input:checked) {
    border-color: var(--gc-blue);
    background: var(--gc-blue-soft);
    box-shadow: 0 0 0 3px var(--gc-blue-ring);
}
.gc-option.is-selected .gc-option-bubble,
.gc-option:has(input:checked) .gc-option-bubble {
    border-color: var(--gc-blue);
    background: var(--gc-blue);
    box-shadow: inset 0 0 0 3px var(--gc-card-bg);
}
.gc-option input[type="radio"]:focus-visible ~ .gc-option-bubble {
    outline: 2px solid var(--gc-blue);
    outline-offset: 2px;
}

.gc-notes { margin: 0 0 1.5rem; text-align: left; }
.gc-notes-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gc-text);
    margin-bottom: 0.3rem;
}
.gc-notes-help {
    font-size: 0.82rem;
    color: var(--gc-text-muted);
    line-height: 1.5;
    margin: 0 0 0.6rem;
}
.gc-notes-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    font-size: 0.95rem;
    font-family: var(--gc-font);
    color: var(--gc-text);
    background: #f8fafc;
    border: 1.5px solid var(--gc-border);
    border-radius: var(--gc-radius-sm);
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.gc-notes-input:focus {
    border-color: var(--gc-blue);
    background: var(--gc-card-bg);
    box-shadow: 0 0 0 3px var(--gc-blue-ring);
}

.gc-continue {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--gc-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--gc-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--gc-font);
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.gc-continue:hover { background: var(--gc-blue-dark); box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25); }
.gc-continue:active { transform: translateY(1px); }
.gc-continue:focus-visible { outline: 3px solid var(--gc-blue-ring); outline-offset: 2px; }

/* ---- AI result page ---- */
.gc-card-result { text-align: left; padding-top: 1.75rem; }
.gc-card-icon-result {
    width: 64px; height: 64px;
    background: var(--gc-blue-soft);
}
.gc-card-icon-result svg { width: 32px; height: 32px; }
.gc-result-headline {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gc-text);
    text-align: center;
    margin: 0 0 0.4rem;
}
.gc-result-sub {
    font-size: 0.92rem;
    color: var(--gc-text-muted);
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 44ch;
    line-height: 1.55;
}
.gc-result-fallback {
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #854d0e;
    border-radius: var(--gc-radius-sm);
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
}
.gc-result-section {
    padding: 1rem 0;
    border-top: 1px solid var(--gc-border-sub);
}
.gc-result-section:first-of-type { border-top: none; padding-top: 0.25rem; }
.gc-result-h2 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
}
.gc-result-prose {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--gc-text);
    margin: 0;
}
.gc-result-category {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gc-text);
    margin-bottom: 0.5rem;
}
.gc-result-confidence {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.gc-result-confidence-low    { background: #fef3c7; color: #92400e; }
.gc-result-confidence-medium { background: #dbeafe; color: #1e40af; }
.gc-result-confidence-high   { background: #dcfce7; color: #166534; }
.gc-result-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
    color: var(--gc-text);
    line-height: 1.6;
}
.gc-result-list li { margin-bottom: 0.3rem; font-size: 0.95rem; }
.gc-result-offer {
    background: var(--gc-blue-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--gc-radius-sm);
    padding: 1rem 1rem 1.15rem;
    margin-top: 1rem;
}
.gc-result-cta-form { margin: 1rem 0 0.6rem; }
.gc-cta-inspection { font-size: 1.02rem; }
.gc-result-trust {
    font-size: 0.82rem;
    color: var(--gc-text-muted);
    text-align: center;
    margin: 0;
}
.gc-result-disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin: 1.5rem 0 0;
    line-height: 1.5;
}

/* ===== Task #301: inline follow-up dropdown (Guided Roof Check v2) ===== */
.gc-continue.is-hidden { display: none; }
.gc-followup {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, margin 180ms ease;
    margin: 0;
}
.gc-followup.is-visible {
    max-height: 200px;
    opacity: 1;
    margin: -0.25rem 0 0.5rem;
}
.gc-followup-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.5rem;
    text-align: left;
}
.gc-followup-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.gc-followup-select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ==========================================================================
   Guided Roof Check — photo-background dark quiz theme (quiz steps ONLY).
   Scoped under body.gc-quiz-photo so the result pages (which also extend
   guide_base.html) keep the original light card treatment. Matches the
   uploaded dusk-roof reference image.
   ========================================================================== */
body.gc-quiz-photo { background: transparent; }
body.gc-quiz-photo .gc-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #0a1426;
}
body.gc-quiz-photo .gc-bg picture { display: block; height: 100%; }
body.gc-quiz-photo .gc-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
body.gc-quiz-photo .gc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,16,34,0.22) 0%, rgba(8,16,34,0.12) 40%, rgba(8,16,34,0.38) 100%);
}

body.gc-quiz-photo .gc-header {
    background: transparent;
    border-bottom: none;
}
body.gc-quiz-photo .gc-brand .rl-logo-img { filter: brightness(0) invert(1); }
body.gc-quiz-photo .gc-trust { color: rgba(255,255,255,0.92); }
body.gc-quiz-photo .gc-trust svg { color: #ffffff; }

body.gc-quiz-photo .gc-main {
    max-width: 560px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0.5rem;
}
body.gc-quiz-photo .gc-back { color: rgba(255,255,255,0.78); }
body.gc-quiz-photo .gc-back:hover { color: #fff; background: rgba(255,255,255,0.08); }

body.gc-quiz-photo .gc-card {
    background: rgba(13, 24, 46, 0.82);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    /* Shrink the whole quiz card ~15% (zoom keeps proportions + layout
       flow, matching the homepage's zoom approach). */
    zoom: 0.85;
}
body.gc-quiz-photo .gc-card-icon { background: rgba(37,99,235,0.20); color: #7fb0ff; }
body.gc-quiz-photo .gc-card-icon-badge { border-color: #0d182e; }
body.gc-quiz-photo .gc-headline { color: #ffffff; }
body.gc-quiz-photo .gc-sub { color: rgba(255,255,255,0.66); }

body.gc-quiz-photo .gc-option {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
body.gc-quiz-photo .gc-option:hover {
    border-color: rgba(127,176,255,0.65);
    background: rgba(37,99,235,0.12);
}
body.gc-quiz-photo .gc-option-label { color: #eaf0fb; }
body.gc-quiz-photo .gc-option-icon { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.72); }
body.gc-quiz-photo .gc-option-bubble { border-color: rgba(255,255,255,0.30); background: transparent; }

body.gc-quiz-photo .gc-option.is-selected,
body.gc-quiz-photo .gc-option:has(input:checked) {
    border-color: #3b82f6;
    background: rgba(37,99,235,0.16);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
/* Selected: left icon becomes a blue check, matching the reference. */
body.gc-quiz-photo .gc-option.is-selected .gc-option-icon,
body.gc-quiz-photo .gc-option:has(input:checked) .gc-option-icon {
    background: #2563eb;
    color: #fff;
    position: relative;
}
body.gc-quiz-photo .gc-option.is-selected .gc-option-icon svg,
body.gc-quiz-photo .gc-option:has(input:checked) .gc-option-icon svg { display: none; }
body.gc-quiz-photo .gc-option.is-selected .gc-option-icon::after,
body.gc-quiz-photo .gc-option:has(input:checked) .gc-option-icon::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
/* Keep the right bubble as a thin outline (do not fill) to match the reference. */
body.gc-quiz-photo .gc-option.is-selected .gc-option-bubble,
body.gc-quiz-photo .gc-option:has(input:checked) .gc-option-bubble {
    border-color: rgba(255,255,255,0.42);
    background: transparent;
    box-shadow: none;
}

/* Form controls on dark (notes / zip / follow-up / final screen) */
body.gc-quiz-photo .gc-zip {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
}
body.gc-quiz-photo .gc-notes-label,
body.gc-quiz-photo .gc-zip-label { color: #ffffff; }
body.gc-quiz-photo .gc-notes-help,
body.gc-quiz-photo .gc-zip-help { color: rgba(255,255,255,0.6); }
body.gc-quiz-photo .gc-notes-input,
body.gc-quiz-photo .gc-zip-input,
body.gc-quiz-photo .gc-followup-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
    color: #ffffff;
}
body.gc-quiz-photo .gc-notes-input::placeholder,
body.gc-quiz-photo .gc-zip-input::placeholder { color: rgba(255,255,255,0.42); }
body.gc-quiz-photo .gc-notes-input:focus,
body.gc-quiz-photo .gc-zip-input:focus,
body.gc-quiz-photo .gc-followup-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.22);
}
/* The native dropdown popup ignores the translucent control styling, so
   the <option> list rendered white-on-white. Give options a solid dark
   background + light text so they're readable when the list is open. */
body.gc-quiz-photo .gc-followup-select option {
    background-color: #0d182e;
    color: #ffffff;
}
body.gc-quiz-photo .gc-followup-label { color: rgba(255,255,255,0.85); }

/* Footnote line under the card */
body.gc-quiz-photo .gc-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.1rem auto 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
}
body.gc-quiz-photo .gc-footnote svg { color: rgba(255,255,255,0.72); }

/* ===== Task #301: Roof Check Score result page ===== */
.rcs-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(15,23,42,0.08);
    max-width: 720px;
    margin: 0 auto;
}
.rcs-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    text-align: center;
}
.rcs-headline {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    line-height: 1.2;
}
.rcs-sub {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    line-height: 1.5;
}
.rcs-fallback {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    text-align: center;
}
.rcs-score-block {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    margin: 0 0 1.25rem;
    border: 1px solid #e0f2fe;
}
.rcs-score-number {
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.rcs-score-num { font-size: 4rem; }
.rcs-score-denom {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 700;
    margin-left: 0.25rem;
}
.rcs-score-meta {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.rcs-label-badge {
    background: #0f172a;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}
.rcs-confidence {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.rcs-confidence-high { background: #dcfce7; color: #166534; }
.rcs-confidence-medium { background: #fef9c3; color: #854d0e; }
.rcs-confidence-low { background: #fee2e2; color: #991b1b; }

.rcs-band-looks-good       { color: #16a34a; }
.rcs-band-worth-watching   { color: #0ea5e9; }
.rcs-band-closer-look      { color: #ca8a04; }
.rcs-band-concerning       { color: #ea580c; }
.rcs-band-urgent           { color: #dc2626; }

.rcs-scale {
    margin: 0 0 1.5rem;
    position: relative;
}
.rcs-scale-roof {
    display: block;
    width: 100%;
    height: 36px;
    color: #cbd5e1;
}
.rcs-scale-bands {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-top: 6px;
}
.rcs-scale-band {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 0.35rem 0.2rem;
    background: currentColor;
    color: inherit;
    border-radius: 4px;
    position: relative;
}
.rcs-scale-band::before {
    content: attr(data-range);
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.85;
    color: #fff;
    margin-bottom: 2px;
}
.rcs-scale-bands .rcs-band-urgent       { background: #dc2626; color: #fff; }
.rcs-scale-bands .rcs-band-concerning   { background: #ea580c; color: #fff; }
.rcs-scale-bands .rcs-band-closer-look  { background: #ca8a04; color: #fff; }
.rcs-scale-bands .rcs-band-worth-watching { background: #0ea5e9; color: #fff; }
.rcs-scale-bands .rcs-band-looks-good   { background: #16a34a; color: #fff; }

.rcs-scale-marker-row {
    position: relative;
    height: 14px;
    margin-top: 4px;
}
.rcs-scale-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 14px;
    background: #0f172a;
    transform: translateX(-50%);
}
.rcs-scale-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
    transform: translateX(-50%);
}

.rcs-section {
    margin: 0 0 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}
.rcs-h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.rcs-prose {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
}
.rcs-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.55;
}
.rcs-list li { margin-bottom: 0.35rem; }
.rcs-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 720px) {
    .rcs-two-col { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .rcs-two-col .rcs-section { margin: 0; }
}
.rcs-next-step {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
    border-color: #bae6fd;
    text-align: center;
}
.rcs-next-step .rcs-prose { text-align: left; }
.rcs-cta-form { margin: 1rem 0 0.5rem; }
.rcs-cta-button {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
}
.rcs-cta-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,0.3); }
.rcs-cta-button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.rcs-trust {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}
.rcs-disclaimer {
    margin: 1.25rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* =========================================================================
   Task #303 cleanup — inline ZIP on cmr_ground, step-3 sticky CTA,
   step-4 trust card / inline success / emergency warning, and
   Roof Check Score result-page bridge.
   ========================================================================= */

/* ---- Guided Roof Check inline ZIP (cmr_ground) ---- */
.gc-zip {
    margin: 1.25rem 0 0.25rem;
    padding: 1rem 1.1rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}
.gc-zip-label {
    display: block;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.gc-zip-help {
    margin: 0 0 0.6rem;
    color: #64748B;
    font-size: 0.85rem;
    line-height: 1.45;
}
.gc-zip-input {
    width: 100%;
    max-width: 220px;
    padding: 0.7rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0F172A;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    letter-spacing: 0.05em;
}
.gc-zip-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Step 3 in-hero CTA + sticky mobile CTA ---- */
.cq-s3-hero-cta-wrap {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
.cq-s3-cta-hero {
    margin-top: 0;
}
.cq-s3-cta-reassure-hero {
    text-align: center;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.85);
}

.cq-s3-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(110%);
    transition: transform 0.22s ease;
    pointer-events: none;
}
.cq-s3-sticky-cta.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.cq-s3-sticky-cta-btn {
    width: 100%;
    margin: 0;
}
@media (min-width: 768px) {
    /* Sticky CTA is for thumb-friendly mobile flows only; the in-flow
       buttons are perfectly comfortable on desktop. */
    .cq-s3-sticky-cta { display: none; }
}

/* ---- Step 4 trust card + secondary call button + closed/emergency notes ---- */
.cq-s4-card .cq-icon { margin-top: 0.5rem; }

.cq-s4-trust-card {
    margin-bottom: 1.25rem;
}

.cq-closed-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 0.9rem;
    background: #FEF9C3;
    color: #713F12;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.cq-closed-note svg { flex: 0 0 16px; margin-top: 2px; color: #A16207; }

.cq-emergency-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    background: #FEF2F2;
    color: #7F1D1D;
    border: 1px solid #FECACA;
    border-left: 4px solid #DC2626;
    border-radius: 10px;
}
.cq-emergency-warning svg { flex: 0 0 20px; margin-top: 2px; color: #DC2626; }
.cq-emergency-warning-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cq-emergency-warning-text strong { color: #7F1D1D; font-weight: 700; }
.cq-emergency-warning-text span { color: #991B1B; }

.cq-s4-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #0F172A;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    text-decoration: none;
}
.cq-s4-call-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}
.cq-s4-call-btn svg { color: #2563EB; }

/* Step 4 inline success */
.cq-s4-success-icon {
    color: #16A34A;
    background: #DCFCE7;
}
.cq-s4-success-sub {
    margin-bottom: 1.25rem;
}
.cq-s4-success-trust {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.75rem 0.9rem;
    background: #F0FDF4;
    color: #14532D;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cq-s4-success-trust svg { flex: 0 0 16px; margin-top: 2px; color: #16A34A; }
.cq-s4-success-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
}
.cq-s4-success-home:hover { background: #F8FAFC; color: #0F172A; }

/* ---- Roof Check Score result page additions ---- */
.rcs-score-hint {
    margin: 0.6rem 0 0;
    text-align: center;
    color: #475569;
    font-size: 0.88rem;
    font-style: italic;
}
.rcs-time-sensitive {
    margin: 0.45rem 0 0;
    text-align: center;
    color: #B91C1C;
    font-weight: 600;
    font-size: 0.92rem;
}
.rcs-based-on {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1E3A8A;
    font-size: 0.82rem;
    font-weight: 600;
}
.rcs-most-likely-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
}
.rcs-bridge {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #2563EB;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.rcs-bridge-lead {
    margin: 0 0 0.6rem;
    color: #0F172A;
    font-weight: 600;
    line-height: 1.55;
}
.rcs-bridge-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.rcs-bridge-reasons li {
    position: relative;
    padding-left: 1.4rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.4;
}
.rcs-bridge-reasons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.85rem;
    height: 0.85rem;
    background: linear-gradient(135deg, #2563EB 0%, #14B8A6 60%, #22C55E 100%);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
}

/* ============================================================
   Roof Check Report (rcr-*) — rebuilt results page
   ============================================================ */

.gc-main:has(.rcr-header) { max-width: 920px; }

.rcr-header {
    text-align: center;
    margin: 0 auto 1rem;
    padding: 0 0.5rem;
}
.rcr-headline {
    font-size: clamp(1.65rem, 3.4vw, 2.25rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.35rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.rcr-sub {
    color: #475569;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.rcr-ai-fallback {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    margin: 0 auto 0.85rem;
    max-width: 880px;
}

.rcr-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 12px 28px -6px rgba(15, 23, 42, 0.18),
        0 28px 60px -16px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: clamp(0.9rem, 2vw, 1.45rem);
    margin: 0 0 1rem;
    /* Shrink the results-page cards ~15% to match the quiz step cards. */
    zoom: 0.85;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rcr-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 18px 36px -8px rgba(15, 23, 42, 0.22),
        0 36px 72px -18px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ---- Main results card: concern is the lead, score is secondary ---- */
.rcr-main-card { padding: clamp(1rem, 2.2vw, 1.6rem); }
.rcr-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.55fr);
    gap: 1.4rem;
    align-items: stretch;
}
.rcr-score-side {
    padding-right: 1.1rem;
    border-right: 1px solid #E2E8F0;
}
.rcr-concern-side { padding-left: 0.25rem; }

.rcr-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
    margin: 0 0 0.4rem;
}
.rcr-eyebrow-accent { color: #B45309; }

.rcr-score-row {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 0.1rem 0 0.45rem;
}
.rcr-score-num {
    font-size: clamp(2.5rem, 5.2vw, 3.3rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
    letter-spacing: -0.03em;
}
.rcr-score-denom {
    font-size: 1.15rem;
    font-weight: 700;
    color: #94A3B8;
}

.rcr-sev-pill {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    margin: 0 0 0.45rem;
}
.rcr-sev-good       { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.rcr-sev-watching   { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.rcr-sev-closer-look{ background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.rcr-sev-concerning { background: #FFEDD5; color: #9A3412; border-color: #FED7AA; }
.rcr-sev-urgent     { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }

.rcr-score-meaning {
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.45;
}

.rcr-concern-name {
    font-size: clamp(1.4rem, 2.6vw, 1.65rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0.1rem 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.rcr-concern-body {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.55;
}

.rcr-callout {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #7C2D12;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}
.rcr-callout svg { flex: 0 0 auto; color: #C2410C; margin-top: 0.15rem; }
.rcr-callout p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.rcr-callout strong { display: block; color: #0F172A; }

/* ---- Section headings ---- */
.rcr-section { margin: 0 0 1.1rem; }
.rcr-h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.65rem;
    text-align: center;
    letter-spacing: -0.005em;
}
.rcr-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem;
}

/* ---- Inspection checklist grid ---- */
.rcr-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}
.rcr-check-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem;
    text-align: left;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.rcr-check-card.is-highlighted {
    background: #EFF6FF;
    border-color: #93C5FD;
    box-shadow: 0 1px 2px rgba(37,99,235,0.06), 0 4px 14px rgba(37,99,235,0.10);
}
.rcr-check-card.is-highlighted .rcr-check-icon {
    background: #2563EB;
    color: #FFFFFF;
}
.rcr-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #DBEAFE;
    color: #2563EB;
    margin-bottom: 0.45rem;
}
.rcr-check-h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.25rem;
}
.rcr-check-body {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

/* ---- Two context cards ---- */
.rcr-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0 0 1rem;
}
.rcr-context-card { margin: 0; }
.rcr-context-why  { background: #F0FDF4; border-color: #BBF7D0; }
.rcr-context-area { background: #EFF6FF; border-color: #BFDBFE; }
.rcr-context-why .rcr-h3  { color: #14532D; }
.rcr-context-area .rcr-h3 { color: #1E3A8A; }

.rcr-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rcr-bullets li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.3rem;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.5;
}
.rcr-bullets li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22C55E;
}

.rcr-context-lead {
    margin: 0 0 0.55rem;
    color: #334155;
    font-size: 0.94rem;
}
.rcr-area-chips {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.rcr-area-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #BFDBFE;
    color: #1E3A8A;
    font-size: 0.83rem;
    font-weight: 600;
}
.rcr-context-foot {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ---- Ground-limitation card ---- */
.rcr-ground-card {
    background: #FFF7ED;
    border-color: #FED7AA;
}
.rcr-ground-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #9A3412;
    margin-bottom: 0.4rem;
}
.rcr-ground-body {
    margin: 0;
    color: #7C2D12;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* ---- Free inspection CTA card ---- */
.rcr-cta-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    text-align: center;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 16px 36px -8px rgba(37, 99, 235, 0.20),
        0 32px 68px -18px rgba(15, 23, 42, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem;
}
.rcr-cta-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #166534;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}
.rcr-cta-headline {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.rcr-cta-body {
    margin: 0 auto 1rem;
    max-width: 560px;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.55;
}
.rcr-cta-form { margin: 0 0 0.6rem; }
.rcr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563EB 0%, #14B8A6 60%, #22C55E 100%);
    color: #FFFFFF;
    border: 0;
    border-radius: 12px;
    padding: 0.95rem 1.6rem;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37,99,235,0.28);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.rcr-cta-button:hover  { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 10px 26px rgba(37,99,235,0.34); }
.rcr-cta-button:active { transform: translateY(0); }
.rcr-cta-button:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

.rcr-cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.65rem auto 0;
    background: #FFFFFF;
    color: #1E3A8A;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 20px -6px rgba(15, 23, 42, 0.12);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.rcr-cta-button-secondary:hover {
    transform: translateY(-1px);
    background: #F8FAFC;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.07),
        0 12px 26px -8px rgba(15, 23, 42, 0.18);
}
.rcr-cta-button-secondary:active { transform: translateY(0); }
.rcr-cta-button-secondary:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.rcr-cta-trust {
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 0.85rem;
}

/* ---- Footer disclaimer ---- */
.rcr-disclaimer {
    margin: 0.85rem auto 0;
    padding: 0 0.5rem;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.55;
    text-align: center;
    max-width: 720px;
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
    .rcr-main-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .rcr-score-side {
        padding-right: 0;
        padding-bottom: 1.1rem;
        border-right: 0;
        border-bottom: 1px solid #E2E8F0;
    }
    .rcr-concern-side { padding-left: 0; }
    .rcr-checklist-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .rcr-context-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .rcr-checklist-grid { grid-template-columns: 1fr; }
    .rcr-h2 { font-size: 1.1rem; }
    .rcr-cta-button { width: 100%; }
    .rcr-cta-button-secondary { width: 100%; }
}

/* ============================================================
   Step-3 final-conversion additions (s3final)
   Why-cards, in-page contact form, inline success, repeat CTA.
   ============================================================ */

/* Why RoofLocal recommends them (4 compact proof cards) */
.cq-s3-why {
    max-width: 980px;
    margin: 0 auto 2rem;
    padding: 1.5rem 1rem 0;
}
.cq-s3-why-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.cq-s3-why-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}
.cq-s3-why-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1rem 0.95rem 1.05rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    line-height: 1.4;
}
.cq-s3-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #0284c7;
    background: linear-gradient(135deg, rgba(2,132,199,0.10), rgba(20,184,166,0.10));
    margin-bottom: 0.15rem;
}
.cq-s3-why-card strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.cq-s3-why-card span {
    font-size: 0.85rem;
    color: #475569;
}
@media (max-width: 880px) {
    .cq-s3-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .cq-s3-why-grid { grid-template-columns: 1fr; }
}

/* Repeat CTA after the first proof row */
.cq-s3-repeat-cta-wrap {
    max-width: 540px;
    margin: 0.25rem auto 1.5rem;
    padding: 0 1rem;
    text-align: center;
}
.cq-s3-repeat-cta { width: 100%; max-width: 480px; }

/* Contact form section */
.cq-s3-contact {
    max-width: 640px;
    margin: 1rem auto 2.5rem;
    padding: 0 1rem;
    scroll-margin-top: 16px;
}
.cq-s3-contact-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.cq-s3-contact-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
    text-align: center;
    letter-spacing: -0.01em;
}
.cq-s3-contact-sub {
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    margin: 0 0 1.1rem;
    line-height: 1.5;
}
.cq-s3-contact-summary {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cq-s3-contact-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    align-items: baseline;
}
.cq-s3-contact-summary-label {
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}
.cq-s3-contact-summary-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}
.cq-s3-contact-trust {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: linear-gradient(135deg, rgba(2,132,199,0.06), rgba(20,184,166,0.06));
    border: 1px solid rgba(2,132,199,0.18);
    color: #0c4a6e;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0 0 1rem;
}
.cq-s3-contact-trust svg {
    color: #0284c7;
    flex-shrink: 0;
    margin-top: 1px;
}
.cq-s3-contact-form { display: flex; flex-direction: column; }
.cq-s3-contact-submit { margin-top: 0.25rem; }
.cq-s3-contact-call {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Inline success state */
.cq-s3-success { text-align: center; }
.cq-s3-success .cq-icon { margin: 0 auto 0.5rem; }
.cq-s3-success-timing { color: #475569; font-size: 0.9rem; }
.cq-s3-success-home { margin-top: 0.5rem; }

/* Casual callback-box treatment + side-by-side details card (Rail page) */
.cq-s3-contact { max-width: 1040px; margin-left: auto; margin-right: auto; }
.cq-s3-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 900px) {
    .cq-s3-contact-grid {
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
    }
    .cq-s3-contact-card { flex: 1 1 56%; max-width: 560px; }
    .cq-s3-details-card { flex: 1 1 44%; max-width: 440px; }
}
.cq-s3-contact-card {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 16px;
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.cq-s3-contact-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.cq-s3-contact-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: #DBEAFE;
    color: #2563EB;
}
.cq-s3-contact-head .cq-s3-contact-heading,
.cq-s3-contact-head .cq-s3-contact-sub { margin: 0; text-align: left; }
.cq-s3-contact-head .cq-s3-contact-heading { font-size: 1.15rem; line-height: 1.3; }
.cq-s3-contact-head .cq-s3-contact-sub { margin-top: 0.25rem; font-size: 0.92rem; color: #475569; }

.cq-s3-contact .cq-input-group { margin-bottom: 0.6rem; }
.cq-s3-contact .cq-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.2rem;
}
.cq-s3-contact .cq-consent {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0.75rem 0 0.85rem;
    text-align: center;
}
.cq-s3-contact .cq-consent a { color: #64748b; text-decoration: underline; }

/* Roof check details card */
.cq-s3-details-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.cq-s3-details-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.cq-s3-details-rows { display: flex; flex-direction: column; gap: 0.55rem; }
.cq-s3-details-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #E2E8F0;
}
.cq-s3-details-row:last-child { border-bottom: 0; }
.cq-s3-details-label {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #64748b; font-size: 0.88rem; font-weight: 500;
}
.cq-s3-details-label svg { color: #2563EB; }
.cq-s3-details-value { color: #0f172a; font-size: 0.9rem; font-weight: 600; text-align: right; }
.cq-s3-details-looksgood {
    margin: 0.95rem 0 0;
    text-align: center;
    color: #2563EB;
    font-style: italic;
    font-size: 0.92rem;
}
.cq-s3-details-looksgood span { margin-right: 0.35rem; }

/* Centered keep-scrolling line below both cards */
.cq-s3-keep-scrolling {
    text-align: center;
    margin: 1.25rem auto 0;
    max-width: 720px;
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
}
.cq-s3-keep-arrow {
    display: inline-block;
    margin-right: 0.4rem;
    color: #2563EB;
    font-weight: 700;
}

/* ============================================================
   Step 3 redesign — RoofLocal recommends {company} (rrg-* ns)
   Two reference images: white card hero (2-col) + photo proof
   ============================================================ */
.rrg-shell { max-width: 1100px; margin: 0 auto; padding: 24px 20px 56px; zoom: 0.75; }
.rrg-shell > section + section { margin-top: 22px; }

/* ---------- Hero card ---------- */
.rrg-hero-card {
  background: #fff;
  border: 1px solid #E5EAF2;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.rrg-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 880px) {
  .rrg-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; }
  .rrg-hero-card { padding: 36px; }
}

/* Mobile order per spec: headline -> owner photo -> callback -> trust -> only-note */
.rrg-hero-left { display: contents; }
@media (min-width: 880px) {
  .rrg-hero-left { display: block; }
}
.rrg-eyebrow {
  display: inline-block;
  color: #1E5EFF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  order: 1;
}
.rrg-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0B1B3A;
  margin: 0 0 12px;
  order: 2;
}
@media (min-width: 880px) { .rrg-headline { font-size: 2.2rem; } }
.rrg-sub {
  color: #475569;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 18px;
  order: 4;
}
.rrg-sub-em { color: #1E5EFF; font-weight: 600; }

.rrg-trust { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; order: 5; }
.rrg-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.rrg-trust-icon {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  background: #EEF4FF; color: #1E5EFF;
  display: inline-flex; align-items: center; justify-content: center;
}
.rrg-trust-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rrg-trust-text strong { color: #0B1B3A; font-size: 0.98rem; font-weight: 700; }
.rrg-trust-text span { color: #64748B; font-size: 0.88rem; line-height: 1.4; }

.rrg-only-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: #EEF4FF; border: 1px solid #DBE7FF;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1E3A8A; font-size: 0.88rem;
  margin: 0;
  order: 6;
}
.rrg-only-note svg { flex: 0 0 16px; color: #1E5EFF; margin-top: 2px; }
.rrg-only-note strong { color: #0B1B3A; }

/* ---------- Right column: owner card + callback ---------- */
.rrg-hero-right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 879px) {
  .rrg-hero-right { display: contents; }
  .rrg-owner-card { order: 3; }
  .rrg-call-card { order: 5; }
}

.rrg-owner-card {
  position: relative;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0B1B3A;
  max-width: 320px;
}
.rrg-owner-card picture { display: block; }
.rrg-owner-card img {
  display: block; width: 100%; height: auto; object-fit: contain;
}
.rrg-owner-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  color: #fff; text-align: center; z-index: 2;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(11,27,58,0) 0%, rgba(11,27,58,0.85) 100%);
}
.rrg-owner-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: #7FB0FF; }
.rrg-owner-name { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }

/* ---------- Callback card ---------- */
.rrg-call-card {
  background: #F7F9FC;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 18px;
}
.rrg-call-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.rrg-call-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  background: #EEF4FF; color: #1E5EFF;
  display: inline-flex; align-items: center; justify-content: center;
}
.rrg-call-title { font-size: 1.05rem; font-weight: 700; color: #0B1B3A; margin: 0 0 4px; line-height: 1.25; }
.rrg-call-sub { font-size: 0.85rem; color: #64748B; margin: 0; line-height: 1.45; }

.rrg-call-form { display: flex; flex-direction: column; gap: 12px; }
.rrg-field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .rrg-field-row { grid-template-columns: 1fr 1fr; } }
.rrg-field { display: flex; flex-direction: column; gap: 4px; }
.rrg-label { font-size: 0.78rem; color: #475569; font-weight: 600; }
.rrg-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #0B1B3A;
}
.rrg-input:focus { outline: none; border-color: #1E5EFF; box-shadow: 0 0 0 3px rgba(30,94,255,0.15); }
.rrg-input-error { border-color: #DC2626; }

.rrg-warn {
  display: flex; gap: 8px; align-items: flex-start;
  background: #FEF3C7; border: 1px solid #FCD34D;
  border-radius: 8px; padding: 8px 10px;
  color: #78350F; font-size: 0.82rem; line-height: 1.4;
}
.rrg-warn svg { flex: 0 0 18px; color: #B45309; margin-top: 1px; }
.rrg-closed {
  display: flex; gap: 6px; align-items: center;
  color: #64748B; font-size: 0.78rem; margin: 0;
}
.rrg-consent { font-size: 0.72rem; color: #94A3B8; margin: 0; line-height: 1.4; }
.rrg-consent a { color: #475569; text-decoration: underline; }

.rrg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(90deg, #2563EB, #1E5EFF);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 13px 18px; border: 0; border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(30,94,255,0.25);
}
.rrg-cta:hover { filter: brightness(1.05); }
.rrg-cta:disabled { opacity: 0.7; cursor: not-allowed; }

.rrg-success { text-align: center; padding: 12px 0; }
.rrg-success-icon {
  width: 56px; height: 56px; margin: 0 auto 10px;
  border-radius: 50%; background: #DCFCE7; color: #15803D;
  display: inline-flex; align-items: center; justify-content: center;
}
.rrg-success-when { color: #475569; font-size: 0.9rem; }
.rrg-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 14px; padding: 10px 16px;
  border: 1px solid #CBD5E1; border-radius: 8px;
  color: #0B1B3A; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  background: #fff;
}

/* ---------- Roof check details strip ---------- */
.rrg-details {
  background: #fff;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 760px) {
  .rrg-details { flex-direction: row; align-items: center; gap: 22px; padding: 14px 22px; }
}
.rrg-details-title {
  display: inline-flex; align-items: center; gap: 8px;
  color: #0B1B3A; font-weight: 700; font-size: 0.92rem;
  white-space: nowrap;
}
.rrg-details-title svg { color: #1E5EFF; }
.rrg-details-items {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px;
  flex: 1;
}
@media (min-width: 760px) {
  .rrg-details-items { display: flex; flex-wrap: wrap; gap: 6px 28px; }
}
.rrg-details-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rrg-details-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: #94A3B8; font-weight: 600;
}
.rrg-details-label svg { color: #1E5EFF; }
.rrg-details-value { font-size: 0.92rem; color: #0B1B3A; font-weight: 700; }

/* ---------- Why RoofLocal recommends ---------- */
.rrg-why {
  background: #fff;
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  padding: 26px 22px;
}
.rrg-why-title {
  text-align: center;
  font-size: 1.35rem; font-weight: 800; color: #0B1B3A;
  margin: 0 0 20px;
}
.rrg-why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) { .rrg-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rrg-why-grid { grid-template-columns: repeat(4, 1fr); } }
.rrg-why-card {
  background: #F7F9FC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.rrg-why-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: #EEF4FF; color: #1E5EFF;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.rrg-why-card strong { color: #0B1B3A; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.rrg-why-card span { color: #64748B; font-size: 0.85rem; line-height: 1.45; }

/* ---------- Proof photos ---------- */
.rrg-proof {
  background: transparent;
  padding: 0;
}
.rrg-proof-title { font-size: 1.6rem; font-weight: 800; color: #0B1B3A; margin: 0 0 6px; }
.rrg-proof-sub { color: #64748B; font-size: 0.95rem; margin: 0 0 18px; line-height: 1.5; }

.rrg-proof-big {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}
@media (min-width: 640px) { .rrg-proof-big { grid-template-columns: repeat(3, 1fr); } }
.rrg-proof-big-item {
  border-radius: 14px; overflow: hidden;
  background: #E5EAF2;
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.rrg-proof-big-item picture, .rrg-proof-big-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.rrg-proof-small {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .rrg-proof-small { grid-template-columns: repeat(3, 1fr); } }
.rrg-proof-small-item {
  border-radius: 12px; overflow: hidden;
  background: #E5EAF2;
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: 0 3px 10px rgba(15,23,42,0.05);
}
.rrg-proof-small-item picture, .rrg-proof-small-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Bottom trust strip ---------- */
.rrg-trust-strip {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 16px 20px;
}
.rrg-trust-strip-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: #EEF4FF; color: #1E5EFF;
  display: inline-flex; align-items: center; justify-content: center;
}
.rrg-trust-strip-text {
  margin: 0; color: #475569; font-size: 0.92rem; line-height: 1.5;
}
.rrg-trust-strip-text strong { color: #0B1B3A; }
