﻿:root {
    --primary: #1E40AF;
    --accent: #22C55E;
    --text: #111827;
    --bg: #F9FAFB;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
 /*   display: flex;*/
    align-items: center;
    justify-content: space-between;
    /*padding: 1rem;*/
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

    .nav .links a {
        margin-left: 1rem;
        text-decoration: none;
        color: #111827;
    }

.btn {
    padding: .6rem 1rem;
    border: 1px solid #111;
    border-radius: .5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.hero {
    padding: 6rem 0 3rem;
    background: linear-gradient(180deg, #eef2ff, #fff);
    text-align: center;
}

    .hero h1 {
        font-size: 2.25rem;
        margin: .5rem 0;
    }

    .hero .sub {
        font-size: 1.125rem;
        color: #4b5563;
    }

.hero-main-image {
    background-image: url("/images/hero/complysherpa-hero.jpg");
    background-size: cover;
    color: white;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1,1fr);
}

@media(min-width:768px) {
    .feature-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: .75rem;
}

.cta-band {
    background: #0f172a;
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
    margin: 3rem 0 0;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.pricing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1,1fr);
}

@media(min-width:900px) {
    .pricing-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.price {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: .75rem;
}

    .price.featured {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(30,64,175,.1);
    }

.grid input, .grid textarea {
    width: 100%;
    padding: .7rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    margin-bottom: .8rem;
}

.success {
    color: var(--accent);
    margin-top: .5rem;
}

.error {
    color: #dc2626;
    margin-top: .5rem;
}


/* ------------------------------------------------------------
   SURVEY LAYOUT & STEPS
------------------------------------------------------------ */
.step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .step h2 {
        margin-top: 0;
        font-size: 1.75rem;
        color: #1e293b;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .step p {
        margin-bottom: 1rem;
        color: #475569;
    }

    /* ------------------------------------------------------------
   FORMS
------------------------------------------------------------ */
    .step label {
        display: block;
        font-weight: 600;
        margin: 0.75rem 0 0.3rem;
        color: #334155;
    }

    .step input,
    .step input[type="text"],
    .step input[type="email"],
    .step input[type="number"],
    .step select,
    .step textarea {
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        font-size: 1rem;
        color: #0f172a;
        background-color: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .step input:focus,
        .step select:focus,
        .step textarea:focus {
            border-color: #1e40af;
            outline: none;
            box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
        }

    .step input[type="checkbox"] {
        margin-right: 0.5rem;
        transform: scale(1.2);
    }

    /* ------------------------------------------------------------
   RANGE SLIDERS
------------------------------------------------------------ */
    .step input[type="range"] {
        width: 100%;
        margin: 0.75rem 0 1rem;
        accent-color: #1e40af;
    }

/* Value bubble above range (optional, JS-driven if you want later) */
.range-value {
    text-align: right;
    font-size: 0.9rem;
    color: #475569;
}

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-primary {
    background-color: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

    .btn-primary:hover {
        background-color: #1e3a8a;
    }

.btn-secondary {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

    .btn-secondary:hover {
        background-color: #e2e8f0;
    }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* ------------------------------------------------------------
   PROGRESS BAR
------------------------------------------------------------ */
.survey-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 700px;
}

    .survey-progress .bar {
        flex-grow: 1;
        height: 8px;
        background-color: #e2e8f0;
        border-radius: 4px;
        overflow: hidden;
        margin: 0 1rem;
    }

    .survey-progress .bar-fill {
        height: 8px;
        width: 0%;
        background-color: #1e40af;
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .survey-progress .label {
        font-weight: 600;
        color: #475569;
    }

/* ------------------------------------------------------------
   SUCCESS / RESULT MESSAGE
------------------------------------------------------------ */
.result {
    text-align: center;
    max-width: 700px;
    margin: 3rem auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
}

    .result h2 {
        font-size: 2rem;
        color: #1e40af;
        margin-bottom: 1rem;
    }

    .result p {
        color: #334155;
        margin-bottom: 2rem;
    }

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 600px) {
    .step {
        padding: 1.25rem;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------ */

.faq-page {
    max-width: 800px;
    margin: 2rem auto 4rem;
}

.faq-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.faq-page .intro {
    margin-bottom: 2rem;
    color: #475569;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-item:hover {
    background-color: #f9fafb;
}

.faq-item h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    margin-top: 0.5rem;
    color: #334155;
    line-height: 1.5;
}


/* ------------------------------------------------------------
   Knowledge Portal
------------------------------------------------------------ */

.knowledge {
    margin: 2rem auto 4rem;
}

.kb-hero h1 {
    font-size: 2rem;
    margin-bottom: .25rem;
    color: #1e40af;
}

.kb-hero p {
    color: #475569;
    margin-bottom: 1rem;
}

.kb-controls {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.kb-search {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
}

.kb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.kb-tag {
    padding: .4rem .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    cursor: pointer;
}

.kb-tag.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

.kb-tag.clear {
    background: #fff;
}

.kb-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1,1fr);
}

@media(min-width:900px) {
    .kb-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.kb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem;
    height: 100%;
}

.kb-card h3 {
    margin: .25rem 0 .5rem;
}

.kb-card .excerpt {
    color: #475569;
}

.kb-card .meta {
    color: #64748b;
    font-size: .9rem;
    margin-top: .75rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.kb-card .card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.kb-article {
    margin: 2rem auto 4rem;
    max-width: 900px;
}

.kb-article header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: .25rem;
}

.kb-article .meta {
    color: #64748b;
    margin-bottom: 1rem;
}

.kb-article h2 {
    margin-top: 1.25rem;
    color: #111827;
}

.kb-article p, .kb-article li {
    color: #334155;
}

.kb-article pre {
    background: #0b1220;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: .5rem;
    overflow: auto;
}

.kb-cta {
    margin-top: 2rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.checklist li {
    margin: .4rem 0;
}
/* ---------- NAV ---------- */
.nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.brand img {
    height: 70px;
}

/* Links container */
.links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

    .links a {
        text-decoration: none;
        color: #0f172a;
        padding: 0.4rem 0.3rem;
        border-radius: 0.375rem;
    }

        .links a:hover {
            background: #f1f5f9;
        }

/* Buttons reuse your existing styles */
.btn {
    padding: .5rem .9rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-primary {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 0.5rem;
    cursor: pointer;
}

    .nav-toggle:focus {
        outline: 2px solid #1e40af;
        outline-offset: 2px;
    }

    .nav-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background: #0f172a;
        border-radius: 2px;
        margin: 5px 0;
        transition: transform .2s ease, opacity .2s ease;
    }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-inner {
        gap: 0.5rem;
    }

    .links {
        position: absolute;
        left: 0;
        right: 0;
        top: 60px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        display: none; /* hidden by default on mobile */
        flex-direction: column;
        padding: 0.75rem 1rem 1rem;
        gap: 0.25rem;
        z-index: 50;
    }

        .links.open {
            margin-top: 30px;
            display: flex;
        }
        /* shown when menuOpen is true */

        .links a {
            width: 100%;
            padding: 0.7rem 0.5rem;
        }

        .links .btn {
            width: 100%;
            text-align: center;
        }

    .nav-toggle {
        display: block;
    }
}

/* Optional: fancy hamburger X animation when open */
@media (max-width: 960px) {
    .nav-toggle.opened .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.opened .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.opened .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
@media (max-width: 960px) {
    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.25);
        z-index: 40;
    }
}
/* --- Cookie banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1.5rem;
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #1e3a8a;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Modal --- */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.cookie-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: .75rem;
    width: 90%;
    max-width: 400px;
}

.cookie-modal-content h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.cookie-modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
}
.lead-form {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.lead-form h3 {
    color: #1e3a8a;
}

.form-group {
    margin-bottom: 1rem;
}

.result.success {
    color: #16a34a;
    margin-top: 1rem;
}

.result.error {
    color: #dc2626;
    margin-top: 1rem;
}

input.form-control,
textarea.form-control,
select.form-control {
    width: 100%; /* stretch across the container */
    box-sizing: border-box; /* include padding in total width */
    border-radius: 0.75rem; /* smooth corners */
    border: 1px solid #d1d5db; /* light neutral border */
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

/* --- Hover and focus states for accessibility --- */
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    outline: none;
    border-color: #1e3a8a; /* your primary blue */
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* --- Label & spacing --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 0.25rem;
}

/* --- Buttons stay consistent --- */
button.btn {
    border-radius: 0.75rem;
    padding: 0.65rem 1.25rem;
}

/* Optional: make text areas a bit taller by default */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}