/* Moving Volume Calculator Frontend Styles */
:root {
    --mvc-primary-color: #EA3A60;
    --mvc-secondary-color: #da395c;
    --mvc-light-color: #f8f9fa;
    --mvc-dark-color: #212529;
    --mvc-success-color: #28a745;
    --mvc-error-color: #dc3545;
    --mvc-border-color: #dee2e6;
}

.mvc-hidden {
    display: none !important;
}

.volume-calculator {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-header {
    background: var(--mvc-primary-color);
    color: white;
    padding: 30px 20px 20px 20px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
    color: white;
}

.calculator-header p {
    opacity: 0.9;
}

.calculator-body {
    padding: 30px;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--mvc-border-color);
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--mvc-primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--mvc-secondary-color);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.item-box {
    border: 1px solid var(--mvc-border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.item-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.item-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.item-volume {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.quantity-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--mvc-border-color);
    border-radius: 4px;
    text-align: center;
}

/* Total Volume Box */
.total-volume-box {
    background: var(--mvc-light-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.total-volume-label {
    font-size: 16px;
    margin-bottom: 10px;
}

.total-volume-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--mvc-primary-color);
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

.form-group {
    flex: 1 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mvc-border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--mvc-primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 10px;
}

.submit-btn {
    background: var(--mvc-primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--mvc-secondary-color);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Messages */
.mvc-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Loading Spinner */
.mvc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group {
        flex: 1 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex: 1 0 100%;
    }
    
    .calculator-body {
        padding: 15px;
    }
}