.chat-contact-page {
    background: #E8ECF0;
    min-height: calc(100vh - 60px);
    padding: 0;
}

.chat-contact-container {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: #F5F5F5;
}

.chat-contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #003366;
    color: #FFFFFF;
    flex-shrink: 0;
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-contact-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-contact-name {
    font-size: 14px;
    font-weight: 700;
}

.chat-contact-role {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.chat-contact-status {
    font-size: 11px;
    color: #4CAF50;
}

.chat-contact-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* オペレーターバブル */
.chat-bubble-op {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 85%;
}

.chat-bubble-op-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-bubble-op-text {
    background: #FFFFFF;
    border-radius: 0 12px 12px 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ユーザーバブル */
.chat-bubble-user {
    align-self: flex-end;
    max-width: 75%;
}

.chat-bubble-user-text {
    background: #003366;
    color: #FFFFFF;
    border-radius: 12px 0 12px 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* タイピングインジケーター */
.chat-typing {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-typing-dots {
    background: #FFFFFF;
    border-radius: 0 12px 12px 12px;
    padding: 12px 20px;
    display: flex;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: chatTyping 1.2s infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* 選択肢ボタン */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 16px;
}

.chat-option-btn {
    background: #FFFFFF;
    border: 2px solid #003366;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #003366;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: #003366;
    color: #FFFFFF;
}

/* テキスト入力 */
.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-top: 1px solid #E0E0E0;
}

.chat-input-field {
    flex: 1;
    border: 1px solid #CCCCCC;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

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

.chat-send-btn {
    background: #003366;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 完了メッセージ */
.chat-complete-card {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 8px 0;
}

.chat-complete-card h3 {
    color: #2E7D32;
    font-size: 16px;
    margin-bottom: 8px;
}

.chat-complete-card p {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .chat-contact-container {
        max-width: 100%;
    }

    .chat-bubble-op {
        max-width: 90%;
    }
}