/* ===========================================
    Lease Calculator - Tool Specific Styles (Compact)
    =========================================== */

.lc-box {
    max-width: 800px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.lc-form {
    padding: 15px; 
    border: 1px solid #9c27b0; /* Purple Border */
    border-radius: 6px;
    background-color: #f3e5f5; /* Light Purple Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.lc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7b1fa2; 
    border-bottom: 2px solid #9c27b0;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}
.input-instruction, .text-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

/* Compact Grid Setup */
.lc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.lc-compact-grid.columns-2 .lc-input-group {
    width: 48.5%; /* Two per row */
}
.lc-compact-grid.columns-3 .lc-input-group {
    width: 31%; /* Three per row */
}

.lc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.lc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.lc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}
.lc-input-group input.read-only-like {
    background-color: #e3f2fd; /* Light Blue to indicate it's a solved value */
    border: 2px solid #2196f3;
}
.hidden-input {
    display: none !important;
}

/* Mode Selector (Radio Buttons) */
.mode-selector {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border: 1px dashed #ce93d8;
    border-radius: 4px;
    background-color: #ede7f6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.mode-selector label {
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
}

/* Button Styles */
.lc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #9c27b0; /* Primary Purple for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lc-calculate-btn:hover {
    background-color: #7b1fa2;
}

/* Results Display */
.lc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #9c27b0; 
    border-radius: 6px;
    background-color: #e1bee7; /* Lighter Purple Background */
    text-align: center;
}

.lc-results-title {
    color: #7b1fa2;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid */
.lc-data-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 10px; 
    margin-bottom: 20px; 
}

.lc-data-segment.total-result {
    flex-basis: 32%;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}
.lc-data-segment.full-width {
    flex-basis: 100%;
}

/* Highlight the Monthly Payment */
.lc-data-segment.result-payment {
    border: 3px solid #9c27b0;
}

.lc-data-segment .lc-data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #9c27b0; /* Purple */
    margin-top: 5px;
}

.lc-data-segment .lc-data-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
}
.lc-data-segment .lc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}


.lc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #4caf50; /* Green secondary button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lc-data-grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    .lc-data-segment.total-result {
        flex-basis: 100%; /* Stack results on smaller screens */
    }
    .lc-compact-grid.columns-2 .lc-input-group,
    .lc-compact-grid.columns-3 .lc-input-group {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .mode-selector {
        flex-direction: column;
    }
}