/* INSIGHT360 Scan — scoped to #insight360-wrap */

#insight360-wrap {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

#insight360-wrap *,
#insight360-wrap *::before,
#insight360-wrap *::after {
    box-sizing: border-box;
}

/* ── Scan header ─────────────────────────────────────── */

#insight360-wrap .i360-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
}

#insight360-wrap .i360-scan-logo {
    max-height: 36px;
    width: auto;
}

#insight360-wrap .i360-scan-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #002519;
    background: #f0ede8;
    padding: 5px 12px;
    border-radius: 99px;
}

/* ── Progress bar ────────────────────────────────────── */

#insight360-wrap .i360-progress {
    margin-bottom: 24px;
}

#insight360-wrap .i360-progress-track {
    height: 4px;
    background: #e8e4df;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

#insight360-wrap .i360-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #002519, #C09D72);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#insight360-wrap .i360-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* ── Panel & steps ───────────────────────────────────── */

#insight360-wrap .i360-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0, 37, 25, 0.08);
    overflow: hidden;
    margin-bottom: 32px;
}

#insight360-wrap .i360-step-head {
    padding: 32px 32px 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0ede8;
}

#insight360-wrap .i360-step-count {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C09D72;
    margin: 0 0 8px;
}

#insight360-wrap .i360-step-title {
    font-size: 1.35em;
    font-weight: 700;
    color: #002519;
    margin: 0 0 6px;
    line-height: 1.25;
}

#insight360-wrap .i360-step-desc,
#insight360-wrap .i360-step-desc p {
    font-size: 0.9em;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

#insight360-wrap .i360-field-row,
#insight360-wrap .i360-nav,
#insight360-wrap .i360-answer-list {
    margin-left: 32px;
    margin-right: 32px;
}

#insight360-wrap .i360-nav {
    padding-bottom: 28px;
}

@media (max-width: 560px) {
    #insight360-wrap .i360-step-head {
        padding: 24px 20px 20px;
    }

    #insight360-wrap .i360-field-row,
    #insight360-wrap .i360-nav,
    #insight360-wrap .i360-answer-list {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ── Contact form ────────────────────────────────────── */

#insight360-wrap .i360-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    #insight360-wrap .i360-field-row {
        grid-template-columns: 1fr;
    }
}

#insight360-wrap .i360-field {
    margin-bottom: 20px;
}

#insight360-wrap .i360-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #002519;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#insight360-wrap .i360-field input[type="text"],
#insight360-wrap .i360-field input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0dbd4;
    border-radius: 8px;
    background: #faf9f7;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#insight360-wrap .i360-field input:focus {
    border-color: #C09D72;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 157, 114, 0.18);
}

#insight360-wrap .i360-field input::placeholder {
    color: #bbb;
}

#insight360-wrap .i360-field input.i360-input-error {
    border-color: #c0392b;
    background: #fff8f8;
}

#insight360-wrap .i360-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #c0392b;
}

#insight360-wrap .i360-error {
    color: #c0392b;
    margin: 0 32px 16px;
    font-weight: 500;
    font-size: 0.9em;
    padding: 10px 14px;
    background: #fdf0ef;
    border-radius: 6px;
    border-left: 3px solid #c0392b;
}

/* ── Answers ─────────────────────────────────────────── */

#insight360-wrap .i360-answer-list {
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 640px) {
    #insight360-wrap .i360-answer-list {
        grid-template-columns: 1fr;
    }
}

#insight360-wrap .i360-answer {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 96px;
    margin: 0;
    padding: 22px 20px;
    background: #002519;
    color: #fff;
    border: 2px solid #002519;
    border-radius: 12px;
    font-size: 1em;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, padding 0.15s ease;
}

#insight360-wrap .i360-answer:hover,
#insight360-wrap .i360-answer:focus-visible {
    background: #003d2a;
    border-color: #C09D72;
    outline: none;
}

#insight360-wrap .i360-answer.selected {
    border-color: #C09D72;
    box-shadow: 0 2px 10px rgba(0, 37, 25, 0.2);
    padding-left: 56px;
}

#insight360-wrap .i360-order {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #C09D72;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 700;
    pointer-events: none;
}

/* ── Navigation / buttons ────────────────────────────── */

#insight360-wrap .i360-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 20px;
}

#insight360-wrap .i360-reset {
    font-size: 0.9em;
    color: #C09D72;
    cursor: pointer;
    text-decoration: underline;
    margin-right: auto;
}

#insight360-wrap .i360-reset:hover {
    color: #002519;
}

#insight360-wrap .i360-btn,
#insight360-wrap .i360-btn:link,
#insight360-wrap .i360-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: #002519 !important;
    color: #fff !important;
    border: 2px solid #002519 !important;
    border-radius: 4px;
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.03em;
    text-transform: none;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

#insight360-wrap .i360-btn:hover,
#insight360-wrap .i360-btn:focus {
    background: #C09D72 !important;
    border-color: #C09D72 !important;
    outline: none;
}

#insight360-wrap .i360-btn:disabled,
#insight360-wrap .i360-btn[disabled] {
    background: #d0ccc7 !important;
    border-color: #d0ccc7 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Loading ─────────────────────────────────────────── */

#i360-loading {
    padding: 64px 32px;
    text-align: center;
    margin-bottom: 32px;
}

#insight360-wrap .i360-loading-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

#insight360-wrap .i360-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: i360-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes i360-dot-pulse {
    0%, 70%, 100% { transform: scale(0.65); opacity: 0.35; }
    35%            { transform: scale(1.3);  opacity: 1; }
}

#insight360-wrap .i360-load-label {
    color: #888;
    font-size: 13px;
    margin: 0 0 24px;
    min-height: 20px;
}

#insight360-wrap .i360-load-bar {
    height: 3px;
    background: #e8e4df;
    border-radius: 99px;
    overflow: hidden;
    max-width: 260px;
    margin: 0 auto;
}

#insight360-wrap .i360-load-bar-fill {
    height: 100%;
    width: 0%;
    background: #C09D72;
    border-radius: 99px;
    transition: width 0.25s ease;
}

/* ── Result ──────────────────────────────────────────── */

@keyframes i360-reveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

#insight360-wrap .i360-result {
    animation: i360-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#insight360-wrap .i360-hero {
    text-align: center;
    padding: 40px 20px 32px;
    background: linear-gradient(135deg, #002519 0%, #003d2a 100%);
    border-radius: 16px;
    margin-bottom: 28px;
}

#insight360-wrap .i360-hero-subtitle {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C09D72;
    margin: 0 0 10px;
    font-weight: 600;
}

#insight360-wrap .i360-hero-type {
    font-size: clamp(1.6em, 4vw, 2.4em);
    font-weight: 800;
    margin: 0;
    color: #fff !important;
    line-height: 1.15;
}

#insight360-wrap .i360-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
}

#insight360-wrap .i360-bar-row {
    display: grid;
    grid-template-columns: 170px 1fr 48px;
    align-items: center;
    gap: 12px;
}

@media (max-width: 560px) {
    #insight360-wrap .i360-bar-row {
        grid-template-columns: 110px 1fr 40px;
    }
}

#insight360-wrap .i360-bar-label {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    color: #333;
    line-height: 1.3;
}

#insight360-wrap .i360-bar-label small {
    font-size: 0.85em;
    color: #888;
}

#insight360-wrap .i360-bar-track {
    height: 10px;
    background: #e0e0e0;
    border-radius: 99px;
    overflow: hidden;
}

#insight360-wrap .i360-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--bar-color);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#insight360-wrap .i360-bar-fill.i360-animated {
    width: var(--bar-width);
}

#insight360-wrap .i360-bar-pct {
    font-size: 0.82em;
    font-weight: 700;
    color: #555;
}

#insight360-wrap .i360-text {
    margin-bottom: 28px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#insight360-wrap .i360-type-text {
    border-top: 4px solid #C09D72;
}

#insight360-wrap .i360-text p {
    margin: 0 0 1em;
    line-height: 1.7;
    color: #444;
}

#insight360-wrap .i360-text p:last-child {
    margin-bottom: 0;
}

#insight360-wrap .i360-text strong {
    color: #002519;
}

#insight360-wrap .i360-print-row {
    display: flex;
    justify-content: center;
    margin: 8px 0 30px;
}

#insight360-wrap .i360-print-row .i360-btn {
    padding: 16px 40px !important;
    font-size: 15px !important;
}
