﻿.progress-container {
    position: relative;
    padding: 20px;
    height: 100%;
}

.progress-steps {
    position: relative;
    height: 100%;
}

.progress-line {
    position: absolute;
    left: 50%;
    height: calc(100% - 50px);
    width: 2px;
    background-color: #dee2e6;
    transform: translateX(-50%);
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    left: 50%;
    width: 2px;
    background-color: #0d6efd;
    transform: translateX(-50%);
    z-index: 2;
    transition: height 0.3s ease;
    height: 0;
}

.step-item {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: end;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #6c757d;
    transition: all 0.3s ease;
}

    .step-circle.active {
        border-color: #0d6efd;
        color: #0d6efd;
        border-width: 3px;
    }

    .step-circle.completed {
        border-color: #0d6efd;
        color: #0d6efd;
    }

.chat-section {
    /* chatbox height here */
    height: 650px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}

@@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.message-bubble {
    background-color: white;
    padding: 15px 20px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}

.user-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 18px;
    border-top-right-radius: 4px;
    max-width: 70%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.choices-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 50px;
    animation: slideIn 0.4s ease;
}

.choice-btn {
    padding: 12px 18px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background-color: white;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .choice-btn:hover {
        border-color: #667eea;
        background-color: #f8f9ff;
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    }

    .choice-btn:active {
        transform: translateX(5px) scale(0.98);
    }

.completion-message {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .completion-message h3 {
        color: #667eea;
        margin-bottom: 15px;
        font-size: 28px;
    }

.completion-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Scrollbar styling */
.chat-section::-webkit-scrollbar {
    width: 8px;
}

.chat-section::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.chat-section::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

    .chat-section::-webkit-scrollbar-thumb:hover {
        background: #6c757d;
    }

.custom-close-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translate(50%, -50%);
    font-size: 24px;
    color: #6c757d;
    padding: 0;
    line-height: 1;
}

    .custom-close-btn:hover {
        background-color: #f8f9fa;
        border-color: #adb5bd;
        color: #495057;
        transform: translate(50%, -50%) scale(1.1);
    }

    .custom-close-btn:active {
        transform: translate(50%, -50%) scale(0.95);
    }

    .custom-close-btn span {
        display: block;
        line-height: 1;
    }

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 50px;
    animation: slideIn 0.4s ease;
}

.chat-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

    .chat-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.submit-btn {
    align-self: flex-end;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }