.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 10px;
    z-index: 1000;
    width: 380px;
    max-width: 90vw;
}

.chatbot-toggle {
    background: linear-gradient(135deg, #1a365d 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    float: right;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    margin-bottom: 20px;
    height: 500px;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.chatbot-header {
    background: linear-gradient(135deg, #1a365d 0%, #f59e0b 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 15px;
}

.bot-message {
    background-color: white;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    color: #2d3748;
}

.user-message {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    align-self: flex-end;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-option {
    background-color: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-option:hover {
    background-color: #1a365d;
    color: white;
    border-color: #1a365d;
}

.chatbot-input {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    background-color: white;
}

.chatbot-input input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid #cbd5e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.chatbot-input input:focus {
    border-color: #1a365d;
}

.chatbot-input button {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 20px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4a5568;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

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

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

@keyframes typing-bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Message Transitions */
.message {
    animation: message-appear 0.3s ease-out;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive Design */
@media (max-width: 368px) {
    .footer-cont-btn i {
        display: none;
    }

}

@media (max-width: 480px) {
    .chatbot-container {
        width: 95vw;
        right: 2.5vw;
    }

    .chatbot-window {
        height: 450px;
    }

    .quick-options {
        flex-direction: column;
    }

    .quick-option {
        width: 100%;
        text-align: center;
    }
}

/* Minimal styling for easy integration */

.nlp-popup-btn:hover {
    background-color: #0d264c;
}

.nlp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.nlp-popup-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: nlpPopupSlide 0.3s ease;
    position: relative;
}

.nlp-popup-container.split-popup {
    max-width: 950px;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact CF7 validation alerts to prevent pushing content out of view */
.nlp-popup-content-inner .wpcf7-not-valid-tip {
    font-size: 11px !important;
    color: #ef4444 !important;
    margin-top: 2px !important;
    display: block !important;
    text-align: left;
}

.nlp-popup-content-inner .wpcf7-response-output {
    font-size: 11px !important;
    margin: 8px 0 0 0 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    border-width: 1px !important;
}

.nlp-popup-content-inner .nlp-form-group {
    margin-bottom: 12px !important;
}

.nlp-popup-container.split-popup #nlpClosePopupBtn {
    position: absolute;
    top: 2px;
    right: 18px;
    font-size: 32px;
    color: #777;
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nlp-popup-container.split-popup #nlpClosePopupBtn:hover {
    color: #333;
}

.nlp-popup-split-body {
    display: flex;
    flex-direction: row;
    min-height: 480px;
}

.nlp-popup-left {
    width: 50%;
    background: linear-gradient(135deg, #091a30 0%, #001227 100%);
    color: #ffffff;
    padding: 50px 35px;
    display: flex;
    align-items: center;
}

.nlp-left-content {
    width: 100%;
}

.nlp-left-title {
    font-size: 25px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.nlp-feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nlp-feature-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nlp-feature-icon-circle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.nlp-feature-text strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.nlp-feature-text p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.nlp-popup-right {
    width: 50%;
    padding: 40px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Force Contact Form 7 input wraps to be full width */
.nlp-popup-content-inner .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

.nlp-popup-content-inner input[type="text"],
.nlp-popup-content-inner input[type="email"],
.nlp-popup-content-inner input[type="tel"],
.nlp-popup-content-inner select {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.nlp-popup-logo {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.nlp-popup-content-inner {
    width: 100%;
}

.nlp-popup-right .nlp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    background-color: #ffffff;
    margin-bottom: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.nlp-popup-right .nlp-form-input::placeholder {
    color: #94a3b8;
}

.nlp-popup-right .nlp-form-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.nlp-phone-row {
    display: flex;
    gap: 10px;
}

.nlp-country-code {
    width: 120px;
    padding: 12px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background-color: #f1f5f9;
    color: #334155;
    outline: none;
    cursor: default;
}

.nlp-auth-checkbox {
    display: block;
    margin-bottom: 20px;
    margin-top: 15px;
    text-align: left;
}

.nlp-auth-checkbox .wpcf7-list-item {
    margin: 0;
    display: block;
}

.nlp-auth-checkbox label,
.nlp-auth-checkbox .wpcf7-list-item label {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
    text-align: left;
    width: 100%;
}

.nlp-auth-checkbox input[type="checkbox"],
.nlp-auth-checkbox .wpcf7-list-item input[type="checkbox"] {
    margin-top: 2px !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: #00142d;
    flex-shrink: 0;
    display: inline-block !important;
}

.nlp-auth-checkbox .wpcf7-list-item-label {
    display: inline-block;
    cursor: pointer;
    color: #64748b;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.nlp-popup-right .nlp-form-submit {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nlp-popup-right .nlp-form-submit:hover {
    background-color: #1e293b;
}

/* Responsiveness for Split Popup */
@media (max-width: 768px) {
    .nlp-popup-container.split-popup {
        width: 90%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .nlp-popup-split-body {
        flex-direction: column;
        box-sizing: border-box;
    }

    .nlp-popup-left {
        width: 100%;
        padding: 35px 25px 25px 25px;
        box-sizing: border-box;
    }

    .nlp-popup-right {
        width: 100%;
        padding: 30px 25px;
        box-sizing: border-box;
    }

    .nlp-left-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .nlp-popup-container.split-popup #nlpClosePopupBtn {
        color: #fff;
        top: 10px;
        right: 15px;
    }
}


.nlp-popup-header {
    background-color: #00142d;
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.nlp-popup-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.nlp-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.nlp-popup-content {
    padding: 25px;
}

.nlp-form-group {
    margin-bottom: 18px;
}

.nlp-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.nlp-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.nlp-form-input:focus {
    outline: none;
    border-color: #1a3a6c;
}

.nlp-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.nlp-form-submit {
    background-color: #00142d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
}

.nlp-form-submit:hover {
    background-color: #0d264c;
}

.nlp-required {
    color: #e53935;
}

.nlp-success-message {
    display: none;
    text-align: center;
    padding: 30px;
}

.nlp-success-icon {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 15px;
}

.nlp-success-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

@keyframes nlpPopupSlide {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

@media (max-width: 600px) {
    .nlp-popup-container {
        width: 95%;
    }

    .nlp-popup-content {
        padding: 20px;
    }

    .cus-btn.sec {
        background-color: #00142d !important;
        padding: 8px !important;
    }
}

/* Fix for Contact Form 7 alignment and width issues inside NLP Popup */
.nlp-popup-content .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.nlp-popup-content form p {
    margin-bottom: 0;
}

.nlp-popup-content .nlp-form-group {
    width: 100%;
}

/* Beautiful styling for generic form fields inside the popup content (e.g. Contact Form 7) */
.nlp-popup-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.nlp-popup-content input[type="text"],
.nlp-popup-content input[type="email"],
.nlp-popup-content input[type="tel"],
.nlp-popup-content textarea,
.nlp-popup-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
    display: block;
}

.nlp-popup-content input:focus,
.nlp-popup-content textarea:focus,
.nlp-popup-content select:focus {
    outline: none;
    border-color: #00142d;
    box-shadow: 0 0 0 2px rgba(110, 80, 41, 0.1);
}

.nlp-popup-content input[type="submit"],
.nlp-popup-content button[type="submit"] {
    background-color: #00142d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
    display: block;
    text-align: center;
}

.nlp-popup-content input[type="submit"]:hover,
.nlp-popup-content button[type="submit"]:hover {
    background-color: #0d264c;
}