/* ============================================================
   FrontPilot AI — Premium Design System
   Primary: #0A2540 | Accent: #2563EB | BG: #F8FAFC
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* ---- Base ---- */
body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.65;
    color: #1E293B;
    background-color: #F8FAFC;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: visible;
    padding: 20px 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    background: #ffffff;
    color: #1E293B;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(10, 37, 64, 0.07);
    transition: box-shadow 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo image */
.logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.88;
}

header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Nav tabs — SHINY */
header nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
}

header nav ul li a {
    color: #1E293B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Shine sweep animation on nav links */
@keyframes navShine {
    0%   { left: -80%; }
    100% { left: 120%; }
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: navShine 0.55s ease forwards;
    pointer-events: none;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

/* Shine sweep on buttons */
@keyframes btnShine {
    0%   { left: -80%; }
    100% { left: 140%; }
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.btn:hover::after {
    animation: btnShine 0.5s ease forwards;
}

.primary-btn {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.secondary-btn {
    background: #0A2540;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.secondary-btn:hover {
    background: #0F3460;
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.large-btn {
    padding: 15px 32px;
    font-size: 1.05rem;
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    background: linear-gradient(rgba(10,37,64,0.72), rgba(10,37,64,0.82)),
                url('/assets/hero-new.jpg') no-repeat center center / cover;
    color: #ffffff;
    text-align: center;
    padding: 95px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    will-change: transform;
}

.hero-content {
    overflow: visible;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* ============================================================
   PAGE HEROES (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #0A2540, #1E40AF, #2563EB);
    color: #ffffff;
    text-align: center;
}

.compact-page-hero {
    padding: 80px 0;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.18rem;
    opacity: 0.92;
}

.services-page-hero {
    background: linear-gradient(135deg, #0A2540, #1E40AF, #2563EB);
    color: #ffffff;
    padding: 90px 0;
}

.services-page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.services-page-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.92;
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */
section {
    padding: 60px 0;
    text-align: center;
    transition: background 0.3s ease;
}

section:nth-child(even) {
    background-color: #EEF2F7;
}

section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #0A2540;
}

/* Trust strip */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 980px;
}

.trust-strip span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.32);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

/* ============================================================
   EYEBROW BADGES
   ============================================================ */
.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: #DBEAFE;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 36px;
}

.section-heading h2 {
    margin-bottom: 14px;
    color: #0A2540;
}

.section-heading p {
    color: #475569;
    font-size: 1.1rem;
}

/* ============================================================
   SERVICES GRID (homepage hero)
   ============================================================ */
.hero-services {
    margin-top: 55px;
}

.hero-services h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.96);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.22);
    text-align: left;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(10, 37, 64, 0.3);
}

.service-item h3 {
    color: #2563EB;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-item p {
    color: #475569;
}

/* ============================================================
   OUTCOMES / PROCESS SECTIONS
   ============================================================ */
.outcomes-section,
.process-section {
    background: #ffffff;
    padding: 75px 0;
}

.outcomes-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    overflow: visible;
}

.outcome-card,
.process-step {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 26px;
    text-align: left;
    box-shadow: 0 8px 22px rgba(10, 37, 64, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.outcome-card:hover,
.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(10, 37, 64, 0.12);
}

.outcome-card strong {
    display: block;
    color: #1D4ED8;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.outcome-card span,
.process-step p {
    color: #475569;
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.process-step h3 {
    margin-bottom: 10px;
    color: #0A2540;
    font-weight: 700;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-section {
    background: #F0F7FF;
    padding: 75px 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    overflow: visible;
}

.industry-grid div {
    background: #ffffff;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 22px;
    font-weight: 700;
    color: #1D4ED8;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.industry-grid div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.15);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, #0A2540, #1E40AF, #2563EB);
    color: #ffffff;
    text-align: center;
    padding: 75px 0;
}

.cta-band h2 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 2.2rem;
    font-weight: 800;
}

.cta-band p {
    margin-bottom: 28px;
    font-size: 1.12rem;
    opacity: 0.9;
}

/* ============================================================
   SERVICES DETAIL (services.html)
   ============================================================ */
.services-detail-grid-section {
    background: #F8FAFC;
    padding-top: 70px;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 28px;
    overflow: visible;
}

.services-cta {
    text-align: center;
    padding-top: 40px;
}

.services-cta p {
    max-width: 720px;
    margin: 0 auto 25px;
    color: #475569;
}

.service-breakdown {
    margin-top: 18px;
    padding-left: 0;
    list-style: none;
}

.service-breakdown li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 26px;
    color: #475569;
    line-height: 1.5;
}

.service-breakdown li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #2563EB;
    font-weight: 700;
}

.more-link {
    display: inline-block;
    margin-top: 16px;
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.more-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-detail-page {
    min-height: calc(100vh - 180px);
    padding: 70px 0;
    text-align: left;
}

.service-detail-page h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0A2540;
    margin: 18px 0;
}

.service-detail-intro {
    max-width: 850px;
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 30px;
}

.service-detail-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(10, 37, 64, 0.14);
}

.service-detail-card h2 {
    text-align: left;
    margin-bottom: 22px;
    color: #0A2540;
}

.service-detail-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-detail-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 30px;
    color: #475569;
    font-size: 1.05rem;
}

.service-detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563EB;
    font-weight: 700;
}

.back-link {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1D4ED8;
}

/* Service label badge */
.service-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-mini-section {
    margin-top: 24px;
}

.service-mini-section h3 {
    margin-bottom: 12px;
    color: #0A2540;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Featured / shiny service cards */
.featured-service-card {
    border: 2px solid rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #F0F7FF 100%);
}

.shiny-service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #ffffff 0%, #F5FBFF 46%, #EBF3FF 100%);
    box-shadow: 0 18px 45px rgba(10, 37, 64, 0.12);
}

.shiny-service-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
}

.shiny-service-card h2 {
    color: #1D4ED8;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-page {
    min-height: calc(100vh - 180px);
    padding-top: 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background: #ffffff;
    padding: 40px 24px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.09);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(10, 37, 64, 0.14);
}

.pricing-card.featured {
    border: 2px solid #2563EB;
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.18);
}

.pricing-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 18px;
}

.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2563EB;
    margin-bottom: 18px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: #64748B;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 1rem;
}

.pricing-card ul li::before {
    content: '✅';
    margin-right: 10px;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.setup-note {
    margin: -6px 0 16px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-guidance {
    margin-top: 46px;
    padding: 36px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
    text-align: left;
}

.pricing-guidance h2 {
    text-align: center;
    margin-bottom: 26px;
    color: #0A2540;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.guidance-grid div {
    padding: 20px;
    border-radius: 12px;
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    transition: transform 0.2s ease;
}

.guidance-grid div:hover {
    transform: translateY(-2px);
}

.guidance-grid strong {
    display: block;
    color: #1D4ED8;
    margin-bottom: 8px;
    font-weight: 700;
}

.guidance-grid span {
    color: #475569;
    font-size: 0.95rem;
}

/* ============================================================
   CONTACT / CONTENT PAGES
   ============================================================ */
.content-page-section,
.contact-page-section {
    padding: 70px 0;
    background: #F8FAFC;
}

.content-card,
.contact-info-card,
.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 38px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.09);
    text-align: left;
}

.two-column-content,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    overflow: visible;
}

.contact-layout {
    align-items: start;
}

.contact-card h2,
.contact-info-card h2,
.content-card h2 {
    text-align: left;
    margin-bottom: 18px;
    color: #0A2540;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-card .form-group {
    margin-bottom: 18px;
}

.contact-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E293B;
    font-size: 0.92rem;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
    width: 100%;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 0.97rem;
    font-family: inherit;
    background: #F8FAFC;
    color: #1E293B;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card textarea {
    resize: vertical;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.form-message {
    margin-top: 18px;
    font-weight: 600;
}

.form-message.success {
    color: #065F46;
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    padding: 12px 16px;
}

.form-message.error {
    color: #991B1B;
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 12px 16px;
}

.contact-note {
    margin-top: 22px;
    color: #475569;
    font-size: 0.95rem;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: #64748B;
    font-size: 0.88rem;
}

/* ============================================================
   NAVIGATION DROPDOWN
   ============================================================ */
.main-nav { align-items: center; }
.has-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(10, 37, 64, 0.14);
    padding: 10px;
    z-index: 2000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

header nav ul.dropdown-menu {
    gap: 0;
    flex-direction: column;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 600;
    color: #1E293B !important;
    background: none !important;
    box-shadow: none !important;
}

.dropdown-menu li a:hover {
    background: #F0F7FF !important;
    color: #2563EB !important;
    box-shadow: none !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #0A2540;
    color: #CBD5E1;
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================================
   FLOATING AI CHAT WIDGET
   ============================================================ */
.ai-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: 'Inter', Arial, sans-serif;
}

.ai-chat-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.ai-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.55);
}

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(360px, calc(100vw - 32px));
    height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ai-chat-panel.hidden {
    display: none;
}

.ai-chat-header {
    background: linear-gradient(135deg, #0A2540, #2563EB);
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header span {
    display: block;
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 2px;
}

.ai-chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F8FAFC;
}

.ai-chat-message {
    max-width: 88%;
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 0.95rem;
}

.ai-chat-message.bot {
    background: #ffffff;
    color: #1E293B;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(10, 37, 64, 0.08);
}

.ai-chat-message.user {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #E2E8F0;
    background: #ffffff;
}

.ai-chat-form input {
    flex: 1;
    border: 1.5px solid #CBD5E1;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.ai-chat-form input:focus {
    border-color: #2563EB;
}

.ai-chat-form button {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ai-chat-form button:hover {
    opacity: 0.88;
}

.ai-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 14px;
}

.ai-chat-suggestions button {
    border: 1.5px solid #BFDBFE;
    background: #ffffff;
    color: #1D4ED8;
    border-radius: 999px;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.ai-chat-suggestions button:hover {
    background: #EFF6FF;
    color: #1E40AF;
}

/* ============================================================
   UTILITY / MISC
   ============================================================ */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    header nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav ul {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
        align-items: center;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .two-column-content,
    .contact-layout,
    .form-row {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 6px;
    }
}

@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 8px;
    }
}

/* ── Demo nav link — animated glow ── */
a.demo-link {
  color: #2563EB !important;
  font-weight: 700 !important;
  animation: demo-nav-pulse 2.4s ease-in-out infinite;
}
@keyframes demo-nav-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(37,99,235,0); }
  50%       { text-shadow: 0 0 10px rgba(37,99,235,0.55); }
}
