.aqe-quote-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aqe-quote-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.aqe-form-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.aqe-form-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.aqe-form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.aqe-form-section {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.aqe-form-section:last-of-type {
    border-bottom: none;
}

.aqe-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

.aqe-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.aqe-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.aqe-form-group input,
.aqe-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.aqe-form-group input:focus,
.aqe-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.aqe-form-group input.aqe-input-error {
    border-color: #dc3545;
}

.aqe-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aqe-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s, background-color 0.3s;
}

.aqe-product-item:hover {
    border-color: #e1e1e1;
}

.aqe-product-item input[type="checkbox"]:checked + .aqe-product-name {
    color: #0073aa;
}

.aqe-product-item:has(input[type="checkbox"]:checked) {
    background: #e7f3ff;
    border-color: #0073aa;
}

.aqe-product-info {
    flex: 1;
}

.aqe-product-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.aqe-product-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0073aa;
}

.aqe-product-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.aqe-product-price {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.aqe-product-description {
    margin: 8px 0 0 32px;
    font-size: 13px;
    color: #888;
}

.aqe-product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aqe-product-quantity label {
    font-size: 13px;
    color: #666;
}

.aqe-quantity-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.aqe-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #0073aa;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.aqe-qty-btn:hover {
    background: #e7f3ff;
}

.aqe-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.aqe-qty-input::-webkit-outer-spin-button,
.aqe-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.aqe-product-total {
    min-width: 100px;
    text-align: right;
}

.aqe-item-total {
    font-weight: 700;
    color: #0073aa;
    font-size: 16px;
}

.aqe-no-products {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

.aqe-discount-section .aqe-section-title {
    border-bottom-color: #28a745;
}

.aqe-discount-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aqe-discount-row input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
}

.aqe-discount-row input:focus {
    outline: none;
    border-color: #28a745;
}

.aqe-discount-message {
    font-size: 13px;
    flex-basis: 100%;
}

.aqe-discount-message.success {
    color: #28a745;
}

.aqe-discount-message.error {
    color: #dc3545;
}

.aqe-summary-section {
    background: #f8f9fa;
}

.aqe-summary-table {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.aqe-summary-label {
    font-size: 14px;
    color: #555;
}

.aqe-summary-value {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.aqe-total-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #0073aa;
}

.aqe-total-row .aqe-summary-label,
.aqe-total-row .aqe-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.aqe-form-actions {
    padding: 30px;
    text-align: center;
    background: #fff;
}

.aqe-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aqe-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
}

.aqe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.aqe-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.aqe-btn-secondary:hover {
    background: #5a6268;
}

.aqe-btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.aqe-spinner {
    width: 20px;
    height: 20px;
    animation: aqe-spin 1s linear infinite;
}

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

.aqe-message {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.aqe-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.aqe-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.aqe-message-content {
    max-width: 400px;
    margin: 0 auto;
}

.aqe-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 30px;
    margin-bottom: 20px;
}

.aqe-message h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.aqe-message p {
    margin: 10px 0;
    font-size: 15px;
}

.aqe-quote-id-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 15px auto !important;
    display: inline-block;
}

.aqe-form-error {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .aqe-quote-form-wrapper {
        padding: 15px;
    }
    
    .aqe-form-section {
        padding: 20px 15px;
    }
    
    .aqe-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aqe-product-quantity {
        width: 100%;
        justify-content: space-between;
    }
    
    .aqe-product-total {
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px dashed #ddd;
    }
    
    .aqe-form-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    .aqe-quote-form-wrapper {
        max-width: none;
    }
    
    .aqe-form-actions,
    .aqe-form-header {
        display: none;
    }
    
    .aqe-quote-form {
        box-shadow: none;
    }
}
