/* Avery Quote Calculator Frontend Styles */

.avery-qc-calculator {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Calculator Header */
.avery-qc-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #d93738 0%, #b02a2b 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avery-qc-calculator-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.avery-qc-calculator-description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Form Styling */
.avery-qc-calculator-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Input Groups */
.avery-qc-input-group {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.avery-qc-input-group:hover {
    border-color: #d93738;
    box-shadow: 0 2px 8px rgba(217, 55, 56, 0.1);
}

.avery-qc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

/* Input Fields */
.avery-qc-input-select,
.avery-qc-input-number {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.avery-qc-input-select:focus,
.avery-qc-input-number:focus {
    outline: none;
    border-color: #d93738;
    box-shadow: 0 0 0 3px rgba(217, 55, 56, 0.1);
}

.avery-qc-input-select {
    cursor: pointer;
}

/* Number Pair Inputs */
.avery-qc-input-pair .avery-qc-pair-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.avery-qc-input-pair .avery-qc-input-select,
.avery-qc-input-pair .avery-qc-input-number {
    flex: 1;
    min-width: 120px;
}

.avery-qc-pair-separator {
    font-size: 18px;
    font-weight: 600;
    color: #d93738;
    margin: 0 10px;
}

/* Units Display */
.avery-qc-units {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 12px;
    background: #d93738;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Enhancements Section */
.avery-qc-enhancements-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d93738;
}

.avery-qc-enhancements-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.avery-qc-enhancement {
    margin-bottom: 20px;
}

.avery-qc-enhancement label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.avery-qc-enhancement-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avery-qc-enhancement-select:focus {
    outline: none;
    border-color: #d93738;
    box-shadow: 0 0 0 3px rgba(217, 55, 56, 0.1);
}

/* Submit Button */
.avery-qc-submit-section {
    text-align: center;
    margin: 30px 0;
}

.avery-qc-submit-btn {
    background: linear-gradient(135deg, #d93738 0%, #b02a2b 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avery-qc-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(217, 55, 56, 0.2);
}

.avery-qc-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button States */
.avery-qc-btn-enabled {
    background: linear-gradient(135deg, #d93738 0%, #b02a2b 100%);
    color: white;
}

.avery-qc-btn-disabled {
    background: #6c757d;
    color: #dee2e6;
}

.avery-qc-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Quote Section */
.avery-qc-quote-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.avery-qc-quote-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.avery-qc-configuration-summary h5 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 5px;
}

.avery-qc-quote-header {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.avery-qc-quote-number,
.avery-qc-quote-date,
.avery-qc-quote-expiry {
    margin: 8px 0;
    padding: 8px 0;
    font-size: 16px;
    color: #2c3e50;
}

.avery-qc-quote-number {
    font-size: 18px;
    color: #d93738;
    font-weight: 700;
}

.avery-qc-input-detail,
.avery-qc-enhancement-detail {
    margin: 8px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #d93738;
}

.avery-qc-pricing-breakdown {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.avery-qc-price-line {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f6;
}

.avery-qc-price-line:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
}

.avery-qc-total-price {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
}

/* Email Section */
.avery-qc-email-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.avery-qc-email-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.avery-qc-form-row {
    margin-bottom: 20px;
}

.avery-qc-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.avery-qc-form-row input,
.avery-qc-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.avery-qc-form-row input:focus,
.avery-qc-form-row textarea:focus {
    outline: none;
    border-color: #d93738;
    box-shadow: 0 0 0 3px rgba(217, 55, 56, 0.1);
}

.avery-qc-request-quote-btn {
    background: linear-gradient(135deg, #d93738 0%, #b02a2b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avery-qc-request-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(217, 55, 56, 0.3);
}

/* Status Messages */
.avery-qc-standard-product,
.avery-qc-product-unavailable,
.avery-qc-error,
.avery-qc-success {
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.avery-qc-standard-product {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.avery-qc-product-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

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

/* No Inputs Message */
.avery-qc-no-inputs {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .avery-qc-calculator {
        margin: 0 15px;
    }
    
    .avery-qc-calculator-form {
        padding: 20px;
    }
    
    .avery-qc-input-group {
        padding: 15px;
    }
    
    .avery-qc-input-pair .avery-qc-pair-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .avery-qc-input-pair .avery-qc-input-select,
    .avery-qc-input-pair .avery-qc-input-number {
        min-width: auto;
    }
    
    .avery-qc-pair-separator {
        margin: 0;
        transform: rotate(90deg);
    }
    
    .avery-qc-submit-btn {
        width: 100%;
        padding: 18px 20px;
    }
    
    .avery-qc-request-quote-btn {
        width: 100%;
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .avery-qc-calculator-header {
        padding: 15px;
    }
    
    .avery-qc-calculator-header h3 {
        font-size: 24px;
    }
    
    .avery-qc-calculator-form {
        padding: 15px;
    }
    
    .avery-qc-input-group {
        padding: 12px;
    }
    
    .avery-qc-input-select,
    .avery-qc-input-number {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .avery-qc-submit-section,
    .avery-qc-email-section {
        display: none;
    }
    
    .avery-qc-calculator {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .avery-qc-calculator-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
.avery-qc-input-select:focus,
.avery-qc-input-number:focus,
.avery-qc-enhancement-select:focus {
    outline: 2px solid #d93738;
    outline-offset: 2px;
}

.avery-qc-submit-btn:focus,
.avery-qc-request-quote-btn:focus {
    outline: 2px solid #d93738;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .avery-qc-calculator {
        border: 2px solid #000;
    }
    
    .avery-qc-input-group {
        border: 2px solid #000;
    }
    
    .avery-qc-input-select,
    .avery-qc-input-number {
        border: 2px solid #000;
    }
}

/* Interpolation notice styling */
.avery-qc-interpolation-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.avery-qc-interpolation-notice strong {
    color: #6c5700;
}
