/* Event Quote Manager - Frontend Styles */

.eqm-quote-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.eqm-quote-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.eqm-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

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

.eqm-form-section h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
}

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

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

.eqm-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.eqm-form-group input,
.eqm-form-group select,
.eqm-form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.eqm-form-group input:focus,
.eqm-form-group select:focus,
.eqm-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Product Items */
.eqm-product-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.eqm-product-item.skipped {
    opacity: 0.5;
}

.eqm-product-item.completed {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.eqm-product-item.active {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    background: #fff;
}

.eqm-product-item.inactive {
    opacity: 0.4;
    pointer-events: none;
}

.eqm-product-item h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #0073aa;
}

.eqm-product-item.active h3 {
    color: #2196F3;
}

.eqm-product-item.completed h3::before {
    content: "✓ ";
    color: #4CAF50;
}

.eqm-product-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
}

.eqm-product-image {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
}

.eqm-product-image img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.eqm-product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* A1-DESCRIPTION: Product description in SELECT ITEMS section */
.eqm-product-description {
    margin: 0 0 20px 0;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.eqm-product-description p {
    margin: 0 0 8px 0;
}

.eqm-product-description p:last-child {
    margin-bottom: 0;
}

.eqm-variation-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eqm-variation-field {
    display: flex;
    flex-direction: column;
}

.eqm-variation-field label {
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.eqm-variation-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.eqm-price-display {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}

.eqm-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eqm-quantity-selector label {
    font-weight: 600;
}

.eqm-quantity {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.eqm-product-actions {
    display: flex;
    gap: 10px;
}

.eqm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.eqm-btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.eqm-btn-primary:hover {
    background-color: #005a87;
}

.eqm-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.eqm-btn-secondary:hover {
    background-color: #e0e0e0;
}

.eqm-btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.eqm-added-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-weight: 600;
}

.eqm-added-message .dashicons {
    color: #28a745;
    font-size: 24px;
}

/* Quote Summary */
.eqm-quote-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    border: 2px solid #0073aa;
    margin-bottom: 30px;
}

.eqm-quote-summary h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #0073aa;
}

.eqm-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.eqm-summary-table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #ddd;
    background: #f0f0f0;
    font-weight: 600;
}

.eqm-summary-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.eqm-summary-table tr:last-child td {
    border-bottom: none;
}

.eqm-summary-table .eqm-item-quantity {
    width: 70px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.eqm-summary-table .eqm-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.eqm-summary-table .eqm-remove-item:hover {
    background: #c82333;
}

.eqm-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.eqm-summary-shipping {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.eqm-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid #0073aa;
    font-size: 20px;
}

.eqm-no-items {
    color: #666;
    font-style: italic;
}

/* Form Actions */
.eqm-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Messages */
.eqm-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.eqm-message.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.eqm-message.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Loading State */
.loading {
    color: #666;
    font-style: italic;
}

.eqm-variation-error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eqm-quote-form {
        padding: 20px;
    }
    
    .eqm-product-content {
        grid-template-columns: 1fr;
    }
    
    .eqm-product-image {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .eqm-form-row {
        grid-template-columns: 1fr;
    }
    
    .eqm-product-actions {
        flex-direction: column;
    }
    
    .eqm-btn {
        width: 100%;
    }
}
