/* FZOW Shop Plugin Styles */
/* File: assets/css/fzow-shop.css */

.fzow-shop-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fzow-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fzow-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.fzow-form-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 300;
}

.fzow-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Progress Bar */
.fzow-progress-bar {
    height: 4px;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 25%;
    transition: width 0.3s ease;
}

/* Form Content */
.fzow-form-content {
    padding: 40px;
}

/* Steps */
.fzow-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fzow-step.active {
    display: block;
}

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

.step-title {
    color: #495057;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 300;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
}

/* Vehicle Types */
.vehicle-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vehicle-type {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
}

.vehicle-type:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.vehicle-type.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.vehicle-type input[type="radio"] {
    display: none;
}

.vehicle-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

/* Pricing Cards */
.pricing-section {
    margin: 30px 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pricing-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    display: block !important;
}

.pricing-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.pricing-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.pricing-card.popular {
    border-color: #28a745;
}

.pricing-card.best-value {
    border-color: #ffc107;
}

.pricing-card input[type="radio"] {
    display: none;
}

.pricing-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.pricing-card.best-value .badge {
    background: #ffc107;
    color: #212529;
}

.pricing-card h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.3em;
}

.pricing-card .price {
    font-size: 2.2em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.pricing-card .period {
    color: #6c757d;
    margin-bottom: 10px;
}

.pricing-card .total {
    color: #495057;
    font-size: 0.9em;
}

/* Add-ons */
.addons-section {
    margin-top: 40px;
}

.addons-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.addon-item {
    display: flex !important;
    align-items: center;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addon-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.addon-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.addon-content {
    flex: 1;
}

.addon-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.addon-description {
    color: #6c757d;
    font-size: 0.9em;
}

.addon-price {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

/* Summary Box */
.summary-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-box h3 {
    margin: 0 0 20px 0;
    color: #495057;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row:last-child {
    border-bottom: 2px solid #667eea;
    font-weight: 600;
    color: #495057;
    margin-top: 10px;
    padding-top: 15px;
}

/* Legal Checkboxes */
.legal-checkboxes {
    margin-bottom: 30px;
}

.legal-checkboxes label {
    display: flex !important;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.legal-checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-checkboxes a {
    color: #667eea;
    text-decoration: none;
}

.legal-checkboxes a:hover {
    text-decoration: underline;
}

/* Signature Section */
.signature-section {
    margin-bottom: 30px;
}

.signature-section h4 {
    color: #495057;
    margin-bottom: 10px;
}

.signature-pad {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
}

.signature-pad:focus {
    outline: none;
    border-color: #667eea;
}

/* Navigation */
.fzow-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #dee2e6;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
    font-size: 18px;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Success States */
.success {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.05) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fzow-shop-container {
        padding: 10px;
        margin: 0;
    }
    
    .fzow-form-content {
        padding: 20px;
    }
    
    .fzow-form-header {
        padding: 20px;
    }
    
    .fzow-form-header h1 {
        font-size: 1.8em;
    }
    
    .vehicle-types {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .addon-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .addon-item input[type="checkbox"] {
        margin-bottom: 10px;
    }
    
    .addon-price {
        margin-top: 10px;
    }
    
    .signature-pad {
        height: 150px;
    }
    
    .fzow-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .vehicle-types {
        grid-template-columns: 1fr;
    }
    
    .vehicle-type {
        padding: 15px;
    }
    
    .vehicle-icon {
        font-size: 2em;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .pricing-card .price {
        font-size: 1.8em;
    }
}

/* Print Styles */
@media print {
    .fzow-navigation,
    .signature-section button {
        display: none;
    }
    
    .fzow-shop-container {
        box-shadow: none;
    }
    
    .fzow-step {
        display: block !important;
    }
}