.demo-trigger {
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.quote-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* Modal Header */
.modal-header {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 30px;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Progress Bar */
.progress-wrapper {
    padding: 0 30px;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.1);
    height: 8px;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50px;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.progress-step {
    font-size: 22px;
    color: #94a3b8;
    font-weight: 500;
}

.progress-step.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Modal Body */
.modal-body {
    padding: 40px 30px 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInStep 0.4s ease;
}

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

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

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

.form-label .required {
    color: #ef4444;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* Checkbox Options */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-option {
    position: relative;
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.checkbox-option input:checked + .checkbox-label {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.checkbox-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.checkbox-option input:checked + .checkbox-label::before {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Radio Options */
.radio-group {
    display: grid;
    gap: 12px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-label {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.radio-label::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-label::before {
    border-color: #3b82f6;
    border-width: 7px;
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.radio-option input:checked + .radio-label .radio-title {
    color: #3b82f6;
}

.radio-description {
    font-size: 13px;
    color: #64748b;
}

/* Summary */
.summary-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

.summary-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* Buttons */
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 30px 30px;
}

.btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

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

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon::before {
    content: '✓';
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.success-text {
    color: #64748b;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .modal-header {
        padding: 24px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-body {
        padding: 30px 20px 20px;
    }

    .modal-footer {
        padding: 0 20px 20px;
        flex-direction: column-reverse;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        font-size: 10px;
    }

    .step-title {
        font-size: 18px;
    }
}

/* Scrollbar */
.quote-modal::-webkit-scrollbar {
    width: 8px;
}

.quote-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.quote-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.quote-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
