/* guided-intake.css — Guided Intake presentation layer (js/app-guided.js).
   Scope: everything under #quotingTool.guided-active + .gi-* classes.
   Keyframes live in css/animations.css (gi-slide-in, gi-pulse, gi-pop). */

/* ── Classic wizard chrome hides while guided owns the screen ── */
#quotingTool.guided-active .step,
#quotingTool.guided-active .progress-track,
#quotingTool.guided-active #btnBack,
#quotingTool.guided-active #btnNext,
#quotingTool.guided-active #footerStepCount,
#quotingTool.guided-active #stepTitle,
#quotingTool.guided-active .pq-step-nav,
#quotingTool.guided-active #giGuidedChip {
    display: none !important;
}

/* ── Layout ── */
.gi-root {
    max-width: 760px;
    margin: 0 auto;
    padding: 4px 4px 48px;
}

/* ── HUD: progress + section dots ── */
.gi-hud { position: sticky; top: 0; z-index: 5; padding: 10px 2px 8px; background: transparent; }
.gi-hud-top { display: flex; align-items: center; gap: 10px; }
.gi-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-input);
    overflow: hidden;
}
.gi-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--apple-blue), #30d158);
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.gi-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.gi-mode-btn {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s, border-color .15s, transform .15s;
}
.gi-mode-btn:hover { color: var(--text); border-color: var(--apple-blue); transform: translateY(-1px); }

.gi-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.gi-dot {
    width: 18px; height: 8px;
    border-radius: 999px;
    border: none;
    background: var(--bg-input);
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .25s, transform .15s;
}
.gi-dot:hover { transform: scaleY(1.4); }
.gi-dot-done { background: #30d158; }
.gi-dot-deferred { background: #ff9f0a; }
.gi-dot-current {
    width: 34px;
    background: var(--apple-blue);
    animation: gi-pulse 2.2s ease-in-out infinite;
}

/* ── The question card ── */
.gi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 22px 16px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .10);
}
.gi-enter { animation: gi-slide-in .38s cubic-bezier(.22, 1, .36, 1) both; }

.gi-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.gi-icon {
    font-size: 30px; line-height: 1;
    flex: 0 0 auto;
    animation: gi-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.gi-title { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.3px; }
.gi-ask {
    margin: 0;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-input);
    border-left: 3px solid var(--apple-blue);
    border-radius: 0 10px 10px 0;
    padding: 8px 12px;
}
.gi-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary); }

/* ── Inline tools ── */
.gi-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.gi-tool {
    border: 1px dashed var(--border);
    background: transparent;
    color: var(--apple-blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, transform .15s, border-color .15s;
}
.gi-tool:hover { background: var(--bg-input); border-color: var(--apple-blue); transform: translateY(-1px); }

/* ── Mounted field rows ── */
.gi-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px 14px;
    margin-top: 14px;
}
.gi-body .gi-row { min-width: 0; }
.gi-body .gi-row > input,
.gi-body .gi-row > select,
.gi-body .gi-row > textarea { width: 100%; }
/* Wholesale-mounted cards/accordions span the full card width */
.gi-body-container { display: block; }
.gi-body-container > .card,
.gi-body-container > details { margin: 0; }

/* ── Nav ── */
.gi-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.gi-nav-right { display: flex; gap: 8px; }
.gi-nav .btn { flex: 0 0 auto; width: auto; }
.gi-next { min-width: 128px; font-weight: 700; transition: transform .15s; }
.gi-next:hover { transform: translateY(-1px) scale(1.02); }
.gi-back:disabled { opacity: .4; cursor: default; }
.gi-later {
    border: 1px solid #ff9f0a;
    color: #ff9f0a;
    background: transparent;
}
.gi-later:hover { background: rgba(255, 159, 10, .12); }

/* ── Deferred tray ── */
.gi-deferred {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px dashed #ff9f0a;
    border-radius: 14px;
}
.gi-deferred-label { font-size: 12.5px; font-weight: 700; color: #ff9f0a; }
.gi-chip {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.gi-chip:hover { border-color: #ff9f0a; transform: translateY(-1px); }

/* ── Phone-call ergonomics ── */
@media (max-width: 640px) {
    .gi-card { padding: 16px 14px 12px; border-radius: 16px; }
    .gi-body { grid-template-columns: 1fr; }
    .gi-next { flex: 1; }
    .gi-nav-right { flex: 1; }
}

/* ── Dark mode ── */
body.dark-mode .gi-card { box-shadow: 0 10px 34px rgba(0, 0, 0, .45); }
body.dark-mode .gi-ask { background: #1C1C1E; }
