/* 
=========== DESIGN SYSTEM & VARIABLES =========== 
Using Deep Blue, Professional Green, and Crisp Whites
*/
:root {
    /* Brand Colors */
    --primary-blue: #0A2540;
    --secondary-blue: #1F4576;
    --accent-blue: #356A99;
    --primary-green: #2E9F2E;
    /* Current TechBrains Green */
    --secondary-green: #00897B;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --bg-light: #F8F9FA;
    --light-gray: #E0E0E0;
    --text-dark: #2D3748;
    --text-gray: #4A5568;
    --text-light-gray: #A0AEC0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shapes */
    --border-radius: 8px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* =========== RESET & GLOBAL =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.text-blue {
    color: var(--accent-blue) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.text-light-gray {
    color: var(--text-light-gray) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light {
    background-color: var(--off-white);
}

.bg-dark {
    background-color: var(--primary-blue);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.fw-bold {
    font-weight: 700;
}

.bg-primary {
    background-color: var(--primary-blue);
}

.flex-reverse > :first-child {
    order: 2;
}

.flex-reverse > :last-child {
    order: 1;
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.rounded-image {
    border-radius: 12px;
}

/* =========== TYPOGRAPHY =========== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pre-title {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-green);
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* =========== BUTTONS =========== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 165, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white) !important;
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* =========== NAVIGATION =========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

nav.scrolled {
    background: rgba(10, 37, 64, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    transition: var(--transition);
}

.footer-logo-img {
    height: 48px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

/* Nav text is always white over dark backgrounds */
nav .nav-links a {
    color: var(--white);
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* =========== HERO SECTION =========== */
.hero {
    position: relative;
    padding: 150px 0 100px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--primary-blue);
    background-image: radial-gradient(circle at top left, rgba(95, 190, 95, 0.2) 0%, transparent 60%);
    overflow: hidden;
}

.hero-content {
    margin-left: max(2rem, calc((100vw - var(--container-width)) / 2));
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--light-gray);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons i {
    margin-left: 8px;
}

.hero-image {
    position: relative;
    z-index: 2;
    padding-right: max(2rem, calc((100vw - var(--container-width)) / 2));
}

.hero-image img {
    border-radius: 20px 0 0 20px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    height: 70vh;
    object-fit: cover;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.trust-badge {
    position: absolute;
    bottom: -30px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-xl);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.trust-badge .badge-title {
    margin-bottom: 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.trust-badge p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* =========== SECTION GRIDS & LAYOUTS =========== */
section {
    padding: var(--section-padding);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 2rem;
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.stat-label {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0;
}

/* =========== SERVICES SECTION =========== */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 5px solid transparent;
    position: relative;
    top: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-green);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}


/* --- Card Tier 1: Full Managed (Premier) --- */
.tier-1-card {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
    z-index: 2;
}

.tier-1-card h3 {
    color: var(--white);
}

.tier-1-card p.card-desc {
    color: var(--light-gray);
}

.tier-1-card .card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-1-card:hover {
    transform: scale(1.05) translateY(-10px);
    border-top-color: var(--primary-green);
}

/* --- Card Tier 2: Fractional IT --- */
.tier-2-card {
    background: var(--secondary-blue);
    color: var(--white);
}

.tier-2-card h3 {
    color: var(--white);
}

.tier-2-card p.card-desc {
    color: var(--light-gray);
}

.tier-2-card .card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-2-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-green);
}

/* --- Card Tier 3: Fixed-Term --- */
.tier-3-card {
    background: var(--accent-blue);
    color: var(--white);
}

.tier-3-card h3 {
    color: var(--white);
}

.tier-3-card p.card-desc {
    color: var(--light-gray);
}

.tier-3-card .card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-3-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-green);
}

.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* =========== PROFICIENCIES SECTION =========== */
.proficiency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.prof-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.prof-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

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

.prof-header i {
    font-size: 2rem;
}

.prof-header h3 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1rem;
}

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

.highlight-box {
    background: rgba(0, 191, 165, 0.1);
    border-color: var(--primary-green);
}

/* =========== INDUSTRIES SECTION =========== */
.industry-list li {
    background: var(--off-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.industry-list li:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: var(--shadow-md);
}

.industry-list i {
    font-size: 1.5rem;
    width: 30px;
}

.grid-gallery {
    position: relative;
}

.mt-lg {
    margin-top: -100px;
    margin-left: 50px;
    position: relative;
    z-index: 2;
    border: 10px solid var(--white);
}

/* =========== CONTACT SECTION =========== */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary-blue);
    background-image: radial-gradient(circle at bottom right, rgba(95, 190, 95, 0.3) 0%, transparent 70%);
    padding: 4rem 3rem;
    position: relative;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 5px;
}

.info-item h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.info-item p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form-container {
    padding: 4rem 3rem;
}

.lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-help-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input.touched:invalid,
select.touched:invalid,
textarea.touched:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    background: var(--off-white);
    padding: 1rem;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    font-size: 0.95rem;
    cursor: pointer;
}

/* =========== FOOTER =========== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-brand p {
    color: var(--white);
}

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

.footer-links a {
    color: var(--text-light-gray);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light-gray);
}

/* =========== ANIMATIONS =========== */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content,
    .hero-image {
        margin: 0;
        padding: 0 2rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
        /* Hide image on tablet/mobile for cleaner look */
    }

    .cards-grid-3,
    .proficiency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .flex-reverse > :first-child,
    .flex-reverse > :last-child {
        order: unset;
    }

    .mt-lg {
        margin-left: 0;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav.scrolled {
        padding: 1rem 0;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        padding: 1rem 2rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cards-grid-3,
    .proficiency-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .lead-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .tier-1-card:hover {
        transform: translateY(-10px);
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
}

/* =========== ABOUT PAGE SPECIFICS =========== */
.about-hero {
    padding: 130px 0 50px;
    background: var(--primary-blue);
}

.about-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    font-size: 1rem;
}

.company-history {
    padding: 100px 0;
}

.our-team {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* =========== REVIEWS PAGE SPECIFICS =========== */
.reviews-page {
    padding: 100px 0;
    min-height: 50vh;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-green);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.platform-icon {
    width: 24px;
    height: 24px;
}

.review-text {
    font-style: italic;
    flex-grow: 1;
    color: var(--text-dark);
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* =========== FORM PAGES (Onboarding/Offboarding) =========== */
.embedded-form {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.form-section {
    margin: 2.5rem 0 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary-blue);
}

.form-section-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
}

.form-section-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-html-block {
    background: #f0f4f8;
    border-left: 4px solid var(--primary-blue);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.5;
}

.radio-label input,
.checkbox-label input {
    margin-top: 0.25rem;
    accent-color: var(--primary-green);
}

.sub-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.list-field,
.list-field-multi {
    margin-top: 0.5rem;
}

.list-field input {
    margin-bottom: 0.5rem;
}

.list-field-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.list-field-row input {
    flex: 1;
    margin-bottom: 0;
}

.list-field-row .form-row {
    flex: 1;
}

/* For multi-field rows, align buttons with the input fields, not the labels */
.list-field-multi .list-field-row {
    align-items: flex-end;
    padding-bottom: 0.3rem;
}

.btn-add-row-icon,
.btn-delete-row-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    padding: 0;
}

.btn-add-row-icon:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-delete-row-icon {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-delete-row-icon:hover {
    background: #dc3545;
    color: var(--white);
}

/* Only show plus on the last row */
.list-field-row .btn-add-row-icon {
    display: none;
}

.list-field-row:last-child .btn-add-row-icon {
    display: flex;
}

/* Hide delete when there's only one row */
.list-field-row:only-child .btn-delete-row-icon {
    display: none;
}

.btn-add-row {
    background: none;
    border: 1px dashed var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-add-row:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.required {
    color: #e74c3c;
}

.tally-placeholder {
    padding: 3rem 1rem;
}

.thank-you-body {
    padding: 80px 0 100px;
    min-height: 40vh;
}

@media (max-width: 600px) {
    .embedded-form .container {
        padding: 0 1rem;
    }

    .form-wrapper {
        padding: 2rem 1.5rem !important;
    }
}

/* =========== FORM PAGE OVERRIDES =========== */
body.form-page nav {
    position: absolute !important;
    background: transparent !important;
}

body.form-page nav.scrolled {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1.5rem 0 !important;
}

.form-hero-title {
    font-size: 2.8rem !important;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-hero-title {
        font-size: 2.2rem !important;
    }
}

/* Maintain center alignment of nav links when CTA is missing */
body.form-page .nav-container::after {
    content: "";
    display: block;
    width: 200px;
}

/* =========== CONDENSED FORM SPACING =========== */
body.form-page .form-group {
    margin-bottom: 0.8rem;
}

body.form-page .form-group label {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

body.form-page .form-group input,
body.form-page .form-group select,
body.form-page .form-group textarea {
    font-size: 0.88rem;
    padding: 0.5rem 0.7rem;
}

body.form-page .form-section {
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0;
}

body.form-page .form-section-title {
    font-size: 1.15rem;
    padding-bottom: 0;
    margin-bottom: 0.1rem;
}

body.form-page .form-help-text {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

body.form-page .form-html-block {
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
}

body.form-page .radio-group,
body.form-page .checkbox-group {
    gap: 0.35rem;
}

body.form-page .radio-label,
body.form-page .checkbox-label {
    font-size: 0.88rem;
}

body.form-page .form-wrapper {
    padding: 2.5rem 2rem !important;
}

/* =========== CONFIRMATION SUMMARY MODAL =========== */
.form-summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-summary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.form-summary-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--primary-green);
}

.form-summary-content h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.form-summary-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.summary-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.summary-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
    vertical-align: top;
}

.summary-label {
    font-weight: 600;
    color: var(--primary-blue);
    width: 45%;
    padding-right: 1.5rem;
}

.summary-value {
    color: var(--text-dark);
}

.form-summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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


/* =========== COOKIE CONSENT BANNER (dormant — uncomment to activate) ===========

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.25rem 2rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-banner p a {
    color: var(--primary-green);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner .btn-accept {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner .btn-accept:hover {
    background: #4ea94e;
}

.cookie-banner .btn-decline {
    background: transparent;
    color: var(--text-light-gray);
    border: 1px solid var(--text-light-gray);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner .btn-decline:hover {
    color: var(--white);
    border-color: var(--white);
}

=========== END COOKIE CONSENT BANNER =========== */