/* LeaseCalc Pro - Refinance Edition v7.7 (Mobile Optimized) */
:root {
    --lc-primary: #003D82; 
    --lc-success: #27ae60;
    --lc-bg: #fff;
    --lc-text: #333;
    --lc-radius: 8px;
}

.lc-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--lc-bg);
    border: 1px solid #e1e4e8;
    border-radius: var(--lc-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    box-sizing: border-box;
}

.lc-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--lc-primary);
    padding-bottom: 15px;
}
.lc-header h3 {
    margin: 0;
    color: var(--lc-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.lc-row { margin-bottom: 15px; }

.lc-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

.lc-input, .lc-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* Prevents iOS auto-zoom */
    box-sizing: border-box;
    min-height: 48px; /* Touch-friendly */
}
.lc-input:focus, .lc-select:focus {
    border-color: var(--lc-primary);
    outline: none;
}

.lc-summary {
    margin-top: 25px;
    padding: 20px;
    background: #f8fff9; 
    border: 1px solid #c3e6cb;
    border-radius: var(--lc-radius);
    text-align: center;
}

.lc-price-row {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.lc-total-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.lc-total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--lc-primary);
    display: block;
    line-height: 1.2;
}

.lc-netto {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.lc-btn {
    display: block;
    width: 100%;
    background: var(--lc-primary);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    min-height: 48px; /* Touch-friendly */
    transition: background 0.2s;
}
.lc-btn:hover { background: #002a5c; }
.lc-btn:disabled { background: #ccc; cursor: not-allowed; }

/* MODAL */
.lc-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}
.lc-modal.active { display: flex; }
.lc-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}
.lc-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.lc-form-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.lc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 768px) {
    .lc-calculator {
        margin: 10px;
        padding: 20px;
    }
    
    .lc-header h3 {
        font-size: 18px;
    }
    
    .lc-total-amount {
        font-size: 28px;
    }
    
    .lc-modal-content {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .lc-calculator {
        margin: 5px;
        padding: 15px;
    }
    
    .lc-header h3 {
        font-size: 16px;
    }
    
    .lc-label {
        font-size: 13px;
    }
    
    .lc-input, .lc-select {
        font-size: 16px; /* Still 16px to prevent zoom */
        padding: 10px;
    }
    
    .lc-total-amount {
        font-size: 24px;
    }
    
    .lc-btn {
        padding: 14px;
        font-size: 15px;
    }
}
