.calculator-container {
    max-width: 810px;
    margin: 1rem auto;
}


.calculator-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.rate-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rate-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.rate-btn:hover {
    background: #e9ecef;
}

.rate-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.results {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.result-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 1.5rem;
    }
    
    .rate-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}