﻿/* ---------- Baseline mobile ergonomics ---------- */
img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

input, select, textarea, button {
    font-size: 16px;
}
/* prevent iOS zoom */

/* ---------- HERO grid ---------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

/* Headings readable */
.hero h1, .hero h2 {
    line-height: 1.15;
}

@media (max-width: 480px) {
    .hero h1, .hero h2 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero p {
        font-size: 1rem;
    }
}

/* ---------- Hero logo responsiveness ---------- */
.hero-logo-wrap img {
    width: min(420px, 90%);
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .hero-logo-wrap {
        display: flex;
        justify-content: center;
    }

        .hero-logo-wrap img {
            width: min(320px, 88%);
        }
}

/* ---------- Wizard container width ---------- */
.wizard-container {
    width: 100%;
    max-width: 520px;
}

@media (max-width: 980px) {
    .wizard-container {
        max-width: 100%;
    }
}

/* Bigger tap targets */
.wizard-buttons button,
.btn-primary, .btn-secondary {
    min-height: 44px;
}

/* ---------- Nav/header layout ---------- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-text span {
    display: block;
}

@media (max-width: 640px) {
    .nav-left {
        width: 100%;
    }

    .nav-cta {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
}

/* ---------- Testimonials layout ---------- */
@media (max-width: 980px) {
    .testimonial-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ---------- Partner highlight cards ---------- */
.myscoreiq-highlight {
    margin-top: 14px;
    background: #fff;
    border: 1px solid rgba(15,138,75,0.10);
    border-radius: 16px;
    padding: 14px 14px;
    box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}

    .myscoreiq-highlight h3 {
        margin: 0 0 6px;
        font-size: 1.05rem;
        color: var(--green-dark);
    }

    .myscoreiq-highlight p {
        margin: 0 0 10px;
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    .myscoreiq-highlight ul {
        margin: 0 0 12px;
        padding-left: 18px;
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .myscoreiq-highlight li {
        margin: 6px 0;
    }

@media (max-width: 640px) {
    .myscoreiq-highlight {
        padding: 12px;
    }

        .myscoreiq-highlight ul {
            margin-bottom: 10px;
        }
}

/* ---------- Rotator ---------- */
.partner-rotator {
    position: relative;
    margin-top: 12px;
}

.partner-slide {
    display: none;
}

    .partner-slide.is-active {
        display: block;
    }

/* ---------- Wizard state + loader visibility ---------- */
#wizard-error {
    display: none;
}

    #wizard-error.is-visible {
        display: block;
    }

#processing-loader {
    display: none;
}

    #processing-loader.is-visible {
        display: flex;
    }

.wizard-container.is-busy {
    opacity: 0.3;
    pointer-events: none;
}

/* ---------- AI chat (moved from inline styles) ---------- */
.ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #0066cc;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 9999;
}

.ai-chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 420px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    display: none;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    z-index: 9999;
}

    .ai-chat-box.is-open {
        display: flex;
    }

.ai-chat-header {
    padding: 8px 10px;
    background: #f3f3f3;
    border-bottom: 1px solid #ddd;
}

.ai-chat-sub {
    font-size: 11px;
    color: #666;
}

.ai-chat-messages {
    padding: 8px;
    overflow-y: auto;
    height: 260px;
}

.ai-chat-form {
    display: flex;
    border-top: 1px solid #eee;
}

.ai-chat-input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
    outline: none;
}

.ai-chat-send {
    border: none;
    padding: 0 10px;
    background: #0066cc;
    color: #fff;
    cursor: pointer;
}

/* Keep chat inside viewport on phones */
@media (max-width: 480px) {
    .ai-chat-box {
        width: min(360px, calc(100vw - 24px));
        right: 12px;
        bottom: 76px;
    }

    .ai-chat-toggle {
        right: 12px;
        bottom: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
