/* Product Quote System - Frontend Styles */

/* Form Styles */
.pqs-quote-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    font-size: 1.4em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-check-label {
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline-primary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: #95a5a6;
    border: 2px solid #95a5a6;
}

.btn-outline-secondary:hover {
    background: #95a5a6;
    color: white;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1em;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Coupon Styles */
.available-coupons {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.coupon-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coupon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Gallery Styles */
.pqs-product-gallery {
    margin: 30px 0;
}

.gallery-main {
    margin-bottom: 20px;
}

.gallery-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-slide {
    display: none;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-thumb.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quote Details Styles */
.quote-details {
    margin: 20px 0;
    padding: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.quote-info, .customer-info, .quote-breakdown {
    margin-bottom: 25px;
}

.quote-info h3, .customer-info h4, .quote-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.quote-info p, .customer-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.quote-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.quote-summary p {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.total-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pqs-quote-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gallery-thumbnails {
        gap: 8px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quote-date {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 1.2em;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
}

/* Animation Effects */
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-control:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn,
    .gallery-thumbnails,
    .toggle-details {
        display: none !important;
    }
    
    .form-section {
        border: none;
        box-shadow: none;
        margin-bottom: 20px;
    }
} 