:root {
    --primary-color: #ff6b35;
    --secondary-color: #2e4057;
    --accent-color: #f7c59f;
    --light-color: #efefef;
    --dark-color: #1a1a1a;
}

body {
    background-color: #f5f5f5;
    color: var(--dark-color);
    
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
    background-image: none;
}

.calculator-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.calculator-header p {
    font-size: 16px;
    opacity: 0.9;
}

.calculator-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.input-group input, .input-group select {
    width: 90%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-group .input-wrapper {
    position: relative;
}

.input-group .input-wrapper span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.input-group .input-wrapper input {
    width: 90%;
}

.slider-container {
    margin-top: 10px;
}

.slider {
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin-top: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

.calculate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #e55a2a;
}

.result-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    display: none;
}

.result-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
}

.result-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #666;
}

.result-value {
    font-weight: bold;
    color: var(--secondary-color);
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #ccc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .calculator-header {
        padding: 15px;
    }
    
    .calculator-header h1 {
        font-size: 22px;
    }
    
    .calculator-body {
        padding: 20px;
    }
    
    .input-group input, .input-group select, .calculate-btn {
        padding: 10px 15px;
    }
}