﻿/* ================================================================
   DEMO FORM – Complete & Responsive
   ================================================================ */

.demo-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- The Main Card --- */
.pro-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(99, 91, 255, 0.15);
    max-width: 580px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    /* Gradient top border */
    .pro-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #a8e050 0%, #4a8df8 50%, #e94e8a 100%);
        z-index: 2;
    }

/* --- Card Body --- */
.pro-card-body {
    padding: 30px 35px 40px;
}

/* --- Header --- */
.pro-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

    .pro-header .icon-box {
        width: 50px;
        height: 50px;
        background: #eef0fd;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        color: #635BFF;
        flex-shrink: 0;
    }

.pro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0B2946;
    margin: 0;
}

.pro-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: -4px;
}

/* --- Form Controls (Darker Style) --- */
.input-group {
    display: flex !important;
    align-items: center !important;
    background: #eef2f6 !important;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .input-group:focus-within {
        background: #ffffff !important;
        border-color: #635BFF;
        box-shadow: 0 4px 20px rgba(99, 91, 255, 0.12);
    }

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #475569;
    font-size: 1.1rem;
    padding: 0 0 0 18px !important;
    flex-shrink: 0;
}

.pro-form-control {
    border: none !important;
    background: transparent !important;
    padding: 12px 18px 12px 8px !important;
    font-size: 0.95rem;
    color: #0B2946;
    font-weight: 600;
    box-shadow: none !important;
    outline: none !important;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

    .pro-form-control::placeholder {
        color: #475569;
        font-weight: 500;
        opacity: 1;
    }

/* Textarea */
textarea.pro-form-control {
    min-height: 100px;
    padding: 14px 20px !important;
    background: #eef2f6 !important;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

    textarea.pro-form-control:focus {
        background: #ffffff !important;
        border-color: #635BFF;
        box-shadow: 0 4px 20px rgba(99, 91, 255, 0.12);
    }

/* --- Alert --- */
#demoAlert {
    border-radius: 16px;
    background: #e8f5e9;
    border: none;
}

/* --- Submit Button --- */
.pro-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #635BFF 0%, #4a42e0 100%);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .pro-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(99, 91, 255, 0.35);
        color: #fff;
    }

/* --- Floating Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-bubble {
    background: #8bcbe5;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    padding: 14px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(99, 91, 255, 0.25);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

    .chat-bubble:hover {
        transform: scale(1.05);
    }

.chat-dots {
    display: flex;
    gap: 5px;
    margin-top: 3px;
}

    .chat-dots span {
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
    }

.chat-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #f13b3b;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border: 2px solid white;
}

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */

/* --- Tablet & smaller --- */
@media (max-width: 767.98px) {
    .pro-card-body {
        padding: 25px 20px 30px;
    }

    .pro-title {
        font-size: 1.6rem;
    }

    .pro-header {
        gap: 10px;
        margin-bottom: 18px;
    }

        .pro-header .icon-box {
            width: 44px;
            height: 44px;
            font-size: 1.2rem;
        }

    .input-group-text {
        padding-left: 14px !important;
    }

    .pro-form-control {
        padding: 10px 14px 10px 6px !important;
        font-size: 0.9rem;
    }

    textarea.pro-form-control {
        min-height: 80px;
        padding: 12px 16px !important;
    }

    .pro-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* --- Mobile (xs) --- */
@media (max-width: 575.98px) {
    .demo-form-wrapper {
        padding: 10px 0;
    }

    .pro-card-body {
        padding: 20px 15px 25px !important;
    }

    .pro-header {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .pro-title {
        font-size: 1.4rem;
    }

    .pro-subtitle {
        font-size: 0.85rem;
        margin-top: 0;
    }

    .input-group {
        border-radius: 12px;
    }

    .input-group-text {
        font-size: 1rem;
        padding-left: 12px !important;
    }

    .pro-form-control {
        padding: 10px 12px 10px 6px !important;
        font-size: 0.9rem;
    }

    textarea.pro-form-control {
        min-height: 70px;
        padding: 10px 14px !important;
        border-radius: 12px;
    }

    .pro-btn {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Chat widget – compact */
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-bubble {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 30px;
    }

        .chat-bubble span:not(.chat-dots) {
            display: none; /* Hide "LET'S CHAT" text on small screens */
        }

    .chat-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        bottom: -4px;
        right: -4px;
    }
}

/* --- Very small screens (<= 400px) --- */
@media (max-width: 400px) {
    .pro-card-body {
        padding: 16px 12px 20px !important;
    }

    .pro-title {
        font-size: 1.2rem;
    }

    .pro-header .icon-box {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .input-group-text {
        font-size: 0.9rem;
        padding-left: 10px !important;
    }

    .pro-form-control {
        font-size: 0.85rem;
        padding: 8px 10px 8px 4px !important;
    }
}
