/**
 * Loan Calculator Plugin Styles
 * Version: 1.1.0
 * Themed for Kvednatunet Hageby
 */

.loan-calculator-container {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    margin: 30px auto;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: 1px solid #e8e8e8;
}

.loan-calc-title {
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.5px;
}

.loan-calc-total-price {
    background: #fbf5e8;
    color: #1a1a1a;
    padding: 24px;
    border-radius: 0;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #4b9560;
}

.loan-calc-total-price-label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #5a5a5a;
}

.loan-calc-total-price-value {
    font-size: 36px;
    font-weight: 700;
    color: #4b9560;
}

.loan-calc-input-group {
    margin-bottom: 30px;
}

.loan-calc-input-label {
    display: block;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
}

.loan-calc-slider-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.loan-calc-slider {
    flex: 1;
    min-width: 200px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 0;
    background: #e8e8e8;
    outline: none;
}

.loan-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4b9560;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(75, 149, 96, 0.3);
}

.loan-calc-slider::-webkit-slider-thumb:hover {
    background: #3d7a4d;
    box-shadow: 0 3px 12px rgba(75, 149, 96, 0.5);
}

.loan-calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4b9560;
    cursor: pointer;
    border: 3px solid #ffffff;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(75, 149, 96, 0.3);
}

.loan-calc-slider::-moz-range-thumb:hover {
    background: #3d7a4d;
    box-shadow: 0 3px 12px rgba(75, 149, 96, 0.5);
}

.loan-calc-deposit-input {
    width: 180px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 0;
    outline: none;
    transition: all 0.3s;
    background: #ffffff;
}

.loan-calc-deposit-input:focus {
    border-color: #4b9560;
    box-shadow: 0 0 0 1px #4b9560;
}

.loan-calc-results-section {
    background: #fbf5e8;
    padding: 25px;
    border-radius: 0;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.loan-calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(75, 149, 96, 0.15);
}

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

.loan-calc-result-label {
    color: #5a5a5a;
    font-size: 15px;
}

.loan-calc-result-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
}

.loan-calc-monthly-section {
    background: #ffffff;
    border: 2px solid #4b9560;
    padding: 25px;
    border-radius: 0;
}

.loan-calc-monthly-title {
    color: #4b9560;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.loan-calc-total-monthly {
    background: #4b9560;
    color: #ffffff;
    padding: 20px;
    border-radius: 0;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loan-calc-total-monthly-label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-calc-total-monthly-value {
    font-size: 28px;
    font-weight: 700;
}

.loan-calc-kr {
    font-size: 0.9em;
    margin-left: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .loan-calculator-container {
        padding: 25px;
    }

    .loan-calc-title {
        font-size: 24px;
    }

    .loan-calc-total-price-value {
        font-size: 26px;
    }

    .loan-calc-slider-container {
        flex-direction: column;
        align-items: stretch;
    }

    .loan-calc-slider {
        min-width: 100%;
    }

    .loan-calc-deposit-input {
        width: 100%;
    }

    .loan-calc-total-monthly {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
