/* CF7 Measurement Calculator Styles */
.cf7mc-calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cf7mc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cf7mc-title {
    color: #8b1e1e;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.cf7mc-section {
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.cf7mc-section-title {
    color: #8b1e1e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cf7mc-help-icon {
    background: #8b1e1e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    flex-shrink: 0;
}

.cf7mc-section-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cf7mc-measurement-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.cf7mc-measurement-label {
    font-weight: 500;
    color: #495057;
    min-width: 100px;
    font-size: 0.95rem;
}

.cf7mc-measurement-input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.cf7mc-measurement-input:focus {
    outline: none;
    border-color: #8b1e1e;
    box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1);
    transform: translateY(-1px);
}

.cf7mc-multiply-symbol {
    font-weight: bold;
    color: #8b1e1e;
    font-size: 1.2rem;
    text-align: center;
}

.cf7mc-section-total {
    background: #8b1e1e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.cf7mc-grand-total {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cf7mc-calculator-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .cf7mc-title {
        font-size: 1.5rem;
    }
    
    .cf7mc-measurement-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    
    .cf7mc-measurement-label {
        min-width: auto;
        text-align: center;
        font-weight: 600;
    }
    
    .cf7mc-multiply-symbol {
        display: none;
    }
    
    .cf7mc-measurement-input {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cf7mc-calculator-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .cf7mc-title {
        font-size: 1.3rem;
    }
    
    .cf7mc-section-title {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
}

/* Animation for total updates */
.cf7mc-section-total span,
.cf7mc-grand-total span {
    transition: all 0.3s ease;
}

.cf7mc-section-total span.updated,
.cf7mc-grand-total span.updated {
    transform: scale(1.05);
}