/* ===========================================
   Loan Payment Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.lpc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Controls and Inputs */
.lpc-controls {
    background: #f0f4f8; /* Light Blueish Gray BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for inputs */
    gap: 20px;
}

.lpc-input-group {
    display: flex;
    flex-direction: column;
}

.lpc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334e68; /* Dark Blue Label */
    margin-bottom: 6px;
}

.lpc-input {
    padding: 10px;
    border: 1px solid #7c98b6; /* Medium Blue Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

.lpc-input-addon {
    display: flex;
    align-items: center;
}

/* Input addons for currency and percentage */
.lpc-input-addon span {
    background-color: #e5edf4;
    border: 1px solid #7c98b6;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    color: #334e68;
}

.lpc-input-addon .lpc-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Specific styling for the Calculate button outside the grid */
.lpc-btn-calc-container {
    grid-column: 1 / 3; /* Spans both columns */
    padding-top: 10px;
}

.lpc-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #47b2e4; /* Primary Sky Blue Button */
    color: white;
    transition: background 0.2s;
}
.lpc-btn-calc:hover {
    background: #3399cc;
}

/* --- Results Summary --- */

.lpc-results-section {
    margin-top: 30px;
}

.lpc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: #f0f4f8; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.lpc-result-item {
    border-right: 1px solid #d9e2ec;
    padding: 0 10px;
}

.lpc-result-item:last-child {
    border-right: none;
}

.lpc-result-label {
    font-size: 0.9rem;
    color: #334e68;
    font-weight: 600;
    margin-bottom: 5px;
}

.lpc-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #47b2e4;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .lpc-controls {
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    .lpc-btn-calc-container {
        grid-column: 1 / 2;
    }
    .lpc-summary {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .lpc-result-item {
        border-right: none;
        border-bottom: 1px solid #d9e2ec;
        padding-bottom: 15px;
    }
    .lpc-result-item:last-child {
        border-bottom: none;
    }
    .lpc-result-value {
        font-size: 1.8rem;
    }
}