/* ============================================
   結果画面 — 営業提案書スタイル
   ============================================ */

.result-container {
    max-width: 760px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

/* ========== 提案書ヘッダー ========== */
.proposal-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 24px 32px;
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    border-radius: 4px;
    color: #FFFFFF;
}

.proposal-header-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    padding: 4px 16px;
    margin-bottom: 16px;
}

.proposal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.proposal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* ========== 結果ページ上部CTA ========== */
.result-top-cta {
    margin-bottom: 32px;
}

.result-top-cta-inner {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
    border: 2px solid #F9A825;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
}

.result-top-cta-title {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 20px;
}

.result-top-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-top-cta-buttons .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .result-top-cta-inner {
        padding: 20px 16px;
    }
    .result-top-cta-title {
        font-size: 16px;
    }
    .result-top-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .result-top-cta-buttons .btn {
        width: 100%;
    }
}

/* ========== セクション共通 ========== */
.proposal-section {
    margin-bottom: 32px;
}

.proposal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid #003366;
    margin-bottom: 20px;
}

.proposal-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin: 0;
}

.proposal-section-count {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
    background: #E8EEF5;
    padding: 4px 12px;
    border-radius: 2px;
}

/* ========== 補助金カード ========== */
.subsidy-card {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-left: 4px solid #003366;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
}

.subsidy-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.subsidy-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #003366;
    margin: 0;
    line-height: 1.4;
}

.subsidy-card-badge {
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
}

.badge-high {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.badge-medium {
    background: #FFF8E1;
    color: #F57F17;
    border: 1px solid #FFECB3;
}

.badge-low {
    background: #F5F5F5;
    color: #757575;
    border: 1px solid #E0E0E0;
}

/* 補助金詳細グリッド */
.subsidy-card-details {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 2px;
}

.subsidy-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subsidy-detail-label {
    font-size: 11px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.05em;
}

.subsidy-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.subsidy-detail-item:first-child .subsidy-detail-value {
    color: #C62828;
    font-size: 22px;
}

.subsidy-card-summary {
    font-size: 14px;
    color: #555555;
    margin-bottom: 12px;
    line-height: 1.7;
}

.subsidy-card-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: #666666;
}

.subsidy-card-deadline {
    font-weight: 600;
    color: #C62828;
}

.subsidy-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0056b3;
}

.subsidy-card-link:hover {
    text-decoration: underline;
}

/* 適合度で左ボーダー色を変更 */
.subsidy-card[data-match="high"] {
    border-left-color: #2E7D32;
}

.subsidy-card[data-match="medium"] {
    border-left-color: #F9A825;
}

.subsidy-card[data-match="low"] {
    border-left-color: #757575;
}

/* ========== DX課題セクション ========== */
.proposal-dx-section {
    background: #FAFBFC;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    padding: 28px 24px;
}

.proposal-dx-section .proposal-section-header {
    border-bottom-color: #003366;
}

.dx-level-card {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.dx-level-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.dx-level-beginner {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFE0B2;
}

.dx-level-developing {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

.dx-level-advanced {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.dx-level-card p {
    font-size: 14px;
    color: #555555;
    margin: 0;
    line-height: 1.7;
}

.dx-issues-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.dx-issues-list li {
    font-size: 14px;
    color: #333333;
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid #E8E8E8;
    position: relative;
    line-height: 1.6;
}

.dx-issues-list li:last-child {
    border-bottom: none;
}

.dx-issues-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #C62828;
    border-radius: 50%;
}

.dx-pain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dx-pain-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #003366;
    background: #E8EEF5;
    border: 1px solid #BDD0E7;
    border-radius: 2px;
    padding: 4px 12px;
}

/* ========== おすすめシステム導入 ========== */
.proposal-recommend-lead {
    font-size: 14px;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.recommend-card {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
}

.recommend-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
}

.recommend-card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.recommend-card-cost {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 2px;
}

.recommend-cost-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recommend-cost-label {
    font-size: 11px;
    font-weight: 500;
    color: #888888;
}

.recommend-cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
}

.recommend-cost-arrow {
    font-size: 20px;
    color: #003366;
    font-weight: 700;
    flex-shrink: 0;
}

.recommend-cost-actual {
    flex: 1;
}

.recommend-cost-highlight {
    color: #C62828;
}

/* ========== CTA セクション ========== */
.proposal-cta-section {
    background: #003366;
    border-radius: 4px;
    padding: 40px 32px;
    text-align: center;
    color: #FFFFFF;
}

.proposal-cta-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.proposal-steps {
    text-align: left;
    margin-bottom: 32px;
}

.proposal-step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.proposal-step-item:last-child {
    border-bottom: none;
}

.proposal-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.proposal-step-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.proposal-step-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.proposal-cta-btn {
    display: inline-block;
    background: #E8594F;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.proposal-cta-btn:hover {
    background: #D04A40;
    color: #FFFFFF;
}

.proposal-cta-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    margin-bottom: 0;
}

/* ========== すりガラスぼかし + メールゲート ========== */
.subsidy-card-blurred {
    position: relative;
    filter: blur(6px);
    -webkit-filter: blur(6px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.4s ease;
}

.blur-overlay {
    position: relative;
    margin-top: -40px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 10;
}

.blur-overlay h3 {
    color: #003366;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blur-overlay-desc {
    color: #555555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.email-gate-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.email-gate-form input[type="email"] {
    padding: 12px 16px;
    border: 2px solid #003366;
    border-radius: 4px;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
    outline: none;
}

.email-gate-form input[type="email"]:focus {
    border-color: #004d99;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.email-gate-form button {
    padding: 12px 24px;
    background: #E8594F;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.email-gate-form button:hover {
    background: #D04A40;
}

.email-gate-form button:disabled {
    background: #999999;
    cursor: not-allowed;
}

/* トースト通知 */
.toast-notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #003366;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.3s ease;
}

.toast-fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* メールスキップリンク */
.email-skip-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #888888;
    text-decoration: underline;
    cursor: pointer;
}

.email-skip-link:hover {
    color: #555555;
}

/* ========== スノッブ効果: 専用レポートバッジ ========== */
.result-exclusive-badge {
    text-align: center;
    margin-bottom: 16px;
}

.result-exclusive-badge span {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #003366;
    background: #E8EEF5;
    border: 1px solid #BDD0E7;
    border-radius: 2px;
    padding: 6px 20px;
}

/* ========== アンカリング効果: 最大交付額バナー ========== */
.anchoring-banner {
    text-align: center;
    padding: 24px;
    margin-bottom: 24px;
    background: #FAFBFC;
    border: 1px solid #D0DAE5;
    border-radius: 4px;
}

.anchoring-label {
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.anchoring-amount {
    font-size: 40px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 4px;
    line-height: 1.2;
}

.anchoring-unit {
    font-size: 20px;
    font-weight: 500;
}

.anchoring-sub {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* ========== 吊橋効果: 期限警告バナー ========== */
.deadline-warning-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-left: 4px solid #E65100;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    color: #E65100;
}

.deadline-warning-icon {
    font-size: 16px;
}

/* ========== 吊橋効果: カウントダウン ========== */
.subsidy-countdown {
    margin-bottom: 12px;
}

.countdown-days {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    background: #C62828;
    padding: 3px 12px;
    border-radius: 2px;
}

/* ========== アンカリング: 3段階コスト表示 ========== */
.subsidy-cost-breakdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: #F0F4F8;
    border-radius: 2px;
    flex-wrap: wrap;
}

.cost-item {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.cost-subsidy {
    color: #2E7D32;
}

.cost-actual {
    color: #C62828;
    font-weight: 700;
}

.cost-arrow {
    font-size: 13px;
    color: #888888;
}

/* ========== バンドワゴン: 申請数 ========== */
.subsidy-apply-count {
    font-size: 12px;
    color: #888888;
    margin-bottom: 8px;
}

.subsidy-apply-count strong {
    color: #003366;
    font-weight: 700;
}

/* ========== ディドロ効果: システム例 ========== */
.proposal-diderot-section {
    background: #FAFBFC;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    padding: 28px 24px;
}

.diderot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.diderot-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.diderot-icon {
    color: #003366;
    font-size: 10px;
}

.diderot-note {
    font-size: 13px;
    color: #555555;
    text-align: center;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #E0E0E0;
}

/* ========== スノッブ効果: PDF限定 ========== */
.result-pdf-teaser {
    text-align: center;
    padding: 20px;
    margin-bottom: 24px;
    background: #F5F5F5;
    border: 1px dashed #CCCCCC;
    border-radius: 4px;
}

.pdf-teaser-text {
    font-size: 14px;
    color: #555555;
    margin: 0;
}

.pdf-teaser-text strong {
    color: #003366;
    font-weight: 700;
}

/* ========== 結果ページ: 専門家相談セクション ========== */
.proposal-contact-section {
    background: #FAFBFC;
    border: 2px solid #003366;
    border-radius: 4px;
    padding: 32px 28px;
    margin-bottom: 32px;
}

.proposal-contact-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 20px;
    text-align: center;
}

.proposal-contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.proposal-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    text-align: center;
}

.proposal-contact-label {
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.05em;
}

.proposal-contact-value {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

.proposal-contact-note {
    font-size: 12px;
    color: #999999;
}

.proposal-contact-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.proposal-email-btn {
    font-size: 14px;
    padding: 12px 32px;
}

@media (max-width: 768px) {
    .proposal-contact-section {
        padding: 24px 16px;
    }
    .proposal-contact-methods {
        grid-template-columns: 1fr;
    }
    .proposal-contact-value {
        font-size: 16px;
    }
    .proposal-email-btn {
        width: 100%;
    }
}

/* ========== ローディング ========== */
.result-loading {
    text-align: center;
    padding: 60px 0;
}

.result-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8E8E8;
    border-top-color: #003366;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-loading .loading-main-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
}

/* 採択事例カルーセル */
.loading-case-carousel {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}

.loading-case-label {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.loading-case-card {
    background: #F5F8FC;
    border: 1px solid #D8E2ED;
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.3s ease;
    text-align: left;
}

.loading-case-industry {
    font-size: 11px;
    color: #FFFFFF;
    background: #003366;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    align-self: flex-start;
    font-weight: 600;
}

.loading-case-type {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
}

.loading-case-amount {
    font-size: 18px;
    font-weight: 700;
    color: #C62828;
}

.loading-case-use {
    font-size: 13px;
    color: #555555;
}

.loading-case-result {
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .proposal-header {
        padding: 32px 16px 24px;
    }

    .proposal-header h2 {
        font-size: 20px;
    }

    .subsidy-card {
        padding: 20px 16px;
    }

    .subsidy-card-header {
        flex-direction: column;
    }

    .subsidy-card-details {
        flex-direction: column;
        gap: 12px;
    }

    .subsidy-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .proposal-dx-section {
        padding: 20px 16px;
    }

    .recommend-card-cost {
        flex-direction: column;
        gap: 8px;
    }

    .recommend-cost-arrow {
        transform: rotate(90deg);
    }

    .proposal-cta-section {
        padding: 32px 16px;
    }

    .proposal-cta-btn {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .email-gate-form {
        flex-direction: column;
        align-items: center;
    }

    .email-gate-form input[type="email"] {
        width: 100%;
    }

    .email-gate-form button {
        width: 100%;
    }

    .anchoring-amount {
        font-size: 32px;
    }

    .subsidy-cost-breakdown {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .diderot-grid {
        grid-template-columns: 1fr;
    }

    .proposal-diderot-section {
        padding: 20px 16px;
    }
}

/* ========== リードゲートフォーム ========== */
.lead-gate-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-gate-field {
    width: 100%;
}

.lead-gate-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #003366;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.lead-gate-input:focus {
    border-color: #004d99;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.lead-gate-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555555;
}

.lead-gate-consent a {
    color: #0056b3;
    text-decoration: underline;
}

.lead-gate-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

.lead-gate-error {
    color: #C62828;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ========== システムニーズ質問 ========== */
.system-interest-card {
    background: #FAFBFC;
    border: 2px solid #003366;
    border-radius: 4px;
    padding: 32px 24px;
    text-align: center;
}

.system-interest-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 20px;
}

.system-interest-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.system-interest-btn {
    min-width: 160px;
    padding: 14px 20px;
    font-size: 15px;
    transition: all 0.2s;
}

.system-interest-btn.selected {
    background: #003366;
    color: #FFFFFF;
    border-color: #003366;
}

/* ========== 無料相談CTA ========== */
.consult-card {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
    border: 2px solid #F9A825;
    border-radius: 4px;
    padding: 32px 24px;
    text-align: center;
}

.consult-lead {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.consult-open-btn {
    font-size: 18px;
    padding: 18px 48px;
    animation: ctaPulse 2s infinite;
}

/* ========== AI チャット ========== */
.ai-chat-container {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #003366;
    color: #FFFFFF;
}

.ai-chat-header strong {
    color: #FFFFFF;
    font-size: 15px;
}

.ai-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.ai-chat-header-avatar svg {
    width: 100%;
    height: 100%;
}

.ai-chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F5F5F5;
}

.ai-chat-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
    animation: chatFadeIn 0.3s ease;
}

.ai-chat-row-ai {
    align-self: flex-start;
}

.ai-chat-row-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-chat-avatar svg {
    width: 100%;
    height: 100%;
}

.ai-chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.ai-chat-bubble-ai {
    background: #FFFFFF;
    color: #333333;
    border-radius: 2px 12px 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ai-chat-bubble-user {
    background: #003366;
    color: #FFFFFF;
    border-radius: 12px 2px 12px 12px;
}

.ai-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-top: 1px solid #E0E0E0;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #D0D0D0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.ai-chat-input:focus {
    border-color: #003366;
}

.ai-chat-send-btn {
    padding: 12px 24px;
    white-space: nowrap;
}

.ai-chat-booking {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FFF3E0, #FFF8E1);
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    margin-top: 8px;
}

.ai-chat-booking p {
    font-size: 14px;
    color: #333333;
    margin: 0 0 12px;
}

.ai-chat-booking-btn {
    font-size: 16px;
    padding: 14px 32px;
}

@media (max-width: 768px) {
    .system-interest-options {
        flex-direction: column;
    }
    .system-interest-btn {
        width: 100%;
    }
    .ai-chat-messages {
        min-height: 250px;
    }
    .lead-gate-form {
        max-width: 100%;
    }
    .consult-card {
        padding: 24px 16px;
    }
    .consult-open-btn {
        width: 100%;
        padding: 16px 24px;
    }
}
