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

body {
    font-family: 'Questrial', Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.roi-calculator {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-header {
    text-align: center;
    padding: 20px 20px 16px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.calculator-header p {
    color: #666666;
    font-size: 14px;
}

.calculator-body {
    padding: 20px;
}

.input-section {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.apple-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Questrial', Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    transition: all 0.2s ease;
    outline: none;
}

.apple-input.short-input {
    width: 80px;
}

.apple-input:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
}

.value-input {
    width: 120px;
    margin-left: 12px;
    text-align: right;
}

.currency-symbol {
    font-size: 16px;
    color: #666666;
    margin-right: 8px;
    font-weight: 500;
}

.input-unit {
    color: #666666;
    font-size: 14px;
    margin-left: 8px;
    pointer-events: none;
}

.apple-slider {
    flex: 1;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.apple-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #f44336;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    transition: all 0.2s ease;
}

.apple-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.apple-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f44336;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #999999;
}

.plan-selection {
    margin-bottom: 20px;
}

.plan-selection h3 {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.3px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.plan-card {
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.plan-card:hover {
    border-color: #f44336;
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.1);
    transform: translateY(-2px);
}

.plan-card.active {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.02);
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.15);
}

.plan-header h4 {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.plan-price {
    font-size: 24px;
    font-weight: 400;
    color: #f44336;
    margin-bottom: 12px;
}

.plan-price span {
    font-size: 14px;
    color: #666666;
}

.plan-features {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}



.results-section {
    background: #fafafa;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.roi-highlight {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.roi-highlight .result-card {
    max-width: 280px;
    width: 100%;
}

.result-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.result-card.roi {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.2);
}

.result-label {
    font-size: 12px;
    color: #666666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.result-card.roi .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.3px;
}

.result-card.roi .result-value {
    color: white;
    font-size: 24px;
}

.result-card.loss .result-value {
    color: #f44336;
}

.roi-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    line-height: 1.3;
    font-weight: 400;
}

.cost-subtitle {
    font-size: 12px;
    color: #999999;
    margin-top: 4px;
    font-weight: 400;
}

.calculator-footer {
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.disclaimer {
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roi-calculator {
        margin: 8px;
        border-radius: 10px;
    }
    
    .calculator-header {
        padding: 16px;
    }
    
    .calculator-body {
        padding: 16px;
    }
    
    .calculator-header h2 {
        font-size: 20px;
    }
    
    .calculator-header p {
        font-size: 13px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .value-input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        text-align: left;
    }
    
    .apple-input.short-input {
        width: 100%;
    }
    
    .currency-symbol {
        margin-right: 0;
        margin-bottom: 8px;
        display: block;
    }
    
    .input-group {
        margin-bottom: 14px;
    }
    
    .plan-card {
        padding: 14px;
    }
    
    .result-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .roi-calculator {
        margin: 4px;
    }
    
    .calculator-header {
        padding: 12px;
    }
    
    .calculator-body {
        padding: 12px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .result-card {
        padding: 12px;
    }
    
    .calculator-header h2 {
        font-size: 18px;
    }
    
    .calculator-header p {
        font-size: 12px;
    }
    
    .plan-card {
        padding: 12px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .results-section {
        padding: 12px;
    }
    
    .calculator-footer {
        padding: 10px 12px;
    }
}

/* Animation for value changes */
.result-value {
    transition: all 0.3s ease;
}

.result-value.updating {
    transform: scale(1.05);
}
