/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Container: Light, airy, with soft shadows */
.ilec-container {
    font-family: 'Poppins', sans-serif;
    max-width: 580px;
    margin: 2rem auto;
    padding: 35px 45px;
    background-color: #f7f8fc; /* Off-white background */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9eaf0;
    color: #333;
}

/* Header Styling */
.ilec-header {
    text-align: center;
    margin-bottom: 30px;
}
.ilec-header h2 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1e2749;
}
.ilec-header p {
    margin: 0;
    color: #777;
    font-size: 1rem;
}

/* Form Styling */
.ilec-form-group {
    margin-bottom: 22px;
}
.ilec-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.ilec-input-wrapper {
    position: relative;
}
.ilec-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

/* Input & Select fields: Clean, modern look */
.ilec-container input[type="number"],
.ilec-container select {
    width: 100%;
    padding: 15px 20px 15px 55px;
    background-color: #ffffff;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.ilec-container input[type="number"]::placeholder {
    color: #aaa;
}
.ilec-container input[type="number"]:focus,
.ilec-container select:focus {
    outline: none;
    border-color: #6C63FF; /* Vibrant purple accent */
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}
.ilec-container .ilec-input-wrapper:focus-within i {
    color: #6C63FF;
}

.ilec-tenure-group {
    display: flex;
    gap: 15px;
}
.ilec-tenure-group .ilec-input-wrapper { flex-grow: 1; }
.ilec-tenure-group select { padding-left: 20px; padding-right: 20px; cursor: pointer; }

/* Button: Bright, inviting, with a nice hover effect */
.ilec-button {
    width: 100%;
    padding: 18px;
    background-color: #6C63FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}
.ilec-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* Loader */
.ilec-loader { text-align: center; padding: 20px; font-size: 1rem; color: #777; }

/* Results Section: The main attraction */
.ilec-results-wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9eaf0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.ilec-results-wrapper.ilec-visible {
    opacity: 1;
}

.ilec-result-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9eaf0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards;
}
.ilec-results-wrapper.ilec-visible .ilec-result-card:nth-child(1) { animation-delay: 0.1s; }
.ilec-results-wrapper.ilec-visible .ilec-result-card:nth-child(2) { animation-delay: 0.2s; }
.ilec-results-wrapper.ilec-visible .ilec-result-card:nth-child(3) { animation-delay: 0.3s; }

.ilec-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Two-tone Icons */
.ilec-card-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ilec-card-icon i { font-size: 1.5rem; }

.ilec-card-icon.monthly-emi { background-color: rgba(38, 222, 129, 0.1); color: #26de81; } /* Green */
.ilec-card-icon.total-interest { background-color: rgba(255, 165, 2, 0.1); color: #ffa502; } /* Orange */
.ilec-card-icon.total-amount { background-color: rgba(108, 99, 255, 0.1); color: #6C63FF; } /* Purple */

.ilec-card-content { flex-grow: 1; }
.ilec-card-content h4 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #777;
}
.ilec-card-content span {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e2749;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .ilec-container { padding: 25px 20px; margin: 1rem; }
    .ilec-header h2 { font-size: 1.6rem; }
    .ilec-card-content span { font-size: 1.3rem; }
    .ilec-tenure-group { flex-direction: column; }
}