.nz-personal-loan-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0 auto 2em;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e1e1e1;
}

.nz-personal-loan-calculator h2 {
    color: #006341;
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid #006341;
    padding-bottom: 0.5em;
}

.nz-personal-loan-calculator p {
    margin-bottom: 1.5em;
    color: #666;
}

.calculator-container {
    margin-top: 1.5em;
}

.input-section {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.slider-group {
    margin-bottom: 2em;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75em;
}

.slider-header label {
    font-weight: 600;
    color: #444;
    font-size: 1em;
}

.slider-value {
    font-weight: 700;
    color: #006341;
    font-size: 1.1em;
}

/* Custom Slider Styles */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    margin: 1em 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #006341;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: #004d33;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #006341;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5em;
}

.results {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.results h3 {
    color: #006341;
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: center;
    font-size: 1.3em;
}

.repayment-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.repayment-option {
    display: flex;
    align-items: center;
    padding: 1.25em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.repayment-option:hover {
    border-color: #006341;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.repayment-icon {
    font-size: 1.5em;
    margin-right: 1em;
    flex-shrink: 0;
}

.repayment-info {
    flex: 1;
}

.repayment-frequency {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.25em;
}

.repayment-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: #006341;
}

.total-summary {
    background: #e8f4f0;
    padding: 1.25em;
    border-radius: 8px;
    margin-bottom: 1.5em;
    border-left: 4px solid #006341;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75em;
}

.total-item:last-child {
    margin-bottom: 0;
}

.total-value {
    font-weight: 700;
    color: #006341;
    font-size: 1.1em;
}

.loan-details {
    background: #f8f9fa;
    padding: 1.25em;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.25em;
}

.detail-value {
    display: block;
    font-weight: 600;
    color: #006341;
    font-size: 1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .nz-personal-loan-calculator {
        padding: 0.8em;
        margin: 0 auto 1.5em;
    }
    
    .input-section, .results {
        padding: 1em;
    }
    
    .repayment-breakdown {
        grid-template-columns: 1fr;
        gap: 0.75em;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75em;
    }
    
    .repayment-option {
        padding: 1em;
    }
    
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .slider-value {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .nz-personal-loan-calculator {
        padding: 0.6em;
    }
    
    .repayment-amount {
        font-size: 1.2em;
    }
    
    .slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .repayment-icon {
        font-size: 1.2em;
        margin-right: 0.75em;
    }
}