body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 0.5em;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-top: 0;
}

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

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}

.field-group-inline {
    display: flex;
    gap: 20px;
}

.field-group-inline .field-group {
    flex: 1;
}

.expense-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.expense-item input {
    flex: 1;
}

.add-button, .remove-button {
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-button {
    background-color: #2ecc71;
    display: block;
    margin: 0 auto 20px auto;
}

.add-button:hover {
    background-color: #27ae60;
}

.remove-button {
    background-color: #e74c3c;
    flex-shrink: 0;
}

.remove-button:hover {
    background-color: #c0392b;
}

.submit-button {
    background-color: #3498db;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .field-group-inline {
        flex-direction: column;
    }
    .expense-item {
        flex-direction: column;
        gap: 5px;
    }
    .remove-button {
        width: 100%;
        border-radius: 8px;
        margin-top: 5px;
    }
}