/* ==========================================================================
   Fractional CTO Website Styles - ACCESSIBLE VERSION
   WCAG 2.0 Level AA Compliant
   Fixed contrast issues for all buttons, tabs, footer headings, and progress indicators
   ========================================================================== */

/* Root Variables */
:root {
    --primary-color: #8a6200;  /* Changed from #B8860B for WCAG AA contrast (4.5:1 minimum) */
    --primary-dark: #7a5700;   /* Changed from #8B6508 for darker hover state */
    --secondary-color: #2C3E50;
    --accent-color: #9B59B6;
    --text-color: #333333;
    --text-light: #666666;
    --bg-cream: #FAF7F2;
    --bg-blush: #FFF5F7;
    --bg-white: #FFFFFF;
    --border-color: #E8E1D6;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Container Utilities */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 2rem 0;
}

/* Navigation */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-blush) 0%, var(--bg-cream) 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    min-height: 600px; /* Prevent layout shift during font loading - desktop only */
}

/* Remove min-height on mobile to ensure LCP content is visible */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero .lead {
    font-size: 1.375rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Problem/Solution Section */
.problem-solution {
    background: var(--bg-white);
}

.problem-grid,
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-item,
.solution-item {
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger-color);
}

.solution-item {
    border-left-color: var(--success-color);
    background: var(--bg-blush);
}

.problem-item h4,
.solution-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Stage Tabs */
.stage-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stage-tab {
    padding: 1.25rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    min-width: 160px;
}

.stage-tab span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.stage-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stage-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.stage-tab.active span {
    color: rgba(255,255,255,0.9);
}

.stage-content {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.stage-content.active {
    display: block;
}

.stage-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stage-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.stage-content ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.stage-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.pricing-box {
    background: var(--bg-blush);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.commitment {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Approach Section */
.approach-section {
    background: var(--bg-white);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.approach-card {
    background: var(--bg-cream);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.approach-card .phase-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.approach-card h4 {
    margin-bottom: 1rem;
}

/* Flowchart Approach Styles */
.flowchart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.flow-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.flow-card-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.flow-phase {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.flow-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.flow-timeline {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.flow-card-body {
    padding: 1.5rem;
    text-align: left;
}

.flow-card-body p {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.flow-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow-card-body li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.flow-card-body li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.flow-card-result {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 0 12px 12px;
}

.flow-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Flowchart */
@media (max-width: 1200px) {
    .flowchart-container {
        flex-wrap: wrap;
        gap: 2rem 1rem;
    }

    .flow-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: none;
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .flowchart-container {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-card {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .flow-arrow {
        display: flex;
        transform: rotate(90deg);
        margin: -1rem 0;
    }
}

/* Tech Stack */
.tech-stack {
    background: var(--bg-blush);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-badge {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: white;
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.highlight-item {
    padding: 1.5rem;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.highlight-item h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card .badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card h4 {
    margin-bottom: 0.5rem;
}

.pricing-card .stage-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pricing-card .price-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-card .equity-tag {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Fit Cards */
.fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.fit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.fit-card.good-fit {
    border-left: 4px solid var(--success-color);
}

.fit-card.not-fit {
    border-left: 4px solid var(--danger-color);
}

.fit-card h4 {
    margin-bottom: 1.5rem;
}

.fit-card ul {
    list-style: none;
    padding: 0;
}

.fit-card ul li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.fit-card.good-fit ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.fit-card.not-fit ul li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-white);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item h5 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
}

/* FAQ Accordion Cards */
.faq-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.faq-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-icon-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.faq-card.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.availability-alert {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 600px;
    margin: 2rem auto 0;
    color: white;
}

.availability-alert strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 2rem;
}

footer h5 {
    color: white;  /* ACCESSIBILITY FIX: Added for WCAG AA contrast */
    margin-bottom: 1rem;
}

footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

footer a:hover {
    color: white;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   APPLICATION FORM STYLES
   ========================================================================== */

.apply-hero {
    background: linear-gradient(135deg, var(--bg-blush) 0%, var(--bg-cream) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
}

.apply-hero h1 {
    margin-bottom: 1rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.form-card h3 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section input[type="url"],
.form-section input[type="number"],
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 110, 0, 0.1);
}

.form-section textarea {
    resize: vertical;
    min-height: 120px;
}

.form-section .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.form-section .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.form-section .checkbox-label:hover {
    background: var(--bg-cream);
}

.form-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.stage-info-box {
    background: var(--bg-blush);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.stage-info-box h5 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.stage-info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.stage-info-box ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.process-section {
    background: var(--bg-cream);
    padding: 3rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h5 {
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ACCESSIBILITY FIX: Progress indicator contrast */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #595959;  /* ACCESSIBILITY FIX: 4.51:1 contrast ratio on white */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.progress-step.active .progress-step-circle {
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .progress-step-circle {
    background: var(--success-color);
    color: white;
}

.progress-step-label {
    font-size: 0.85rem;
    color: #595959;  /* ACCESSIBILITY FIX: 4.51:1 contrast ratio on white */
    font-weight: 500;
}

.progress-step.active .progress-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step:last-child .progress-step-line {
    display: none;
}

.progress-step.completed .progress-step-line {
    background: var(--success-color);
}

.next-steps-section {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.next-steps-section h4 {
    margin-bottom: 1.5rem;
}

.next-steps-section ul {
    list-style: none;
    padding: 0;
}

.next-steps-section ul li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.next-steps-section ul li:last-child {
    border-bottom: none;
}

.next-steps-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.not-moving-forward {
    background: var(--bg-blush);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.not-moving-forward h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.not-moving-forward ul {
    list-style: none;
    padding: 0;
}

.not-moving-forward ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-light);
}

.not-moving-forward ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    section { padding: 3rem 0; }

    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.75rem; }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .stage-tabs {
        flex-direction: column;
    }

    .stage-tab {
        width: 100%;
    }

    .stage-content {
        padding: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .form-card {
        padding: 2rem;
    }

    .container-narrow {
        padding: 0 1.5rem;
    }

    /* Fix navbar button overflow on mobile */
    .navbar-nav .nav-item .btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

    .hero h1 { font-size: 2.25rem; }

    .stat-number { font-size: 2.5rem; }

    .btn {
        width: auto;
        display: block;
    }

    /* Navbar buttons should not be full width */
    .navbar-nav .nav-item .btn {
        width: auto;
        display: inline-block;
    }

    .form-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Geographic Section Styles
   ========================================================================== */

.geo-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.geo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.geo-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.geo-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Industry Screening Styles - Excluded Options
   ========================================================================== */

/* Style excluded options in dropdowns with warning color */
option[data-excluded="true"] {
    background-color: #ffe6e6;
    color: var(--danger-color);
    font-weight: 600;
}

/* Alternative styling for browsers that don't support option background colors */
select.has-excluded-option {
    border-color: var(--warning-color);
}

/* Visual indicator - add emoji/icon to excluded options via JavaScript if needed */
/* Note: Some browsers (especially Safari) have limited option styling support */

/* ==========================================================================
   BLOG ARTICLE STYLES
   ========================================================================== */

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content blockquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    margin: 2rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content table {
    margin: 2rem 0;
}

/* Blog Post Card on Index */
.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Override Bootstrap 5 focus ring variables */
.blog-post.card,
article.blog-post.card,
article.card.blog-post {
    --bs-focus-ring-width: 0 !important;
    --bs-focus-ring-opacity: 0 !important;
    --bs-focus-ring-color: transparent !important;
    --bs-card-border-color: #dee2e6 !important;
}

/* Remove all click/selection highlighting on blog cards */
.blog-post,
.blog-post *,
.blog-post a,
.blog-post.card,
.blog-post .card-body {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Aggressively remove ALL possible focus/active/click states */
.blog-post:focus,
.blog-post:active,
.blog-post:focus-visible,
.blog-post:focus-within,
.blog-post *:focus,
.blog-post *:active,
.blog-post *:focus-visible,
.blog-post *:focus-within,
article.blog-post:focus,
article.blog-post:active,
article.blog-post:focus-visible,
article.blog-post:focus-within,
article.card.blog-post:focus,
article.card.blog-post:active,
article.card.blog-post:focus-visible,
article.card.blog-post:focus-within {
    outline: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important; /* Keep original Bootstrap card border */
    border-width: 1px !important;
    border-color: #dee2e6 !important;
    background-color: transparent !important;
}

/* Force remove any golden/primary color borders or outlines - maximum specificity */
.blog-post,
.blog-post:focus,
.blog-post:active,
.blog-post:focus-visible,
article.blog-post,
article.card.blog-post,
article.card.blog-post:focus,
article.card.blog-post:active,
article.card.blog-post:focus-visible {
    border-color: #dee2e6 !important; /* Bootstrap's default card border */
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
}

/* Override Bootstrap's .card:focus utility class if it exists */
.card.blog-post:focus {
    border-color: #dee2e6 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Nuclear option: Remove ALL possible focus/active visual states */
.blog-post.card,
.blog-post.card *,
.blog-post.card::before,
.blog-post.card::after,
article.blog-post,
article.blog-post *,
article.blog-post::before,
article.blog-post::after,
article.card.blog-post,
article.card.blog-post *,
article.card.blog-post::before,
article.card.blog-post::after {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.blog-post.card:focus,
.blog-post.card:active,
.blog-post.card:focus-visible,
article.blog-post:focus,
article.blog-post:active,
article.blog-post:focus-visible,
article.card.blog-post:focus,
article.card.blog-post:active,
article.card.blog-post:focus-visible {
    border: 1px solid #dee2e6 !important;
    border-color: #dee2e6 !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Remove active state colors on links and buttons in blog cards */
.blog-post a:active,
.blog-post .btn:active {
    background-color: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure Read More button keeps its style on active */
.blog-post .btn-outline-primary:active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Ensure button text is visible in article CTA boxes */
.article-content .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.article-content .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

/* Print Styles */
@media print {
    nav, footer, .cta-section {
        display: none;
    }

    body {
        background: white;
    }

    .stage-content {
        display: block !important;
        page-break-inside: avoid;
    }

    .article-content {
        font-size: 12pt;
    }
}
