/* ============================================================
   Larry Trustee AI — Guided Intake UI Styles
   Extends advisor/styles.css; loaded only on /advisor/
   Designed for the dark navy advisor theme (bg #0c1a2e, text #e8e6e3).
   ============================================================ */

/* ---- Banner (shown at top when paid user lands on advisor) ---- */
.intake-banner {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border: 1px solid #c9a84c;
    border-radius: 12px;
    margin: 16px 20px 0;
    padding: 18px 22px;
    box-shadow: 0 4px 18px rgba(201, 168, 76, 0.18);
    animation: intake-fade-in 0.6s ease;
}
.intake-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}
.intake-banner-text { flex: 1 1 300px; min-width: 0; }
.intake-banner-text strong { display: block; color: #f5e8b8; font-size: 16px; margin-bottom: 4px; }
.intake-banner-text p { color: #d6cfb8; font-size: 14px; margin: 0; line-height: 1.5; }
.intake-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.intake-cta {
    background: linear-gradient(135deg, #c9a84c, #b08a30);
    color: #0c1a2e;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-block;
}
.intake-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 168, 76, 0.4); }
.intake-secondary {
    background: transparent;
    color: #f0d98a;
    border: 1px solid #c9a84c;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}
.intake-secondary:hover { background: rgba(201, 168, 76, 0.15); }

/* ---- Mode toggle ---- */
.intake-mode-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    padding: 10px 20px;
    font-size: 13px;
    color: #d6cfb8;
}
.intake-mode-toggle button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #e8e6e3;
}
.intake-mode-toggle button.active {
    background: #c9a84c;
    color: #0c1a2e;
    border-color: #b08a30;
    font-weight: 700;
}

/* ---- Section headers (when bot announces a new section) ---- */
.intake-section-header {
    background: rgba(201, 168, 76, 0.08);
    border-left: 3px solid #c9a84c;
    padding: 14px 16px;
    border-radius: 6px;
    margin: 6px 0;
}
.intake-section-header h3 {
    margin: 0 0 6px;
    color: #f5e8b8;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
}
.intake-section-header p { margin: 0; color: #d6cfb8; font-size: 14px; line-height: 1.55; }

/* ---- Question display ---- */
.intake-question { padding: 4px 0; }
.intake-question strong {
    color: #f5e8b8;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    display: inline-block;
}
.intake-help {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: rgba(201, 168, 76, 0.08);
    border-left: 2px solid #c9a84c;
    color: #d6cfb8;
    font-size: 13px;
    line-height: 1.55;
    border-radius: 4px;
}
.intake-required { color: #ff6b6b; margin-left: 4px; font-weight: 700; }
.intake-sub-question { padding-left: 14px; border-left: 2px solid rgba(201, 168, 76, 0.3); }

/* ---- Option buttons (yes/no, select, etc.) ---- */
.intake-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.intake-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #c9a84c;
    color: #f0d98a;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.intake-option-btn:hover:not(:disabled) {
    background: #c9a84c;
    color: #0c1a2e;
    font-weight: 700;
}
.intake-option-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.intake-option-secondary { border-color: rgba(255, 255, 255, 0.3); color: #d6cfb8; }

/* ---- Multi-select ---- */
.intake-multiselect { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.intake-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.intake-checkbox:hover { border-color: #c9a84c; background: rgba(201, 168, 76, 0.08); }
.intake-checkbox input { margin-top: 2px; accent-color: #c9a84c; }
.intake-checkbox span { font-size: 14px; line-height: 1.5; color: #e8e6e3; }

/* ---- Repeater (children, beneficiaries, assets) ---- */
.intake-repeater {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(201, 168, 76, 0.4);
    border-radius: 8px;
}
.intake-repeater p { margin: 0 0 12px; font-size: 14px; color: #d6cfb8; }
.intake-repeater-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.intake-repeater-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}
.intake-repeater-item span { font-size: 14px; color: #e8e6e3; }
.intake-mini-btn {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid #ff6b6b;
    color: #ff8a8a;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}
.intake-mini-btn:hover { background: #ff6b6b; color: #0c1a2e; font-weight: 700; }
.intake-repeater-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Recommendation ---- */
.intake-recommendation h3 {
    color: #f5e8b8;
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}
.intake-rec-item {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid #c9a84c;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.intake-rec-item strong { display: block; color: #f0d98a; margin-bottom: 4px; font-size: 15px; }
.intake-rec-item p { margin: 0; color: #d6cfb8; font-size: 13px; line-height: 1.55; }

/* ---- Review ---- */
.intake-review {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.3);
}
.intake-review h3 {
    margin: 0 0 12px;
    color: #f5e8b8;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}
.intake-review h4 {
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c9a84c;
    color: #f0d98a;
    font-size: 16px;
    font-weight: 600;
}
.intake-review-section { margin-bottom: 14px; }
.intake-review dl { margin: 0; display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px 14px; }
.intake-review dt { font-weight: 500; color: #d6cfb8; font-size: 13px; padding: 4px 0; }
.intake-review dd { margin: 0; color: #f5e8b8; font-size: 13px; padding: 4px 0; word-break: break-word; }

/* ---- Complete state ---- */
.intake-complete {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid #22c55e;
    border-radius: 10px;
    padding: 20px;
}
.intake-complete h3 {
    margin: 0 0 10px;
    color: #86efac;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}
.intake-complete p { color: #d6cfb8; line-height: 1.6; margin: 8px 0; }
.intake-complete a { color: #0c1a2e; }

/* ---- Embedded inputs in chat (textarea/text questions) ---- */
.intake-input-wrap textarea,
.intake-input-wrap input[type="text"],
.intake-input-wrap input[type="email"],
.intake-input-wrap input[type="tel"],
.intake-input-wrap input[type="date"],
.intake-input-wrap input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #e8e6e3;
    padding: 10px 12px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}
.intake-input-wrap textarea:focus,
.intake-input-wrap input:focus {
    outline: none;
    border-color: #c9a84c;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Animations ---- */
@keyframes intake-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .intake-banner { margin: 10px 12px 0; padding: 14px; }
    .intake-banner-inner { flex-direction: column; align-items: stretch; }
    .intake-review dl { grid-template-columns: 1fr; }
    .intake-review dt { padding-bottom: 0; }
    .intake-review dd { padding-top: 0; padding-bottom: 8px; border-bottom: 1px dashed rgba(201, 168, 76, 0.2); }
}
