/* Quote Wizard Styles */
.quote-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.quote-wizard-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.quote-wizard-header {
    background: var(--sage, #e7c6c2);
    padding: 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-wizard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark, #2c3e50);
    text-align: center;
    padding-right: 40px;
}

.quote-wizard-close {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark, #2c3e50);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quote-wizard-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.quote-wizard-progress {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.quote-wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quote-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #c4a484), var(--sage, #e7c6c2));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quote-wizard-progress-text {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    display: block;
}

.quote-wizard-content {
    padding: 32px 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.quote-wizard-step {
    animation: slideInContent 0.3s ease-out;
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quote-wizard-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-dark, #2c3e50);
    text-align: center;
}

.quote-wizard-form-group {
    margin-bottom: 20px;
}

.quote-wizard-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark, #2c3e50);
    font-size: 0.875rem;
}

.quote-wizard-form-group input,
.quote-wizard-form-group select,
.quote-wizard-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.quote-wizard-form-group input:focus,
.quote-wizard-form-group select:focus,
.quote-wizard-form-group textarea:focus {
    outline: none;
    border-color: var(--accent, #c4a484);
    box-shadow: 0 0 0 3px rgba(196, 164, 132, 0.1);
}

.quote-wizard-form-group input.invalid,
.quote-wizard-form-group select.invalid,
.quote-wizard-form-group textarea.invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.quote-wizard-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.quote-wizard-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.quote-wizard-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.quote-wizard-checkbox:hover {
    border-color: var(--accent, #c4a484);
    background: rgba(196, 164, 132, 0.05);
}

.quote-wizard-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.quote-wizard-checkbox .checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-wizard-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--accent, #c4a484);
    border-color: var(--accent, #c4a484);
}

.quote-wizard-checkbox input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.quote-wizard-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c66;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-wizard-actions {
    padding: 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.quote-wizard-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.quote-wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quote-wizard-btn-primary {
    background: var(--accent, #c4a484);
    color: white;
    flex: 1;
    max-width: 200px;
    margin-left: auto;
}

.quote-wizard-btn-primary:hover:not(:disabled) {
    background: #b8956f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 164, 132, 0.4);
}

.quote-wizard-btn-secondary {
    background: #6c757d;
    color: white;
    flex: 1;
    max-width: 200px;
}

.quote-wizard-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.quote-wizard-btn:active {
    transform: translateY(0);
}

/* Prevent body scroll when wizard is open */
body.quote-wizard-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-wizard-overlay {
        padding: 10px;
    }
    
    .quote-wizard-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .quote-wizard-header {
        padding: 20px;
    }
    
    .quote-wizard-title {
        font-size: 1.25rem;
        padding-right: 30px;
    }
    
    .quote-wizard-close {
        right: 20px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .quote-wizard-content {
        padding: 24px 20px;
        max-height: 60vh;
    }
    
    .quote-wizard-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .quote-wizard-btn {
        max-width: none;
        width: 100%;
    }
    
    .quote-wizard-btn-primary {
        order: 1;
        margin-left: 0;
    }
    
    .quote-wizard-btn-secondary {
        order: 2;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .quote-wizard-header {
        padding: 16px;
    }
    
    .quote-wizard-title {
        font-size: 1.125rem;
    }
    
    .quote-wizard-content {
        padding: 20px 16px;
    }
    
    .quote-wizard-actions {
        padding: 16px;
    }
    
    .quote-wizard-form-group input,
    .quote-wizard-form-group select,
    .quote-wizard-form-group textarea {
        padding: 10px 14px;
    }
}

/* Loading Animation */
.quote-wizard-btn:disabled:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom Scrollbar */
.quote-wizard-content::-webkit-scrollbar {
    width: 6px;
}

.quote-wizard-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.quote-wizard-content::-webkit-scrollbar-thumb {
    background: var(--accent, #c4a484);
    border-radius: 10px;
}

.quote-wizard-content::-webkit-scrollbar-thumb:hover {
    background: #b8956f;
} 