/* ==========================================================================
   BROCUS HOME SECURITY - NEW INSTALLATIONS DIAGNOSTIC PAGE STYLES
   ========================================================================== */

:root {
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-blue-light: rgba(37, 99, 235, 0.08);
    --dark-navy: #0d1b2e;
    --slate-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* 1. HERO SECTION */
.diagnostic-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(13, 27, 46, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%),
        url('../../img/banner.webp') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    overflow: hidden;
}

.diagnostic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.diagnostic-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.diagnostic-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.diagnostic-title span {
    color: #60a5fa;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.diagnostic-subhead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 35px;
}

.hero-cta-btn {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    display: inline-block;
    text-decoration: none;
}

.hero-cta-btn:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

/* 2. INTRO SECTION */
.diagnostic-intro {
    background-color: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.intro-lead-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.intro-sub-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.intro-img-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.intro-img-wrapper:hover {
    transform: translateY(-5px);
}

/* 3. AGE CHECK INTERACTIVE TOOL */
.age-check-section {
    background-color: var(--slate-bg);
    padding: 80px 0;
}

.age-check-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 40px;
    overflow: hidden;
}

.age-check-title {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.diagnostic-item {
    position: relative;
    padding: 16px 20px 16px 54px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: block;
}

.diagnostic-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.diagnostic-item.checked {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.02);
}

.diagnostic-item input[type="checkbox"] {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.diagnostic-item input[type="checkbox"]:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.diagnostic-item input[type="checkbox"]:checked::after {
    content: '\F272';
    font-family: "bootstrap-icons";
    font-weight: 900;
    font-size: 11px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.diagnostic-item-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

/* Score Panel styles */
.score-panel {
    background: var(--dark-navy);
    color: #ffffff;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(13, 27, 46, 0.15);
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-total {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 2px;
}

.score-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.score-recommendation {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #e2e8f0;
    font-weight: 400;
    margin-top: 10px;
}

/* Brackets colors */
.bg-bracket-low {
    background-color: var(--success-color);
    color: #fff;
}

.bg-bracket-mid {
    background-color: var(--warning-color);
    color: #fff;
}

.bg-bracket-high {
    background-color: var(--danger-color);
    color: #fff;
}

.border-bracket-low {
    border-color: var(--success-color);
}

.border-bracket-mid {
    border-color: var(--warning-color);
}

.border-bracket-high {
    border-color: var(--danger-color);
}

/* 4. OLD VS MODERN TABLE */
.comparison-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.table-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: var(--dark-navy);
    color: #ffffff;
    font-weight: 700;
    padding: 20px 24px;
    border: none;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 18px 24px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.comparison-table .feature-title {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table .old-system-cell {
    color: #ef4444;
    font-weight: 500;
}

.comparison-table .modern-system-cell {
    color: var(--brand-blue);
    font-weight: 600;
}

.comparison-summary-box {
    margin-top: 35px;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--slate-bg);
    border-left: 4px solid var(--brand-blue);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 5. REPAIR OR REPLACE */
.repair-replace-section {
    background-color: var(--slate-bg);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.repair-img-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.repair-img-wrapper:hover {
    transform: translateY(-5px);
}

/* 6. WHAT NEW INCLUDES */
.what-new-section {
    background-color: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.what-new-img-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.what-new-img-wrapper:hover {
    transform: translateY(-5px);
}

.what-new-callout {
    background: var(--dark-navy);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(13, 27, 46, 0.15);
}

.what-new-callout-title {
    font-weight: 800;
    margin-bottom: 15px;
}

.what-new-callout-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.callout-phone-btn {
    background-color: var(--brand-blue);
    color: white;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    display: inline-block;
}

.callout-phone-btn:hover {
    background-color: var(--brand-blue-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* 7. FAQ ACCORDION */
.faq-section {
    background-color: var(--slate-bg);
    padding: 80px 0;
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 24px;
    background: #ffffff;
    border: none;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-blue);
    background-color: rgba(37, 99, 235, 0.02);
}

.faq-accordion .accordion-body {
    padding: 20px 24px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    background-color: rgba(37, 99, 235, 0.01);
}

/* 8. FINAL CTA & DISCLOSURES */
.final-cta-section {
    background-color: var(--dark-navy);
    color: #ffffff;
    padding: 90px 0 70px;
    text-align: center;
}

.final-cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.final-cta-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.final-cta-phone-btn {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 16px 45px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    display: inline-block;
}

.final-cta-phone-btn:hover {
    background-color: var(--brand-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.final-cta-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 20px;
}

.disclaimer-section {
    background-color: #060d18;
    color: #64748b;
    padding: 40px 0;
    font-size: 0.8rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-text {
    max-width: 1000px;
    margin: 0 auto;
}

/* RESPONSIVE TABLE FORMAT PRESERVATION */
@media (max-width: 768px) {
    .comparison-table th {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    .comparison-table td {
        padding: 14px 12px;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .comparison-table td i {
        font-size: 0.9rem;
    }
}


@media (max-width: 500px) {
    .col-lg-6 img {
        margin-bottom: 0;
    }

    .col-lg-6 {
        margin-top: 0;
        padding-bottom: 0 !important;
    }

    .diagnostic-hero .container {
        padding-bottom: 0 !important;
    }
}

/* PRIORITY CARD SYSTEM */
.priority-cards-list {
    display: flex;
    flex-direction: column;
}

.priority-card {
    border-left: 4px solid var(--brand-blue) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.priority-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.priority-number-badge {
    width: 32px;
    height: 32px;
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(37, 99, 235, 0.05);
}

.priority-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.priority-card-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* PRIORITY IMAGE WRAPPER */
.priority-img-wrapper {
    height: 480px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.priority-img-wrapper:hover {
    transform: translateY(-5px);
}

.priority-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .priority-img-wrapper {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .priority-img-wrapper {
        height: 240px;
    }
}

@media (max-width: 500px) {
    .col-lg-6 img {
        margin-bottom: 0;
    }

    .col-lg-6 {
        margin-top: 0;
        padding-bottom: 0 !important;
    }

    .diagnostic-hero .container {
        padding-bottom: 0 !important;
    }
}