* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f3f3;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #CC0033;
}

h1 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

h2 {
    color: #CC0033;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
}

.form-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #CC0033;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field[type="number"] {
    background-color: #e8f5e9;
}

select.input-field {
    cursor: pointer;
    background-color: #e8f5e9;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: #CC0033;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 40px;
}

.result-card {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #CC0033;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item.highlight {
    background: #CC0033;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

.result-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #CC0033;
}

.result-item.highlight .result-value {
    color: white;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.note {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
