/* WelCart Quote System - Frontend Styles */

.wqs-quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wqs-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.wqs-form-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.wqs-error-message, .wqs-success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wqs-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wqs-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wqs-form-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.wqs-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.wqs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wqs-form-field {
    margin-bottom: 20px;
}

.wqs-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.wqs-form-field input[type="text"],
.wqs-form-field input[type="email"],
.wqs-form-field input[type="tel"],
.wqs-form-field input[type="file"],
.wqs-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wqs-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wqs-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.required {
    color: #e74c3c;
}

.current-file {
    margin-top: 10px;
    padding: 10px;
    background-color: #e8f5e8;
    border-radius: 4px;
}

.wqs-form-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.wqs-required-note {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.wqs-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.wqs-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.wqs-btn-primary {
    background-color: #3498db;
    color: white;
}

.wqs-btn-primary:hover {
    background-color: #2980b9;
}

.wqs-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.wqs-btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Quote Status Styles */
#wqs-quote-status-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#wqs-quote-status-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.wqs-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wqs-order-item {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.wqs-order-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-quote_pending {
    background-color: #f39c12;
    color: white;
}

.status-info_required {
    background-color: #e74c3c;
    color: white;
}

.status-approval_pending {
    background-color: #9b59b6;
    color: white;
}

.status-payment_ready {
    background-color: #27ae60;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .wqs-form-grid {
        grid-template-columns: 1fr;
    }
    
    .wqs-buttons {
        flex-direction: column;
    }
    
    .wqs-form-section {
        padding: 15px;
    }
    
    .wqs-quote-form-container {
        padding: 10px;
    }
}