
/* Index Page Specific Styles */

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, rgba(230,236,255,1) 0%, rgba(218,225,255,1) 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(147,39,143,0.05) 0%, rgba(234,172,232,0.1) 100%);
    border-radius: 50%;
    right: -100px;
    top: -100px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1A1F2C;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.loan-calculator {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.loan-calculator:hover {
    transform: translateY(-5px);
}

/* Range slider styling */
input[type=range] {
    height: 6px;
    border-radius: 10px;
    background: #E6ECFF;
    cursor: pointer;
    appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #593EF3;
    box-shadow: 0 2px 5px rgba(89, 62, 243, 0.3);
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #593EF3;
    box-shadow: 0 2px 5px rgba(89, 62, 243, 0.3);
    cursor: pointer;
    border: none;
}

.range-output {
    font-weight: 700;
    color: #1A1F2C;
    min-width: 110px;
    text-align: right;
}

/* Submit button */
.submit-button {
    background: #593EF3;
    color: white;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover {
    background: #4935D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 53, 210, 0.3);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(73, 53, 210, 0.3);
}

/* Features section */
.features-section {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.03);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(89, 62, 243, 0.1);
    color: #593EF3;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1A1F2C;
}

/* Popular loans section */
.popular-loans {
    padding: 4rem 0;
    background: #F9FAFB;
    border-radius: 30px;
    margin-top: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1A1F2C;
    margin-bottom: 2rem;
    text-align: center;
}

.loan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.loan-card.animated {
    opacity: 1;
}

.loan-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.loan-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.loan-card-footer {
    padding: 1.25rem 1.5rem;
    background: #FAFBFC;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loan-label {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.loan-value {
    font-weight: 700;
    color: #1A1F2C;
    font-size: 1.25rem;
}

.loan-highlight {
    color: #593EF3;
}

/* Provider list section */
.provider-list {
    padding: 4rem 0;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.provider-logo {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.provider-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.provider-name {
    font-weight: 600;
    color: #1A1F2C;
    text-align: center;
    text-decoration: none !important;
}

/* FAQ section */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(249,250,251,1) 0%, rgba(242,244,247,1) 100%);
    border-radius: 30px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-toggle {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-toggle:hover {
    background: rgba(89, 62, 243, 0.02);
}

.faq-question {
    font-weight: 600;
    color: #1A1F2C;
}

.faq-icon {
    color: #593EF3;
    transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #4B5563;
    line-height: 1.6;
}

.faq-content.hidden {
    display: none;
}

/* CTA section */
.cta-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(89, 62, 243, 0.9) 0%, rgba(113, 76, 226, 0.9) 100%);
    border-radius: 16px;
    color: white;
    margin: 2rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #593EF3;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .feature-card, .loan-card, .provider-card {
        margin-bottom: 1.5rem;
    }
    
    .loan-card-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .loan-card-footer .flex {
        width: 100%;
        justify-content: space-between;
    }
}
