/* ===========================================
   Auto Loan Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.alc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Controls and Inputs */
.alc-controls {
    background: #fdf2f8; /* Light Pink/Rose BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fbcfe8;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for inputs */
    gap: 20px;
}

.alc-input-group {
    display: flex;
    flex-direction: column;
}

.alc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9d174d; /* Dark Rose Label */
    margin-bottom: 6px;
}

.alc-input {
    padding: 10px;
    border: 1px solid #f472b6; /* Medium Rose Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

.alc-input-addon {
    display: flex;
    align-items: center;
}

.alc-input-addon span {
    background-color: #fce7f3;
    border: 1px solid #f472b6;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    color: #9d174d;
}

.alc-input-addon .alc-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Specific styling for the Calculate button outside the grid */
.alc-btn-calc-container {
    grid-column: 1 / 3; /* Spans both columns */
    padding-top: 10px;
}

.alc-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #ec4899; /* Primary Pink Button */
    color: white;
    transition: background 0.2s;
}
.alc-btn-calc:hover {
    background: #db2777;
}

/* --- Results Summary --- */

.alc-results-section {
    margin-top: 30px;
}

.alc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: #fff1f8; /* Very Light Pink */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.alc-result-item {
    border-right: 1px solid #fbcfe8;
    padding: 0 10px;
}

.alc-result-item:last-child {
    border-right: none;
}

.alc-result-label {
    font-size: 0.9rem;
    color: #9d174d;
    font-weight: 600;
    margin-bottom: 5px;
}

.alc-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ec4899;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .alc-controls {
        grid-template-columns: 1fr; /* Single column layout for inputs on mobile */
        padding: 20px;
    }
    .alc-btn-calc-container {
        grid-column: 1 / 2;
    }
    .alc-summary {
        grid-template-columns: 1fr; /* Single column for results on mobile */
        gap: 15px;
    }
    .alc-result-item {
        border-right: none;
        border-bottom: 1px solid #fbcfe8;
        padding-bottom: 15px;
    }
    .alc-result-item:last-child {
        border-bottom: none;
    }
    .alc-result-value {
        font-size: 1.8rem;
    }
}