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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #2d3748;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
}

header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-section, .results-section {
    padding: 40px;
}

h2 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 22px;
}

h3 {
    color: #2d3748;
    margin-bottom: 16px;
    font-size: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-group.checkbox input {
    width: 18px;
    height: 18px;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 14px;
}

input, select {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.error-message {
    display: none;
    padding: 12px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 14px;
}

.error-message.show {
    display: block;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.card {
    background: #edf2f7;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
}

.card-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-value {
    font-size: 24px;
    color: #1a202c;
    font-weight: 700;
}

.table-section {
    margin-bottom: 32px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table thead {
    background: #edf2f7;
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.results-table tbody tr:hover {
    background: #f7fafc;
}

.results-table td:not(:first-child) {
    text-align: right;
    font-weight: 600;
    color: #1a202c;
}

.results-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .results-table {
        font-size: 12px;
    }
    
    .results-table th, .results-table td {
        padding: 8px;
    }
}
