/* ============================================================================
 * cc-pivot.css — Constant Contact pivot v2 (ported from PM Node.js prototype)
 *
 * Loaded after overrides.css so all rules below win specificity ties via order.
 * Anything added here is scoped under .cc-* class names to avoid clashing with
 * the existing legacy v3 styles.
 * ========================================================================== */

/* ── F5: Hello bar ────────────────────────────────────────────────────────── */
.cc-hello-bar {
    background: #4169E1;
    padding: 10px 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cc-hello-bar .cc-hello-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cc-hello-bar a {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.cc-hello-bar a:hover {
    opacity: 0.8;
    color: #fff;
}

/* ── F3: branding (logo + 'By Constant Contact' tagline) ─────────────────── */
.cc-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cc-brand .cc-brand-logo {
    display: block;
    text-decoration: none;
    margin-bottom: 4px;
}

.cc-brand .cc-brand-tagline {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.cc-brand .cc-brand-tagline:hover {
    color: #FAFF14;
    text-decoration: underline;
}

/* Footer brand block: not flex \u2014 the SVG only has viewBox, so it relies on
 * the parent column width to size itself. The block layout + text-align:center
 * stacks logo over tagline cleanly. */
.cc-brand-footer {
    text-align: left;
}

.cc-brand-footer .cc-brand-footer-logo {
    display: block;
    text-decoration: none;
    margin-bottom: 6px;
}

.cc-brand-footer .cc-brand-footer-logo img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
}

.cc-brand-footer .cc-brand-footer-tagline {
    display: inline-block;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.cc-brand-footer .cc-brand-footer-tagline:hover {
    color: #FAFF14;
    text-decoration: underline;
}

/* ── F5: Main nav (Resources / Products / More Free Tools / Newsletter CTA) */
.cc-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
}

.cc-nav .dropdown-toggle::after {
    margin-left: 6px;
}

.cc-nav .nav-item.dropdown .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
}

/* Resources dropdown — small, default Bootstrap-ish */
.cc-dropdown-resources .dropdown-item {
    color: #2D3E50;
    padding: 8px 16px;
    font-size: 14px;
}

.cc-dropdown-resources .dropdown-item:hover {
    background: #F4F7FB;
    color: #0066CC;
}

/* Products mega-menu */
.cc-dropdown-products {
    min-width: 850px;
    max-width: 850px;
    padding: 30px 35px;
    /* anchor near the products dropdown (matches PM prototype right shift) */
    right: -280px;
    left: auto;
}

@media (max-width: 991.98px) {
    .cc-dropdown-products {
        position: static !important;
        min-width: auto;
        max-width: none;
        right: auto !important;
        padding: 18px;
        box-shadow: none;
    }
}

.cc-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 16px;
}

.cc-products-headline {
    flex: 1 1 240px;
    max-width: 500px;
}

.cc-products-headline h6 {
    color: #2D3E50;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.cc-products-headline p {
    color: #7C98B6;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.cc-products-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-products-cta {
    color: #0066CC;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #0066CC;
    padding: 8px 18px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.cc-products-cta:hover {
    background: #0066CC;
    color: #fff;
    text-decoration: none;
}

.cc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 20px;
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    .cc-products-grid {
        grid-template-columns: 1fr;
    }
}

.cc-product-tile {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.cc-product-tile:hover {
    background: #F4F7FB;
    text-decoration: none;
}

.cc-product-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.cc-product-icon i {
    font-size: 20px;
}

.cc-icon-blue   { background: #E3F2FD; }
.cc-icon-blue   i { color: #0066CC; }
.cc-icon-purple { background: #F3E5F5; }
.cc-icon-purple i { color: #7B1FA2; }
.cc-icon-orange { background: #FFF3E0; }
.cc-icon-orange i { color: #E65100; font-size: 22px; }
.cc-icon-green  { background: #E8F5E9; }
.cc-icon-green  i { color: #2E7D32; }
.cc-icon-yellow { background: #FFF8E1; }
.cc-icon-yellow i { color: #F57F17; }
.cc-icon-cyan   { background: #E1F5FE; }
.cc-icon-cyan   i { color: #0277BD; }
.cc-icon-lime   { background: #F1F8E9; }
.cc-icon-lime   i { color: #558B2F; }

.cc-product-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cc-product-meta strong {
    font-weight: 600;
    color: #2D3E50;
    font-size: 14px;
    margin-bottom: 3px;
}

.cc-product-meta span {
    color: #7C98B6;
    font-size: 12px;
    line-height: 1.4;
}

/* More Free Tools dropdown */
.cc-dropdown-tools {
    width: 650px;
    padding: 25px;
    border-radius: 15px;
    margin-top: 10px;
    /* center under the dropdown link */
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 991.98px) {
    .cc-dropdown-tools {
        position: static !important;
        width: 100%;
        transform: none !important;
        left: 0;
        padding: 18px;
        box-shadow: none;
    }
}

.cc-tools-header {
    text-align: center;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 25px;
}

.cc-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

@media (max-width: 767.98px) {
    .cc-tools-grid {
        grid-template-columns: 1fr;
    }
}

.cc-tools-list .cc-tools-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 6px;
}

.cc-tools-item-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.cc-tools-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cc-tools-meta strong {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.cc-tools-pill {
    display: inline-block;
    background: #FAFF14;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
    width: max-content;
}

.cc-tools-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cc-tools-promo-pill {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FAFF14;
    color: #000;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.cc-tools-promo h4 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 30px 0 12px 0;
}

.cc-tools-promo p {
    color: #fff;
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.95;
}

.cc-tools-promo-list {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.cc-tools-promo-list strong {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.cc-tools-promo-list ul {
    list-style: disc inside;
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    padding-left: 8px;
}

.cc-tools-promo em {
    color: #fff;
    font-size: 11px;
    opacity: 0.9;
    font-style: normal;
    margin-top: auto;
}

/* Newsletter CTA button (right side of nav) */
.cc-nav-cta {
    margin-left: auto;
}

/* Static button \u2014 every state matches the base. Markup intentionally drops
 * .btn / .nav-link so Bootstrap hover rules can't cascade in. */
.cc-newsletter-cta,
.cc-newsletter-cta:link,
.cc-newsletter-cta:visited,
.cc-newsletter-cta:hover,
.cc-newsletter-cta:focus,
.cc-newsletter-cta:focus-visible,
.cc-newsletter-cta:active {
    display: inline-block;
    background: #1976D2 !important;
    background-color: #1976D2 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 8px !important;
    padding: 8px 22px !important;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    cursor: pointer;
}

/* ── Header responsive: tablet + mobile ────────────────────────────────────
 * Bootstrap 4 .navbar-expand-lg collapses the nav below 992px. The legacy
 * overrides.css already styles the collapsed black panel (.navbar-collapse.show)
 * — the rules below polish the CC-pivot pieces (hello bar, branding, mega
 * menus, newsletter CTA) at tablet and phone widths.
 * ========================================================================== */

/* Tablet (768–991.98px): keep the Products mega-menu readable at 2 columns.
 * Mobile (<=767.98px) is already 1 col via the rule above. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Collapsed nav (<992px): mega-menus render inline inside the dark panel.
 * Tighten layouts, neutralize desktop-only positioning hacks, and make the
 * newsletter CTA center under the stacked nav items. */
@media (max-width: 991.98px) {
    /* margin-left:auto only centers in a flex row — reset for column layout */
    .cc-nav .cc-nav-cta {
        margin-left: 0;
        margin-top: 12px;
        align-self: center;
        text-align: center;
    }

    /* Dropdowns inside the dark panel sit flush with the link, no extra
     * shadow (the panel itself already has visual separation). */
    .cc-nav .nav-item.dropdown .dropdown-menu {
        margin-top: 4px;
        box-shadow: none;
        border-radius: 6px;
    }

    /* Mega-menu header stacks vertically so the CTA buttons don't crowd the
     * headline at tablet widths. */
    .cc-products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-products-cta-row {
        justify-content: flex-start;
    }

    /* Slightly bigger tap targets for nav links in the collapsed panel */
    .cc-nav .nav-link {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* Mobile (<=767.98px): shrink the hello bar / brand tagline / tools promo
 * so the header fits comfortably on phone widths. */
@media (max-width: 767.98px) {
    .cc-hello-bar {
        font-size: 12px;
        padding: 8px 12px;
    }

    .cc-hello-bar .cc-hello-bar-inner {
        gap: 6px 14px;
    }

    .cc-brand .cc-brand-tagline {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .cc-tools-promo {
        padding: 18px;
    }

    .cc-tools-promo h4 {
        font-size: 22px;
        margin-top: 18px;
    }

    .cc-tools-promo-pill {
        top: 10px;
        right: 10px;
    }
}

/* Small phones (<=575.98px): hello bar stacks, mega menu padding tightens. */
@media (max-width: 575.98px) {
    .cc-hello-bar .cc-hello-bar-inner {
        flex-direction: column;
        gap: 2px;
    }

    .cc-brand .cc-brand-tagline {
        font-size: 11px;
    }

    .cc-dropdown-products,
    .cc-dropdown-tools {
        padding: 14px !important;
    }
}

/* ── F4: Homepage 3-card promo section ───────────────────────────────────── */
.cc-promo-section {
    background-color: #F5F3FF !important;
}

.cc-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991.98px) {
    .cc-promo-grid {
        grid-template-columns: 1fr;
    }
}

.cc-promo-card {
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.cc-promo-card-guru     { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.cc-promo-card-certified { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); }
.cc-promo-card-ctct     { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }

.cc-promo-card .cc-promo-deco-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cc-promo-card .cc-promo-deco-2 {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transform: rotate(15deg);
}

.cc-promo-card .cc-promo-deco-3 {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: #FAFF14;
    border-radius: 50%;
    opacity: 0.3;
}

.cc-promo-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-promo-badge {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cc-promo-badge-yellow {
    background: #FAFF14;
    color: #000;
}

.cc-promo-card h3 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.cc-promo-card-guru h3 {
    font-size: 48px;
    line-height: 1.1;
}

.cc-promo-card p {
    color: #fff;
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.cc-promo-offer-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.cc-promo-offer-box .cc-promo-offer-amount {
    color: #059669;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.cc-promo-offer-box .cc-promo-offer-sub {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.cc-promo-fineprint {
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.cc-promo-cta {
    margin-top: auto;
    background: #FAFF14 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block;
}

.cc-promo-cta:hover {
    background: #FFEC3D !important;
    color: #000 !important;
    text-decoration: none;
}

.cc-promo-cta-block {
    display: block;
    text-align: center;
    width: 100%;
}

/* ── F2: Results page tweaks ─────────────────────────────────────────────── */
.cc-on-results #SL-Headline {
    display: none;
}

.cc-on-results #imgchatGptBadge,
.cc-on-results .podcast-buttons {
    display: none !important;
}

.cc-on-results .container.primary {
    padding-top: 20px;
}

.cc-try-again-toggle {
    border-radius: 15px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
}

.cc-try-again-section {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cc-try-again-section h4 {
    color: #FAFF14;
    text-align: center;
    margin-bottom: 18px;
}

.cc-try-again-section .cc-try-again-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cc-try-again-section input[type="text"] {
    max-width: 500px;
    flex: 1 1 280px;
}

.cc-current-sl {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: 3px solid #fff;
    border-radius: 20px;
    padding: 14px 22px;
    width: auto;
    max-width: 800px;
    margin: 0 auto;
    color: #fff !important;
    font-weight: 600;
}

/* ── F1: AI email module ─────────────────────────────────────────────────── */
.cc-ai-email-shell {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 3px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.cc-ai-email-card {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    color: #fff;
}

.cc-ai-email-card h3 {
    color: #fff;
    font-weight: 700;
    margin: 14px 0 12px 0;
}

.cc-ai-email-card p {
    color: #fff;
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 18px auto;
}

.cc-ai-email-label {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin: 12px 0 8px 0;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cc-ai-email-prompt-wrap {
    position: relative;
}

.cc-ai-email-prompt {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid transparent;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: box-shadow 0.4s, border-color 0.4s;
    color: #0B0F0A;
    display: block;
}

.cc-ai-email-prompt.cc-ai-email-prompt-glow {
    box-shadow: 0 0 20px rgba(250, 255, 20, 0.6), 0 0 40px rgba(250, 255, 20, 0.4);
    border-color: #FAFF14;
}

.cc-ai-email-prefilled-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #FAFF14;
    color: #000;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.cc-ai-email-prefilled-tooltip.cc-tooltip-show {
    opacity: 1;
}

.cc-ai-email-prefilled-tooltip::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FAFF14;
}

.cc-ai-email-quickstart {
    margin: 18px 0 18px 0;
}

.cc-ai-email-quickstart-label {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.cc-ai-email-quickstart-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cc-ai-email-quickstart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cc-ai-email-quickstart-btn:hover {
    background: #fff;
    color: #1976D2;
    border-color: #fff;
}

.cc-ai-email-cta {
    background: #fff !important;
    color: #2196F3 !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 14px 36px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cc-ai-email-cta:hover:not(:disabled) {
    background: #FAFF14 !important;
    color: #1976D2 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cc-ai-email-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── F6: Advanced Insights capture ───────────────────────────────────────── */
.cc-ai-insights-shell {
    background: linear-gradient(135deg, #FF206E 0%, #E91E63 100%);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 8px 30px rgba(255, 32, 110, 0.4);
    margin-top: 35px;
    margin-bottom: 35px;
}

.cc-ai-insights-card {
    background: #FAFF14;
    border-radius: 22px;
    padding: 36px 28px;
}

.cc-ai-insights-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.cc-ai-insights-icon {
    background: #FF206E;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.cc-ai-insights-icon i {
    color: #fff;
    font-size: 28px;
}

.cc-ai-insights-header h3 {
    color: #FF206E;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.cc-ai-insights-bullets {
    background: #fff;
    border-radius: 15px;
    padding: 22px 22px;
    margin-bottom: 22px;
}

.cc-ai-insights-bullets-lead {
    color: #333;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.cc-ai-insights-bullets-lead em {
    color: #666;
    font-weight: 400;
    font-style: normal;
}

.cc-ai-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .cc-ai-insights-grid {
        grid-template-columns: 1fr;
    }
}

.cc-ai-insights-bullet {
    display: flex;
    align-items: flex-start;
    color: #666;
    font-size: 15px;
    text-align: left;
}

.cc-ai-insights-bullet i {
    color: #4CAF50;
    font-size: 20px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cc-ai-insights-input {
    /* !important needed to beat the legacy styles.css global
     *   input, select, textarea { max-width: 280px; }
     * which would otherwise clamp this email field. */
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #E0E0E0;
    font-size: 16px;
    transition: border-color 0.3s;
    text-align: left;
    margin-bottom: 20px;
}

.cc-ai-insights-input:focus {
    border-color: #FF206E;
    outline: none;
}

.cc-ai-insights-personas {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.cc-ai-insights-personas-lead {
    color: #666;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
}

.cc-ai-insights-personas .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 0;
}

.cc-ai-insights-personas .form-check-input {
    margin: 0 8px 0 0;
    position: static;
}

.cc-ai-insights-personas .form-check-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.cc-ai-insights-cta {
    background: #FF206E !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 32, 110, 0.4);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cc-ai-insights-cta:hover:not(:disabled) {
    background: #E91E63 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 32, 110, 0.5);
}

.cc-ai-insights-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cc-ai-insights-fineprint {
    text-align: center;
    color: #FF206E;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 0;
}

.cc-ai-insights-success {
    text-align: center;
    background: #FAFF14;
    border-radius: 22px;
    padding: 56px 32px;
}

.cc-ai-insights-success-icon {
    background: #FF206E;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cc-ai-insights-success-icon i {
    color: #fff;
    font-size: 40px;
}

.cc-ai-insights-success h3 {
    color: #333;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
}

.cc-ai-insights-success h3 span {
    color: #FF206E;
}

.cc-ai-insights-error {
    color: #FF206E;
    background: #fff;
    border: 2px solid #FF206E;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

/* ── Demo extras: exit-intent modal ──────────────────────────────────────── */
.cc-exit-intent {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cc-exit-intent.cc-show {
    display: flex;
}

.cc-exit-intent-card {
    position: relative;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 26px;
    padding: 44px 36px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: cc-slide-down 0.4s ease-out;
}

@keyframes cc-slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.cc-exit-intent-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: background 0.2s;
}

.cc-exit-intent-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.cc-exit-intent-pill {
    display: inline-block;
    background: #FAFF14;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.cc-exit-intent-card h2 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.cc-exit-intent-card .cc-exit-intent-sub {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0 0 26px 0;
    line-height: 1.4;
}

.cc-exit-intent-offer {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 22px;
}

.cc-exit-intent-offer h3 {
    color: #10B981;
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.cc-exit-intent-offer p {
    color: #666;
    font-size: 16px;
    margin: 6px 0 0 0;
}

.cc-exit-intent-fineprint {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 18px 0;
}

.cc-exit-intent-cta {
    display: block;
    background: #FAFF14;
    color: #000;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cc-exit-intent-cta:hover {
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ── F7: Legal Disclosures ─────────────────────────────────────────────────
 * Shared data-sharing disclosure rendered by Views/Shared/_CcFormDisclosure.cshtml
 * across the newsletter / contact / F6 advanced insights forms.
 * F8 registration gate uses its own CTA-specific consent (see .cc-sl-gate-consent).
 * ========================================================================== */
.cc-form-disclosure {
    font-size: 12px;
    color: #ccc;
    margin: 0.75rem 0 0 0;
    line-height: 1.4;
    text-align: center;
}

.cc-form-disclosure a {
    color: inherit;
    text-decoration: underline;
}

.cc-form-disclosure a:hover {
    color: #FAFF14;
}

/* Contact form sits on a black panel \u2014 widen the disclosure block and tint
 * for legibility against that background. */
#frmContent .cc-form-disclosure {
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin: 0 auto 0.75rem auto;
}

/* F6 advanced insights module sits on the yellow card with dark inputs;
 * the disclosure should read like the existing personas helper text. */
.cc-ai-insights-disclosure {
    color: #666 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: center;
    margin: 14px 0;
}

.cc-ai-insights-disclosure a {
    color: #666;
    text-decoration: underline;
}

/* ── F8: First-time user Registration Gate ─────────────────────────────────
 * Inline registration form rendered inside #divResults (orange SL panel)
 * when usp_LookupCookie + cookie check both miss. Markup ports the PM
 * prototype's inline-styled form (local-node-app/views/index.ejs lines
 * 213-276) to reusable classes.
 * ========================================================================== */
.cc-sl-gate {
    margin-top: 30px;
}

.cc-sl-gate-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.cc-sl-gate-arrow {
    margin-top: 15px;
}

.cc-sl-gate-arrow .fa {
    font-size: 32px;
}

.cc-sl-gate-input {
    /* !important defeats the legacy styles.css global
     *   input, select, textarea { max-width: 280px; }
     * which would otherwise clamp these fields like F6's email input did. */
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 16px;
    white-space: pre;
    background: #fff;
    color: #0B0F0A;
}

.cc-sl-gate-input:focus {
    border-color: #FAFF14;
    outline: none;
}

select.cc-sl-gate-input {
    white-space: normal;
    appearance: auto;
}

.cc-sl-gate-error {
    font-size: 13px;
    margin: 5px 0 0 5px;
    font-weight: 500;
}

/* Server-side validation: ASP.NET sets .field-validation-valid on the inner
 * <span> when the field is valid. Hide the helper text in that case so the
 * pink hint only shows on submit-time errors. */
.cc-sl-gate-error .field-validation-valid {
    display: none;
}

.cc-sl-gate-consent {
    color: #ccc;
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

.cc-sl-gate-consent a {
    color: #ccc;
    text-decoration: underline;
}

.cc-sl-gate-consent a:hover {
    color: #FAFF14;
}

.cc-sl-gate-cta,
.cc-sl-gate-cta:link,
.cc-sl-gate-cta:visited,
.cc-sl-gate-cta:hover,
.cc-sl-gate-cta:focus,
.cc-sl-gate-cta:active {
    background: #FAFF14 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 50px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(250, 255, 20, 0.4);
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cc-sl-gate-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(250, 255, 20, 0.5);
}

.cc-sl-gate-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cc-sl-gate-trustcard {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}

.cc-sl-gate-trustcard p {
    color: #fff;
    margin: 0;
}

.cc-sl-gate-mailto,
.cc-sl-gate-mailto:link,
.cc-sl-gate-mailto:visited,
.cc-sl-gate-mailto:hover {
    font-weight: 700;
    text-decoration: none;
}

.cc-sl-gate-privacy {
    color: #E0E0E0;
    font-size: 11px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.cc-sl-gate-privacy a {
    color: #E0E0E0;
    text-decoration: underline;
}

/* Inline error banner shown above the CTA when the AJAX submit fails with
 * something other than a re-rendered validation form (network error, stale
 * antiforgery cookie, 5xx, etc.). Keeps the form on screen so the user can
 * recover without losing what they typed. */
.cc-sl-gate-banner-error {
    background: #FF206E;
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0 auto 16px auto;
    max-width: 760px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 32, 110, 0.3);
}
