* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.header-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.selector-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    background: #f8fafc;
}

.selector-group {
    display: flex;
    flex-direction: column;
}

.selector-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.custom-select {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
}

.custom-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.uk-card {
    border-left: 4px solid #ef4444;
}

.DUX-card {
    border-left: 4px solid #3b82f6;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.flag-icon {
    font-size: 2.5rem;
    margin-right: 16px;
}

.card-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.card-title p {
    color: #6b7280;
    font-size: 1rem;
}

.cost-breakdown {
    margin-bottom: 24px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item span:first-child {
    color: #374151;
}

.cost-item span:last-child {
    font-weight: 600;
    color: #1f2937;
}

.total-section {
    border-top: 2px solid #f3f4f6;
    padding-top: 20px;
}

.total-monthly, .total-annual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.total-monthly span:first-child,
.total-annual span:first-child {
    font-weight: 600;
    color: #374151;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.total-amount-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.uk-card .total-amount,
.uk-card .total-amount-large {
    color: #ef4444;
}

.DUX-card .total-amount,
.DUX-card .total-amount-large {
    color: #3b82f6;
}

.savings-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    color: white;
}

.savings-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.savings-amount, .cost-reduction {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.savings-amount span:first-child,
.cost-reduction span:first-child {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.savings-label, .reduction-label {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

.chart-section {
    padding: 40px;
    background: #f8fafc;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    font-weight: 600;
    color: #374151;
}

.bar-visual {
    flex: 1;
    height: 40px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
}

.uk-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.DUX-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.bar-amount {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .header-section p {
        font-size: 1rem;
    }
    
    .selector-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .comparison-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .savings-summary {
        flex-direction: column;
        gap: 30px;
    }
    
    .savings-amount span:first-child,
    .cost-reduction span:first-child {
        font-size: 2.5rem;
    }
    
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bar-label {
        min-width: auto;
    }
    
    .bar-visual {
        width: 100%;
    }
    
    .bar-amount {
        min-width: auto;
        text-align: left;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .calculator-container {
        border-radius: 10px;
    }
    
    .header-section {
        padding: 30px 20px;
    }
    
    .comparison-card {
        padding: 20px;
    }
    
    .savings-section {
        padding: 30px 20px;
    }
    
    .chart-section {
        padding: 30px 20px;
    }
}