:root {
    /* Colors */
    --primary: #0e4f5f;
    /* Deep Teal - Professional & Medical */
    --primary-dark: #08333e;
    --secondary: #ff914d;
    /* Warm Terracotta/Orange - Warmth */
    --secondary-hover: #e67e3a;

    --bg-body: #f8fcfc;
    /* Very light minty/cool grey */
    --bg-white: #ffffff;
    --bg-light: #eff6f7;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(14, 79, 95, 0.08), 0 4px 6px -2px rgba(14, 79, 95, 0.04);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

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

.section {
    padding: 5rem 0;
}

.subheading {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    background: rgba(255, 145, 77, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 77, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.full-width {
    width: 100%;
    justify-content: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 79, 95, 0.05) 0%, rgba(255, 145, 77, 0.05) 100%);
    border-bottom-left-radius: 100px;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e0f2fe;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero h1 .highlight {
    position: relative;
    z-index: 1;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(255, 145, 77, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-image-wrapper {
    position: relative;
}

.hero-img-card {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-img-card:hover {
    transform: rotate(0);
}

/* Images */
.hero-img,
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.hero-img-card {
    height: 500px;
    /* Enforce height on the container */
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary-dark);
    color: var(--bg-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(-2deg);
    max-width: 260px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-card strong {
    color: white;
    display: block;
    font-size: 0.95rem;
}

.floating-card span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.icon-box {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

/* Services Section */
.services {
    background-color: var(--bg-body);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(14, 79, 95, 0.1), 0 10px 10px -5px rgba(14, 79, 95, 0.04);
    border-color: var(--secondary);
}

.service-card.featured {
    background: var(--primary-dark);
    color: white;
}

.service-card.featured h3,
.service-card.featured p {
    color: white;
}

.service-card.featured .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.service-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.service-list li i {
    color: var(--secondary);
    width: 16px;
    height: 16px;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}



.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .year {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem 0;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.f-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Process Section */
.process {
    background-color: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(14, 79, 95, 0.1);
    margin-bottom: -1rem;
    z-index: 1;
    position: relative;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-connector {
    flex: 0.5;
    height: 2px;
    background: var(--border-color);
    align-self: center;
    margin-bottom: 3rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 79, 95, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 5rem 0 2rem 0;
}

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

.footer-logo {
    color: white;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-col ul li a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero-btns,
    .hero-stats {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        height: 400px;
    }

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
        border-radius: 0;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        height: 80%;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page Headers for Sub-pages --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: calc(var(--header-height) + 3rem) 0 4rem 0;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0;
}

.breadcrumb {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

/* --- Content Content Styles --- */
.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* --- Pricing/Cost Tables --- */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cost-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cost-card.highlight {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.cost-card.highlight::before {
    content: 'Empfohlen';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.cost-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cost-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0 0.5rem 0;
}

.cost-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-list li i {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* --- Multi-Step Form --- */
.multistep-container {
    max-width: 800px;
    margin: -3rem auto 0 auto;
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    z-index: 10;
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--secondary);
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.form-step.active {
    display: block;
}

.form-step.visible {
    opacity: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

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

/* Force 2 columns on tablets/small desktops if items wrap poorly */
@media (min-width: 650px) and (max-width: 900px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.option-card:hover {
    border-color: var(--secondary);
    background: rgba(255, 145, 77, 0.02);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.option-card.selected {
    border-color: var(--secondary);
    background: rgba(255, 145, 77, 0.08);
    box-shadow: 0 0 0 1px var(--secondary);
}

.option-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--secondary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.option-card input[type='radio'],
.option-card input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Funding Box */
.funding-box {
    background: #e0f2fe;
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary);
    margin: 2rem 0;
}

.funding-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.team-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}


/* --- Advanced Form Styling --- */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.1);
}

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

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

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-left: 3rem;
}

/* Toggle Switch Style for Yes/No */
.toggle-group {
    display: flex;
    gap: 1rem;
}

.toggle-option {
    flex: 1;
    position: relative;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.toggle-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.toggle-option input:checked+label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(14, 79, 95, 0.2);
}

/* Range Slider */
.range-wrapper {
    padding: 1rem 0;
}


/* --- Premium Form UX Improvements --- */

/* 1. Global Form Aesthetics */
.detailed-form-container {
    background: #ffffff;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.form-content {
    padding: 3.5rem 4rem !important;
    /* More breathing room */
}

/* 2. Focused Input Elements */
.form-label-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label-group label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.form-label-group:focus-within label {
    color: var(--primary);
    /* Highlight label when active */
}

/* Custom Text Inputs & Textareas */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    /* Standard padding - no extra space for icon */
    background-color: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    /* Softer corners */
    font-size: 1.05rem;
    /* Larger text for readability */
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Only inputs WITH icon wrapper get extra left padding */
.input-icon-wrapper input[type='text'],
.input-icon-wrapper input[type='email'],
.input-icon-wrapper input[type='tel'],
.input-icon-wrapper input[type='number'],
.input-icon-wrapper textarea {
    padding-left: 3.5rem;
}

/* Icon positioning fix for the larger inputs */
.input-icon-wrapper i {
    left: 1.25rem;
    color: #94a3b8;
    transition: color 0.2s;
}

/* Focus State - The 'Shadow Glow' */
input:focus,
textarea:focus,
select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 79, 95, 0.15);
    /* Primary color glow */
    outline: none;
}

.form-label-group:focus-within i {
    color: var(--primary);
    /* Icon lights up too */
}

/* 3. Better Radio/Select 'Cards' (replacing standard dropdowns where possible) */
.card-select-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.card-option {
    position: relative;
}

.card-option input[type='radio'] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    /* Ensure label text isn't blue by default unless needed */
    color: var(--text-muted);
    font-weight: 500;
}

.card-option label i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    transition: color 0.2s, transform 0.2s;
}

/* Hover State */
.card-option label:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.card-option label:hover i {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Selected State */
.card-option input[type='radio']:checked+label {
    background: rgba(255, 145, 77, 0.05);
    border-color: var(--secondary);
    /* Primary Orange Accent */
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 145, 77, 0.15);
}

.card-option input[type='radio']:checked+label i {
    color: var(--secondary);
}

/* 4. Person Card Refinement */
.person-card {
    border: 2px solid #f1f5f9 !important;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    padding: 2.5rem !important;
}

.person-card:hover {
    border-color: #e2e8f0 !important;
    transform: none !important;
}

.person-number {
    background: var(--secondary) !important;
    /* Orange accent */
    font-size: 0.85rem !important;
    padding: 0.35rem 1.25rem !important;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(255, 145, 77, 0.3);
}

/* 5. Validation / Feedback */
input:not(:placeholder-shown):valid {
    border-color: #cbd5e1;
    /* Subtle confirmation it's filled */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .form-content {
        padding: 2rem !important;
    }

    .card-select-group {
        grid-template-columns: 1fr;
        /* Stack vertically on phone */
    }

    input,
    select,
    textarea {
        font-size: 1rem;
        /* Prevent zoom on iOS */
    }
}


/* --- Focus Lightbox Effect --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    /* Dark overlay */
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 5;
    /* Below form (z-index 10) but above everything else */
}

body.form-focus::after {
    opacity: 1;
    pointer-events: all;
}

/* Ensure form stays on top */
.detailed-form-container {
    z-index: 20 !important;
    position: relative;
    transition: transform 0.3s ease;
}

/* Optional: Slight pop effect when focused */
body.form-focus .detailed-form-container {
    transform: scale(1.01);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.3) !important;
}

/* --- Fix Input Icon Positioning --- */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

/* Support both i (before lucide runs) and svg (after lucide runs) */
.input-icon-wrapper i,
.input-icon-wrapper svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    /* Ensure icon is above input background */
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

/* Ensure input has enough padding so text doesn't overlap icon */
.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
    padding-left: 3rem !important;
    /* Force padding */
    width: 100%;
    box-sizing: border-box;
    /* Critical for padding to be inside width */
}

/* Fix textarea icon position to be at top */
.input-icon-wrapper textarea+i,
.input-icon-wrapper i:has(+ textarea),
.input-icon-wrapper textarea+svg,
.input-icon-wrapper svg:has(+ textarea) {
    top: 1.5rem;
    transform: none;
}

/* --- Global Animations & States --- */
.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.btn-error {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    transform: scale(0.98);
}

/* Adjust line height for readability in content blocks */
.content-block p,
.about-content p {
    line-height: 1.8;
}

/* --- Services Page Enhancements --- */
.service-detail-section {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 8rem;
}

.service-detail-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    position: relative;
}

.service-detail-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.info-box-legal {
    background: #f8fafc;
    border-left: 5px solid var(--primary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-box-legal i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box-legal h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.icon-list-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-list-premium li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.icon-list-premium i {
    color: var(--secondary);
    background: rgba(255, 145, 77, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Modern Fluid Layout Elements --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.bento-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.bento-item.large {
    grid-column: span 8;
    grid-row: span 2;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.bento-item.medium {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-item.small {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-item.wide {
    grid-column: span 6;
    grid-row: span 1;
}

/* Timeline / Journey */
.journey-path {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding-left: 2rem;
}

/* --- Added Quality & Selection Styles --- */
.quality-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.checklist-large {
    list-style: none;
    padding: 0;
}

.checklist-large li {
    font-size: 1.15rem;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.checklist-large i {
    width: 32px;
    height: 32px;
    color: var(--secondary);
    background: rgba(255, 145, 77, 0.1);
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.journey-path::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
    opacity: 0.3;
}

.journey-step {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 3rem;
}

.journey-step::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 145, 77, 0.2);
}

/* --- Costs Page Refinements --- */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.funding-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

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

.funding-item.orange {
    border-top-color: var(--secondary);
}

.funding-item.green {
    border-top-color: #22c55e;
}

.funding-item i {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.cost-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cost-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 145, 77, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.floating-image-wrapper {
    position: relative;
    z-index: 1;
}

.floating-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.floating-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

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

    .bento-item.large,
    .bento-item.medium,
    .bento-item.small,
    .bento-item.wide {
        grid-column: span 2;
        grid-row: auto;
    }
}

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

    .bento-item.large,
    .bento-item.medium,
    .bento-item.small,
    .bento-item.wide {
        grid-column: span 1;
    }
}

/* --- About Page Enhancements --- */
.about-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--secondary);
}

.about-hero-stats .stat-item {
    text-align: center;
}

.image-composition {
    position: relative;
    height: 500px;
    width: 100%;
}

.comp-img {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    object-fit: cover;
    transition: var(--transition);
}

.comp-img:hover {
    transform: scale(1.02);
    z-index: 5;
}

.comp-img-1 {
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.comp-img-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.checklist {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.checklist i {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.video-section-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.video-section-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.video-section-placeholder:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 0 10px rgba(255, 145, 77, 0.2);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 145, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 145, 77, 0);
    }
}

.team-card-premium {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.team-card-img-wrapper {
    height: 380px;
    overflow: hidden;
    position: relative;
}

.team-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card-premium:hover .team-card-img-wrapper img {
    transform: scale(1.1);
}

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

.team-card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.team-card-info .role {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.team-card-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.team-card-socials a {
    color: var(--text-light);
    transition: var(--transition);
}

.team-card-socials a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   Unified Breakpoints:
   - Desktop: > 1024px (default)
   - Tablet: 768px - 1024px
   - Mobile: 480px - 768px
   - Small Mobile: < 480px
   ============================================ */

/* Touch Target Size: Ensure all interactive elements are at least 44px */
.btn,
.menu-toggle,
.option-card,
.nav-links a,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    min-height: 44px;
}

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .about-container {
        flex-direction: column;
        gap: 3rem !important;
    }

    .image-composition {
        height: 400px;
    }

    .team-card-img-wrapper {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Breakpoint (480px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 3rem 0;
    }

    /* Navigation Mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-sm);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a:hover {
        background: var(--bg-light);
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
    }

    /* Hero Mobile */
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
    }

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

    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    /* Page Headers */
    .page-header h1 {
        font-size: 2rem;
    }

    /* Cards & Grids */
    .service-cards,
    .team-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .feature-card {
        padding: 1.5rem;
    }

    .team-card-img-wrapper {
        height: 280px;
    }

    .team-card-info {
        padding: 1.5rem;
    }

    /* Forms */
    .contact-form,
    .form-content {
        padding: 1.5rem !important;
    }

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

    .option-card {
        padding: 1.25rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    /* About Page */
    .image-composition {
        height: 350px;
    }

    .comp-img-1,
    .comp-img-2 {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .about-hero-stats {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    /* Cost Calculator */
    .cost-calculator {
        padding: 1.5rem;
    }

    .price-display {
        font-size: 2.5rem;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item {
        padding: 1.5rem;
    }
}

/* Small Mobile Breakpoint (< 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* Buttons - Larger touch targets */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Navbar */
    .logo {
        font-size: 1.25rem;
    }

    /* Cards */
    .service-card,
    .feature-card,
    .option-card {
        padding: 1.25rem;
    }

    .team-card-img-wrapper {
        height: 240px;
    }

    .team-card-info {
        padding: 1.25rem;
    }

    .team-card-info h3 {
        font-size: 1.25rem;
    }

    /* Forms */
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Cost Section */
    .price-display {
        font-size: 2rem;
    }

    .cost-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* About Stats */
    .about-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.25rem;
        gap: 1rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    /* Multi-step Form */
    .multistep-container {
        margin-top: -4rem;
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    /* Video Placeholder */
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Breadcrumbs */
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .about-hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        gap: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE LAYOUT UTILITIES
   ============================================ */

/* Two-Column Layout with responsive gap */
.two-col-layout {
    display: flex;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

.two-col-layout.align-start {
    align-items: flex-start;
}

.two-col-layout > * {
    flex: 1;
}

.two-col-layout > .col-narrow {
    flex: 0.8;
}

.two-col-layout > .col-wide {
    flex: 1.2;
}

@media (max-width: 968px) {
    .two-col-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .two-col-layout.reverse-mobile {
        flex-direction: column-reverse;
    }

    .two-col-layout > *,
    .two-col-layout > .col-narrow,
    .two-col-layout > .col-wide {
        flex: none;
        width: 100%;
    }
}

/* Glass Card Grid - responsive */
.glass-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .glass-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Bento Grid - improved tablet breakpoint */
@media (max-width: 900px) {
    .bento-item.large {
        flex-direction: column;
        gap: 1.5rem;
    }

    .bento-item.large .floating-image-wrapper {
        height: 220px;
        flex: none;
        width: 100%;
    }

    .bento-item.large > div:first-child {
        flex: none;
    }
}

/* Section content wrapper - fluid gap */
.section-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 3rem);
}

/* Responsive image container */
.responsive-img-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.responsive-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RESPONSIVE FIXES - Index & Services Pages
   ============================================ */

/* --- Utility classes (moved from inline styles in services.html) --- */
.services-header {
    padding: 6rem 0 12rem 0;
}

.bento-overlap-section {
    margin-top: -8rem;
    position: relative;
    z-index: 3;
}

.bento-text-content {
    flex: 1;
    padding-left: 2rem;
}

.heading-large {
    font-size: 3rem;
}

.security-section-inner {
    background: #f8fafc;
    border-radius: 2rem;
    padding: 4rem;
    overflow: hidden;
    position: relative;
}

.security-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.quality-badge-floating {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.cta-buttons-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- Index: Hero image fix (original CSS targeted wrong class .hero-image) --- */
@media (max-width: 968px) {
    .hero-img-card {
        height: 380px;
    }

    .floating-card {
        left: 10px;
        bottom: 15px;
    }
}

/* --- Index & Services: Tablet (1024px) --- */
@media (max-width: 1024px) {
    .services-header {
        padding: 5rem 0 10rem 0;
    }

    .bento-overlap-section {
        margin-top: -6rem;
    }

    .heading-large {
        font-size: 2.5rem;
    }

    .security-section-inner {
        padding: 3rem;
    }
}

/* --- Index & Services: Mobile (768px) --- */
@media (max-width: 768px) {
    /* Hero: hide image on mobile */
    .hero-image-wrapper {
        display: none;
    }

    /* Hero stats: keep in a row but wrap */
    .hero-stats {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .hero-stats .stat-item {
        text-align: center;
    }

    /* Services: page header */
    .services-header {
        padding: calc(var(--header-height) + 2rem) 0 8rem 0;
    }

    /* Services: bento overlap */
    .bento-overlap-section {
        margin-top: -5rem;
    }

    /* Services: bento text padding */
    .bento-text-content {
        padding-left: 0;
    }

    /* Services: headings */
    .heading-large {
        font-size: 2rem;
    }

    /* Services: bento large item images */
    .bento-item.large .floating-image-wrapper img {
        height: 200px !important;
    }

    /* Services: checklists single column */
    .checklist {
        columns: 1 !important;
    }

    /* Services: section header spacing */
    .section .section-header {
        margin-bottom: 3rem !important;
    }

    /* Services: security section */
    .security-section-inner {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .security-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Services: quality badge reposition for mobile */
    .quality-badge-floating {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    /* Services: CTA buttons stack */
    .cta-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons-row .btn {
        justify-content: center;
        text-align: center;
        min-height: 48px;
    }

    /* Services: floating image wrapper responsive */
    .floating-image-wrapper img {
        height: 250px !important;
    }

    .floating-image-wrapper::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    /* Index: about image */
    .about-image {
        height: 300px;
    }

    /* Index: about heading */
    .about-content h2 {
        font-size: 1.75rem;
    }

    /* Index: contact heading */
    .contact-info h2 {
        font-size: 2rem;
    }

    /* Index: disable hover transform on contact items */
    .detail-item:hover {
        transform: none;
    }

    /* Index: section header headings */
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* --- Index & Services: Small Mobile (480px) --- */
@media (max-width: 480px) {
    .services-header {
        padding: calc(var(--header-height) + 1.5rem) 0 6rem 0;
    }

    .bento-overlap-section {
        margin-top: -4rem;
    }

    .heading-large {
        font-size: 1.5rem;
    }

    .security-section-inner {
        padding: 1rem;
    }

    .quality-badge-floating {
        padding: 1.25rem;
    }

    .about-image {
        height: 250px;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE FIXES - About, Costs, Request
   ============================================ */

/* --- New utility classes (costs.html inline styles) --- */
.costs-overlap-section {
    margin-top: -5rem;
    position: relative;
    z-index: 3;
}

.calc-example-layout {
    background: var(--primary-dark);
    border-radius: 2rem;
    padding: 5rem;
    color: white;
    display: flex;
    gap: 4rem;
    align-items: center;
}

/* --- Page header: padding-bottom fix for about/request --- */
@media (max-width: 768px) {
    .page-header:not(.services-header) {
        padding-bottom: 5rem !important;
    }

    /* Fix: inline font-size on page-header h1 needs !important */
    .page-header h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .page-header:not(.services-header) {
        padding-bottom: 4rem !important;
    }
}

/* --- About page --- */
@media (max-width: 968px) {
    .about-container {
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    .image-composition {
        height: auto;
    }

    .comp-img-1,
    .comp-img-2 {
        position: relative;
        width: 100%;
        height: 250px;
    }
}

/* --- Costs page --- */
@media (max-width: 968px) {
    .calc-example-layout {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem;
    }

    .calc-example-layout > div {
        flex: none !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .costs-overlap-section {
        margin-top: -3rem;
    }

    .calc-example-layout {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    /* Cost card: disable scale on mobile to prevent overflow */
    .cost-card.highlight {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .costs-overlap-section {
        margin-top: -2rem;
    }

    /* Force single column for grids with minmax(300px) on small screens */
    .cost-grid,
    .funding-grid {
        grid-template-columns: 1fr;
    }
}