/* templates/ads_landing.html: moved here from an inline <style> block. */
.ads-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
}

.ads-topbar-logo {
    height: 36px;
}

.ads-hero {
    padding: 0.5rem 1rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ads-hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.ads-hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.demo-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    /* Clears the fixed top bar when a "Build my chatbot" link scrolls here. */
    scroll-margin-top: 6rem;
}

.demo-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.step-indicator {
    font-size: 0.875rem;
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .ads-hero {
        padding: 0 1rem 1.5rem;
    }

    .ads-hero-title {
        font-size: 1.5rem;
    }

    .ads-hero-sub {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .form-wrapper {
        margin-top: 0.25rem !important;
        padding: 0 !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
    }

    .demo-form-container {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .demo-form-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .step-indicator {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
}

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

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

.form-control-lg {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
    background: var(--primary-strong);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
}



/* Real Assistant Background Styles */

.funnel-main {
    position: relative;
    padding-top: 64px;
}

.form-wrapper {
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

/* The free-month offer, just above the form card. */
.offer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    color: var(--premium-text);
    background: rgba(var(--premium-rgb), 0.1);
    border: 1px solid rgba(var(--premium-rgb), 0.3);
    border-radius: var(--radius-pill);
    text-align: center;
}

.ads-hero-sub strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* The closing call to action, which scrolls back up to the form. */
.landing-final {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.landing-final h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.landing-final p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-reassure {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Info sections below the form (moved from a <style> block in the page body). */
.landing-info {
    max-width: 1000px;
    margin: 4rem auto 6rem;
    padding: 0 1rem;
}

.info-section {
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.step-card, .benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover, .benefit-card:hover {
    border-color: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-strong);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
}

.step-card h3, .benefit-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p, .benefit-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .landing-info {
        margin: 2rem auto 4rem;
    }

    .info-section {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .steps-grid, .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card, .benefit-card {
        padding: 2rem 1.5rem;
    }
}

/* The funnel's form steps (templates/core/partials/demo_step_*.html). */
.form-group-spaced {
    margin-top: 1.25rem;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-text);
}

.form-error a {
    color: var(--primary-text);
}

.step-context {
    margin: -0.75rem 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-context strong {
    color: var(--text-primary);
    font-weight: 500;
}

.step-context a {
    margin-left: 0.5rem;
    color: var(--primary-text);
}

/* "Don't have a website? Continue without one", a quiet second option under Continue. */
.no-website-form {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
}

.no-website-btn {
    padding: 0.25rem 0.125rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--primary-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.no-website-btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
