/* Service Details Page Styling */

/* Layout & Spacing */
.service-content-section {
    padding: 60px 0;
    background-color: #f9fafb;
    /* Light gray background for contrast against white blocks */
}

/* Reusing container-narrow if defined, else defining here to be safe */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Blocks (Cards) */
.content-block {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.content-block h2 {
    position: relative;
    margin-bottom: 30px;
    color: var(--color-primary-blue, #1e3a8a);
    font-size: 1.75rem;
    font-weight: 700;
    padding-bottom: 12px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-secondary-orange, #f97316);
    border-radius: 2px;
}

.content-block p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary, #475569);
    margin-bottom: 1rem;
}

/* Benefits Grid */
.benefit-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

.benefit-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary-blue, #1e3a8a);
}

.benefit-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #e0f2fe;
    color: var(--color-primary-blue, #1e3a8a);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 2px;
}

.benefit-item strong {
    color: var(--color-text-primary, #1e293b);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Process Steps - Vertical Timeline */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 10px;
    margin-top: 20px;
}

/* Timeline vertical line */
.process-steps::before {
    content: '';
    position: absolute;
    left: 27px;
    /* Align with center of step-number (35px width / 2 + 10px padding) */
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #cbd5e1;
    z-index: 0;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--color-primary-blue, #1e3a8a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--color-primary-blue, #1e3a8a);
    position: relative;
    z-index: 2;
}

/* Target the content div (the second child) */
.step-item>div:last-child {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.step-item:hover>div:last-child {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.step-item>div:last-child strong {
    display: block;
    color: var(--color-primary-blue, #1e3a8a);
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 700;
}

.step-item>div:last-child p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--color-text-secondary, #475569);
    line-height: 1.5;
}

/* Documents Checklist */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    /* Center aligned for single line items looks better */
    gap: 12px;
    background: #f0fdf4;
    /* Light green */
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.checklist-item svg {
    color: #16a34a;
    flex-shrink: 0;
}

.checklist-item span {
    font-weight: 500;
    color: #15803d;
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary-blue, #1e3a8a);
}

.faq-item.active {
    border-color: var(--color-primary-blue, #1e3a8a);
    background: #eff6ff;
    /* Very light blue tint when active */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: var(--color-text-primary, #1e293b);
}

.faq-question .arrow {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary-blue, #1e3a8a);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--color-text-secondary, #475569);
    line-height: 1.6;
    display: none;
    /* Controlled by JS */
    animation: fadeIn 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Indicators in Hero (Ensuring they look good if not covered by main css) */
.trust-indicators {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left align for hero split */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* ===== HERO BUTTON FIXES ===== */
/* Force 'Talk to Expert' (btn-secondary) to be Outline White by default, Solid White on text */
.hero .hero-ctas .btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.hero .hero-ctas .btn-secondary:hover {
    background: #ffffff !important;
    color: var(--color-primary-blue, #0A58CA) !important;
    transform: translateY(-2px);
}

/* Ensure Primary 'Get Quote' is White solid */
.hero .hero-ctas .btn-primary {
    background: #ffffff !important;
    color: var(--color-primary-blue, #0A58CA) !important;
    border: 1px solid #ffffff !important;
}

.hero .hero-ctas .btn-primary:hover {
    background: #f8fafc !important;
    /* Slight dim on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}


/* ===== FINAL CTA SECTION - CORRECTION ===== */
/* This handles the 'Ready to Get Started' section color */
.section-blue {
    background: var(--gradient-blue, linear-gradient(135deg, #0A58CA 0%, #0949B0 100%));
    color: var(--color-white, #FFFFFF);
    padding: 80px 0;
    /* var(--spacing-2xl) */
}

/* Force headings and text to white in this section */
.section-blue h2 {
    color: #FFFFFF !important;
    margin-bottom: 1rem;
}

.section-blue .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2.5rem;
    /* space before buttons */
    font-size: 1.25rem;
}

.section-blue .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.section-blue .btn-outline:hover {
    background: #ffffff;
    color: var(--color-primary-blue, #0A58CA);
}