/* ===========================================
   Debt Payoff Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.dpc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Controls and Inputs */
.dpc-controls {
    background: #fff7ed; /* Light Peach/Orange BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for inputs */
    gap: 20px;
}

.dpc-input-group {
    display: flex;
    flex-direction: column;
}

.dpc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9a3412; /* Dark Terracotta Label */
    margin-bottom: 6px;
}

.dpc-input {
    padding: 10px;
    border: 1px solid #f97316; /* Medium Orange Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

.dpc-input-addon {
    display: flex;
    align-items: center;
}

/* Input addons for currency and percentage */
.dpc-input-addon span {
    background-color: #ffedd5;
    border: 1px solid #f97316;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    color: #9a3412;
}

.dpc-input-addon .dpc-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Specific styling for the Calculate button outside the grid */
.dpc-btn-calc-container {
    grid-column: 1 / 3; /* Spans both columns */
    padding-top: 10px;
}

.dpc-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f97316; /* Primary Orange Button */
    color: white;
    transition: background 0.2s;
}
.dpc-btn-calc:hover {
    background: #ea580c;
}

/* --- Results Summary --- */

.dpc-results-section {
    margin-top: 30px;
}

.dpc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: #fff7ed; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dpc-result-item {
    border-right: 1px solid #fed7aa;
    padding: 0 10px;
}

.dpc-result-item:last-child {
    border-right: none;
}

.dpc-result-label {
    font-size: 0.9rem;
    color: #9a3412;
    font-weight: 600;
    margin-bottom: 5px;
}

.dpc-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f97316;
}

/* Highlighted savings/time */
.dpc-highlight {
    color: #10b981; /* Green for savings */
    font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dpc-controls {
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    .dpc-btn-calc-container {
        grid-column: 1 / 2;
    }
    .dpc-summary {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .dpc-result-item {
        border-right: none;
        border-bottom: 1px solid #fed7aa;
        padding-bottom: 15px;
    }
    .dpc-result-item:last-child {
        border-bottom: none;
    }
    .dpc-result-value {
        font-size: 1.8rem;
    }
}