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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    background: #000000;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDEwVjMwTTEwIDIwSDMwIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K') repeat;
    opacity: 0.1;
}

.header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.95;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.year-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.form-container {
    padding: 40px;
}

.contact-info {
    background: #f8f9fa;
    border-left: 4px solid #8B0000;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.contact-info h4 {
    color: #8B0000;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info p {
    color: #666;
    margin-bottom: 5px;
}

.section {
    margin-bottom: 35px;
    padding: 30px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
}

.section::before {
    content: attr(data-section);
    position: absolute;
    top: -12px;
    left: 20px;
    background: #8B0000;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.section h3 {
    margin: 0 0 25px 0;
    color: #8B0000;
    font-size: 1.4em;
    font-weight: bold;
    padding-left: 5px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

input[type="number"], select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.input-group {
    position: relative;
}

.input-group::before {
    content: '$';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: bold;
    z-index: 1;
}

.input-group input {
    padding-left: 35px;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #8B0000;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.radio-option.selected {
    border-color: #8B0000;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #8B0000;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.sub-section {
    margin-left: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.sub-section h4 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.eligibility-note {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95em;
}

.eligibility-note strong {
    color: #1976d2;
}

.results {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: white;
    padding: 35px;
    margin-top: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPgo8L3N2Zz4K') repeat;
}

.results h3 {
    margin: 0 0 25px 0;
    font-size: 1.8em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.result-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.result-card h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.9;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.total {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
    border-bottom: none;
}

.currency {
    font-weight: bold;
    font-size: 1.1em;
}

.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    font-size: 0.95em;
    color: #856404;
    position: relative;
    z-index: 1;
}

.export-section {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.export-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.export-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.final-total-card {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    margin-top: 20px;
}

.final-total-card h4 {
    font-size: 1.3em;
    text-align: center;
}

.final-total-card .result-row {
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
}

.note h4 {
    color: #856404;
    margin-bottom: 10px;
}

.note ul {
    padding-left: 20px;
}

.note li {
    margin-bottom: 5px;
}

.calculate-btn {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

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

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .form-container {
        padding: 20px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2em;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}