/* AV Order Form Styles */
.av-order-form-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.av-order-form-header {
    text-align: center;
}

.av-form-logo {
    margin-bottom: 20px;
}

.av-logo {
    object-fit: contain;
    max-width: 100%;
}

.av-order-form-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.av-order-form-header h3 {
    font-size: 1.3em;
    margin: 0 0 30px 0;
    font-weight: 400;
    opacity: 0.9;
}

/* Progress Bar */
.av-order-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.av-order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.av-order-step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(14, 41, 141,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid rgba(14, 41, 141,0.3);
}

.av-order-step.active .step-number {
    background: rgba(14, 41, 141,0.9);
    color: white;
    border-color: #0e298d;
}

.step-text {
    font-size: 0.9em;
    font-weight: 500;
}

/* Form Steps */
.av-order-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.av-order-step-content.active {
    display: block;
}

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

/* Products Section */
.av-order-products h4 {
    text-align: center;
    font-size: 1.4em;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: #0e298d;
    border-radius: 10px;
}

.av-products-grid {
    margin-bottom: 40px;

}

.av-product-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.av-product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.av-product-info {
    margin-bottom: 20px;
}

.av-product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.av-product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #0e298d;
}

.av-product-quantity label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.av-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-btn-quantity {
    width: 40px;
    height: 40px;
    border: none;
    background: #0e298d;
    color: white;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.av-btn-quantity:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.av-quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.av-quantity-input:focus {
    outline: none;
    border-color: #0e298d;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Order Summary */
.av-order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.av-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1em;
}

.av-summary-row:last-child {
    border-bottom: none;
}

.av-summary-row.total {
    font-size: 1.3em;
    font-weight: 700;
    color: #0e298d;
    border-top: 2px solid #0e298d;
    margin-top: 10px;
    padding-top: 15px;
}

/* Form Sections */
.av-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.av-form-section h4 {
    color: #333;
    font-size: 1.3em;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0e298d;
}

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

.av-form-group {
    display: flex;
    flex-direction: column;
}

.av-form-group.full-width {
    grid-column: 1 / -1;
}

.av-form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.av-form-group input,
.av-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.av-form-group input:focus,
.av-form-group textarea:focus {
    outline: none;
    border-color: #0e298d;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.av-form-group input.error,
.av-form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.av-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Navigation Buttons */
.av-order-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.av-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.av-btn-next,
.av-btn-submit {
    background: linear-gradient(135deg, #0e298d 0%, #5159a3 100%);
    color: white;
}

.av-btn-next:hover,
.av-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.av-btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.av-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Modals */
.av-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.av-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.av-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.av-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.av-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
}

.av-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.av-modal-close:hover {
    color: #333;
}

.av-modal-body {
    padding: 25px 30px;
}

.av-modal-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #555;
}

.av-order-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.av-order-details p {
    margin: 0 0 10px 0;
}

.av-order-details p:last-child {
    margin-bottom: 0;
}

.av-modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.av-btn-primary {
    background: linear-gradient(135deg, #0e298d 0%, #764ba2 100%);
    color: white;
}

.av-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Loading Modal */
#av-loading-modal .av-modal-content {
    text-align: center;
    padding: 40px;
}

.av-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0e298d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Notes and Special Instructions */
.av-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .av-order-form-header h2 {
        font-size: 2em;
    }
    .av-product-item {
        flex-direction: column;
    }
    
    .av-order-progress {
        gap: 20px;
    }
    
    .av-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .av-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .av-order-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .av-btn {
        width: 100%;
    }
    
    .av-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .av-order-form-header h2 {
        font-size: 1.6em;
    }
    
    .av-order-form-header h3 {
        font-size: 1.1em;
    }
    
    .av-modal-header,
    .av-modal-body,
    .av-modal-footer {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .av-order-navigation,
    .av-modal {
        display: none !important;
    }
    
    .av-order-form-container {
        box-shadow: none;
        padding: 0;
    }
    
    .av-order-form-header {
        background: white !important;
        color: black !important;
        border: 2px solid #333;
    }
}
