/* ===========================================
   Lifespan Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.lfc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Controls and Inputs */
.lfc-controls {
    background: #eef2ff; /* Light Lavender/Indigo BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for inputs */
    gap: 20px;
}

.lfc-input-group {
    display: flex;
    flex-direction: column;
}

.lfc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4338ca; /* Dark Indigo Label */
    margin-bottom: 6px;
}

.lfc-input {
    padding: 10px;
    border: 1px solid #818cf8; /* Medium Indigo Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

/* Specific styling for the Calculate button outside the grid */
.lfc-btn-calc-container {
    grid-column: 1 / 3; /* Spans both columns */
    padding-top: 10px;
}

.lfc-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #6366f1; /* Primary Indigo Button */
    color: white;
    transition: background 0.2s;
}
.lfc-btn-calc:hover {
    background: #4f46e5;
}

/* --- Results Summary --- */

.lfc-results-section {
    margin-top: 30px;
}

.lfc-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 25px;
    background: #eef2ff; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.lfc-result-main {
    font-size: 1.2rem;
    color: #4338ca;
    font-weight: 600;
    margin-bottom: 15px;
}

.lfc-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6366f1;
    line-height: 1.1;
}

.lfc-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 15px;
    border-top: 1px dashed #c7d2fe;
}

.lfc-detail-item {
    padding: 5px;
    border-right: 1px solid #e0e7ff;
}
.lfc-detail-item:last-child {
    border-right: none;
}

.lfc-detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4338ca;
}

.lfc-detail-label {
    font-size: 0.8rem;
    color: #818cf8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .lfc-controls {
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    .lfc-btn-calc-container {
        grid-column: 1 / 2;
    }
    .lfc-detail-grid {
        grid-template-columns: 1fr; 
    }
    .lfc-detail-item {
        border-right: none;
        border-bottom: 1px solid #e0e7ff;
    }
    .lfc-detail-item:last-child {
        border-bottom: none;
    }
    .lfc-result-value {
        font-size: 2rem;
    }
}