/* Chatbot Floating Button */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.chatbot-button i {
    color: white;
    font-size: 26px;
}

/* Chatbot Modal */
.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1001;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 150px);
}

.chatbot-modal.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.15);
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chatbot-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

/* Chatbot Body */
.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f7f8fc 0%, #ffffff 100%);
}

.chatbot-body::-webkit-scrollbar {
    width: 8px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: #f0f0f5;
    border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Chat Messages */
.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    text-align: left;
}

.chat-message.user {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message.bot .message-bubble {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background-color: #f0f0f5;
    color: #2d3748;
    border-bottom-right-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Chatbot Footer */
.chatbot-footer {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Select Options */
.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    max-width: 100%;
    align-items: flex-start;
}

.chatbot-option-btn {
    padding: 12px 18px;
    background-color: #ffffff;
    border: 2px solid #1e40af;
    color: #1e40af;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chatbot-option-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Budget Slider */
.budget-slider-container {
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 15px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.budget-slider-container label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.budget-value {
    display: block;
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.budget-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, #1e40af 0%, #3b82f6 100%);
    outline: none;
    /* -webkit-appearance: none; */
    opacity: 0.9;
    transition: opacity 0.3s;
}

.budget-slider:hover {
    opacity: 1;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.5);
    transition: all 0.3s ease;
}

.budget-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.6);
}

.budget-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.5);
    transition: all 0.3s ease;
}

.budget-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.6);
}

.slider-confirm-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.3px;
}

.slider-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Input Fields */
.chatbot-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 18px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chatbot-input {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    color: #2d3748;
    box-sizing: border-box;
}

.chatbot-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.chatbot-input.error {
    border-color: #f56565;
}

.error-message {
    color: #f56565;
    font-size: 12px;
    margin-top: -8px;
    margin-left: 18px;
    font-weight: 500;
}

.chatbot-submit-btn {
    padding: 13px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.3px;
}

.chatbot-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.chatbot-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 768px) {
    .chatbot-modal {
        width: 380px;
        height: 550px;
    }
}

@media (max-width: 767px) {
    .chatbot-modal {
        width: 320px;
        left: 20px;
        bottom: 90px;
        height: 550px;
        max-height: calc(100vh - 120px);
    }

    .chatbot-button {
        left: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .chatbot-button i {
        font-size: 22px;
    }
}

/* Path Selection Styles (Hire Us / Join Us) */
.chatbot-path-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    max-width: 100%;
    align-items: flex-start;
}

.chatbot-path-btn {
    padding: 12px 18px;
    background-color: #ffffff;
    border: 2px solid #1e40af;
    color: #1e40af;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chatbot-path-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.path-label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* Career Options Styles */
.chatbot-career-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    max-width: 100%;
    align-items: flex-start;
}

.chatbot-career-btn {
    padding: 14px 18px;
    background-color: #ffffff;
    border: 2px solid #1e40af;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 85%;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chatbot-career-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    border-color: transparent;
}

.chatbot-career-btn:hover .career-title {
    color: white;
}

.chatbot-career-btn:hover .career-description {
    color: rgba(255, 255, 255, 0.95);
}

.career-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

.career-description {
    font-size: 13px;
    color: #718096;
    transition: color 0.3s ease;
    line-height: 1.4;
}

/* Apply Link Styles */
.chatbot-apply-container {
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 15px;
    margin: 10px auto 0;
    width: 85%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.apply-message {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.chatbot-apply-btn {
    display: block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    margin: 0 auto;
    width: fit-content;
    letter-spacing: 0.3px;
}

.chatbot-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}
