/* Demo Request Popup Styles */
.demo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.demo-popup-overlay.show {
    display: flex !important;
}

/* Prevent body scrolling when popup is open */
body.no-scroll {
    overflow: hidden;
}

.demo-popup-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    background: linear-gradient(211deg, #8F79FF 13.4%, #426BFF 118.74%);
    color: white;
    border-bottom: none;
}

.demo-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.demo-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.demo-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.demo-popup-body {
    padding: 30px;
}

.demo-popup-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.demo-form .form-group {
    margin-bottom: 20px;
}

.demo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form input[type="tel"],
.demo-form select,
.demo-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #8F79FF;
    box-shadow: 0 0 0 3px rgba(143, 121, 255, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.checkbox-label:hover {
    background-color: rgba(143, 121, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkbox-label:hover .checkmark {
    border-color: #8F79FF;
    box-shadow: 0 2px 6px rgba(143, 121, 255, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(211deg, #8F79FF 13.4%, #426BFF 118.74%);
    border-color: #8F79FF;
    box-shadow: 0 2px 8px rgba(143, 121, 255, 0.4);
}

/* Highlight the entire checkbox label when selected */
.checkbox-label.checked {
    background: linear-gradient(135deg, rgba(143, 121, 255, 0.1), rgba(66, 107, 255, 0.1));
    border: 1px solid rgba(143, 121, 255, 0.3);
    box-shadow: 0 2px 12px rgba(143, 121, 255, 0.15);
}


.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(211deg, #8F79FF 13.4%, #426BFF 118.74%);
    color: white;
    border: none;
    box-shadow: 0px 20px 24px -10px #0B042F;
}

.btn-primary:hover {
    background: linear-gradient(211deg, #7B65FF 13.4%, #3658FF 118.74%);
    transform: translateY(-1px);
    box-shadow: 0px 25px 30px -10px #0B042F;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.success-message h4 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 10px;
}

.success-message p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Demo Request Button */
.demo-request-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.demo-btn {
    background: linear-gradient(211deg, #8F79FF 13.4%, #426BFF 118.74%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0px 20px 24px -10px #0B042F;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.demo-btn:hover {
    background: linear-gradient(211deg, #7B65FF 13.4%, #3658FF 118.74%);
    transform: translateY(-2px);
    box-shadow: 0px 25px 30px -10px #0B042F;
}

.demo-btn i {
    font-size: 18px;
}

@keyframes pulse {
    0% {
        box-shadow: 0px 20px 24px -10px #0B042F;
    }
    50% {
        box-shadow: 0px 20px 24px -10px #0B042F, 0 0 0 15px rgba(143, 121, 255, 0.2);
    }
    100% {
        box-shadow: 0px 20px 24px -10px #0B042F;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-popup-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .demo-popup-header,
    .demo-popup-body {
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .demo-request-button {
        bottom: 20px;
        right: 20px;
    }
    
    .demo-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .demo-popup-header h3 {
        font-size: 20px;
    }
    
    .demo-popup-description {
        font-size: 14px;
    }
    
    .demo-form input[type="text"],
    .demo-form input[type="email"],
    .demo-form input[type="tel"],
    .demo-form select,
    .demo-form textarea {
        font-size: 14px;
        padding: 10px 14px;
    }
}
