/* ============================================================
   AI READINESS PAGE
   ============================================================ */

.tiq-air-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Page header ── */
.tiq-air-header {
    margin-bottom: 2rem;
}

.tiq-air-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.25rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-air-header p {
    font-size: 0.9rem;
    color: var(--tiq-text-3);
    margin: 0 0 1rem;
}

.tiq-air-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Progress indicator ── */
.tiq-air-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.tiq-air-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.tiq-air-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--tiq-border);
    background: var(--tiq-surface);
    color: var(--tiq-text-4);
    transition: all 0.2s;
}

.tiq-air-step--active .tiq-air-step-dot {
    border-color: #00B27A;
    background: #00B27A;
    color: #fff;
}

.tiq-air-step--done .tiq-air-step-dot {
    border-color: #00B27A;
    background: var(--tiq-green-light);
    color: #00B27A;
}

.tiq-air-step-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--tiq-text-4);
    white-space: nowrap;
}

.tiq-air-step--active .tiq-air-step-label {
    color: var(--tiq-text);
    font-weight: 600;
}

.tiq-air-step--done .tiq-air-step-label {
    color: var(--tiq-text-3);
}

.tiq-air-step-line {
    flex: 1;
    height: 2px;
    background: var(--tiq-border);
    margin: 0 0.5rem;
    min-width: 20px;
}

.tiq-air-step-line--done {
    background: #00B27A;
}

/* ── Wizard card ── */
.tiq-air-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: var(--tiq-shadow);
}

.tiq-air-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.25rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-air-card .tiq-air-card-sub {
    font-size: 0.84rem;
    color: var(--tiq-text-3);
    margin: 0 0 1.5rem;
}

/* ── Form fields ── */
.tiq-air-field {
    margin-bottom: 1.25rem;
}

.tiq-air-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tiq-text-2);
    margin-bottom: 0.35rem;
}

.tiq-air-field label span {
    font-weight: 400;
    color: var(--tiq-text-4);
}

.tiq-air-field input[type="text"],
.tiq-air-field select,
.tiq-air-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tiq-border);
    border-radius: 6px;
    background: var(--tiq-bg);
    color: var(--tiq-text);
    font-size: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.tiq-air-field input[type="text"]:focus,
.tiq-air-field select:focus,
.tiq-air-field textarea:focus {
    outline: none;
    border-color: #00B27A;
    box-shadow: 0 0 0 3px rgba(0, 178, 122, 0.1);
}

.tiq-air-field select option {
    background: var(--tiq-surface);
}

.tiq-air-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .tiq-air-row { grid-template-columns: 1fr; }
}

/* ── Checkbox grid ── */
.tiq-air-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tiq-air-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--tiq-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.tiq-air-check-item:hover {
    border-color: #00B27A;
    background: rgba(0, 178, 122, 0.04);
}

.tiq-air-check-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #00B27A;
    cursor: pointer;
    flex-shrink: 0;
}

.tiq-air-check-item span {
    font-size: 0.8rem;
    color: var(--tiq-text-2);
    line-height: 1.3;
}

/* ── Quality rating ── */
.tiq-air-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tiq-air-rating-label {
    font-size: 0.78rem;
    color: var(--tiq-text-4);
    flex-shrink: 0;
}

.tiq-air-rating-options {
    display: flex;
    gap: 0.5rem;
}

.tiq-air-rating-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tiq-border);
    background: var(--tiq-surface);
    color: var(--tiq-text-3);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiq-air-rating-btn:hover { border-color: #00B27A; }

.tiq-air-rating-btn--active {
    border-color: #00B27A;
    background: #00B27A;
    color: #fff;
}

/* ── Toggle switch ── */
.tiq-air-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.tiq-air-toggle input[type="checkbox"] {
    width: 36px;
    height: 20px;
    accent-color: #00B27A;
    cursor: pointer;
}

.tiq-air-toggle span {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--tiq-text-2);
}

/* ── Wizard navigation ── */
.tiq-air-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tiq-border);
}

.tiq-air-nav--end {
    justify-content: flex-end;
}

/* ── Validation message ── */
.tiq-air-validation {
    padding: 0.6rem 0.875rem;
    background: rgba(255, 180, 50, 0.1);
    border: 1px solid rgba(255, 180, 50, 0.3);
    border-radius: 6px;
    font-size: 0.82rem;
    color: #c77c00;
    margin-top: 1rem;
}

/* ── Generating state ── */
.tiq-air-generating {
    text-align: center;
    padding: 4rem 2rem;
}

.tiq-air-generating-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tiq-border);
    border-top-color: #00B27A;
    border-radius: 50%;
    animation: tiq-spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes tiq-spin {
    to { transform: rotate(360deg); }
}

.tiq-air-generating h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tiq-text);
    margin: 0 0 0.4rem;
}

.tiq-air-generating p {
    font-size: 0.84rem;
    color: var(--tiq-text-3);
    margin: 0;
}

/* ── Results ── */
.tiq-air-roadmap-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: var(--tiq-shadow);
    margin-bottom: 2rem;
}

.tiq-air-roadmap-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00B27A;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 178, 122, 0.2);
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-air-roadmap-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00B27A;
    margin: 1.25rem 0 0.4rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-air-roadmap-content p {
    font-size: 0.875rem;
    color: var(--tiq-text-2);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.tiq-air-roadmap-content ul {
    margin: 0 0 0.75rem;
    padding-left: 1.5rem;
}

.tiq-air-roadmap-content li {
    font-size: 0.875rem;
    color: var(--tiq-text-2);
    line-height: 1.65;
    margin-bottom: 0.25rem;
}

.tiq-air-roadmap-content strong {
    color: var(--tiq-text);
    font-weight: 600;
}

/* ── Chat section ── */
.tiq-air-chat-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--tiq-shadow);
}

.tiq-air-chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tiq-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tiq-air-chat-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-air-chat-header p {
    font-size: 0.75rem;
    color: var(--tiq-text-4);
    margin: 0;
}

.tiq-air-chat-body {
    padding: 1rem 1.25rem;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tiq-air-msg {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tiq-air-msg--user {
    align-items: flex-end;
}

.tiq-air-msg--assistant {
    align-items: flex-start;
}

.tiq-air-msg-bubble {
    max-width: 82%;
    padding: 0.6rem 0.875rem;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.55;
}

.tiq-air-msg--user .tiq-air-msg-bubble {
    background: #00B27A;
    color: #fff;
    border-bottom-right-radius: 3px;
}

.tiq-air-msg--assistant .tiq-air-msg-bubble {
    background: var(--tiq-surface-2);
    color: var(--tiq-text);
    border-bottom-left-radius: 3px;
    border: 1px solid var(--tiq-border);
}

.tiq-air-msg-streaming {
    padding: 0.6rem 0.875rem;
    background: var(--tiq-surface-2);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    border-bottom-left-radius: 3px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--tiq-text);
    max-width: 82%;
}

.tiq-air-chat-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--tiq-text-4);
    font-size: 0.82rem;
}

/* ── Chat footer ── */
.tiq-air-chat-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--tiq-border);
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.tiq-air-chat-input {
    flex: 1;
    resize: none;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--tiq-border);
    border-radius: 8px;
    background: var(--tiq-bg);
    color: var(--tiq-text);
    font-size: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color 0.15s;
    line-height: 1.5;
}

.tiq-air-chat-input:focus {
    outline: none;
    border-color: #00B27A;
    box-shadow: 0 0 0 3px rgba(0, 178, 122, 0.1);
}

.tiq-air-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #00B27A;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.tiq-air-send-btn:hover:not(:disabled) { background: #009968; }
.tiq-air-send-btn:disabled { background: var(--tiq-border); cursor: not-allowed; }

/* ── Quota info ── */
.tiq-air-quota-info {
    font-size: 0.72rem;
    color: var(--tiq-text-4);
    padding: 0.25rem 1.25rem 0;
    text-align: right;
}

/* ── Quota wall ── */
.tiq-air-quota-wall {
    padding: 1.25rem;
    text-align: center;
    border-top: 1px solid var(--tiq-border);
}

.tiq-air-quota-wall p {
    font-size: 0.82rem;
    color: var(--tiq-text-3);
    margin: 0 0 0.875rem;
}

/* ── Loading state ── */
.tiq-air-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40vh;
}

.tiq-air-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tiq-border);
    border-top-color: #00B27A;
    border-radius: 50%;
    animation: tiq-spin 0.8s linear infinite;
}

/* ── No business empty state ── */
.tiq-air-empty {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.tiq-air-empty p {
    color: var(--tiq-text-3);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Buttons ── */
.tiq-air-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.tiq-air-btn-primary {
    background: #00B27A;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 178, 122, 0.25);
}

.tiq-air-btn-primary:hover { background: #009968; }

.tiq-air-btn-secondary {
    background: var(--tiq-surface-2);
    color: var(--tiq-text-2);
    border: 1px solid var(--tiq-border);
}

.tiq-air-btn-secondary:hover { background: var(--tiq-surface); color: var(--tiq-text); }

.tiq-air-btn-ghost {
    background: none;
    color: var(--tiq-text-3);
    border: 1px solid var(--tiq-border);
}

.tiq-air-btn-ghost:hover { color: var(--tiq-text); border-color: var(--tiq-text-3); }

.tiq-air-btn:disabled { opacity: 0.5; cursor: not-allowed; }
