/* Loan Types Pages Shared Styles */

/* Hero Section */
.loan-hero {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.loan-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.loan-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.loan-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.loan-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.loan-hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Loan type specific hero backgrounds */
.investment-loan-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.business-loan-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.growth-loan-hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.working-capital-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Loan Overview Section */
.loan-overview {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

.loan-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 0;
}

.loan-overview .container {
    position: relative;
    z-index: 1;
}

.loan-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.overview-main {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.overview-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background-color: var(--primary-color);
    border-top-left-radius: var(--border-radius);
}

.overview-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.overview-main p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.7;
}

.overview-main p:last-child {
    margin-bottom: 0;
}

.detail-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.detail-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 10px;
    border-radius: 50%;
}

.detail-content ul {
    padding-left: 1.5rem;
    list-style-type: none;
}

.detail-content ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--gray-700);
}

.detail-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.overview-sidebar {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
    border-top: 4px solid var(--primary-color);
}

.overview-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
    color: var(--dark-color);
}

.key-points-list {
    margin-bottom: 2rem;
}

.key-points-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    transition: transform 0.3s ease;
}

.key-points-list li:hover {
    transform: translateX(5px);
}

.key-points-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.key-points-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.25rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.key-points-list div strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.key-points-list div div {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.sidebar-cta {
    text-align: center;
    margin-top: 2rem;
}

.sidebar-cta .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loan benefits callout */
.loan-benefits-callout {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.loan-benefits-callout h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Customer testimonial in overview */
.overview-testimonial {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.overview-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-author-title {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .loan-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Loan Features Section */
.loan-features {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subheading {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-600);
}

/* Loan Details Section */
.loan-details {
    padding: 5rem 0;
    background-color: white;
}

.loan-details-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.loan-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-color);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.loan-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loan-tab:hover:not(.active) {
    background-color: var(--gray-200);
}

.loan-tab-content {
    display: none;
}

.loan-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loan-detail-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.loan-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item h4 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
}

.detail-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.detail-content {
    margin-bottom: 2rem;
}

.detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.detail-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.detail-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.detail-content li::marker {
    color: var(--primary-color);
}

.detail-cta {
    text-align: center;
}

/* Eligibility Section */
.eligibility-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.requirements-list {
    max-width: 800px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.requirement-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.requirement-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.requirement-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.eligibility-note {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background-color: white;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.eligibility-note p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Loan Process Section */
.loan-process {
    padding: 5rem 0;
    background-color: white;
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background-color: var(--gray-200);
}

.process-step {
    display: flex;
    position: relative;
    padding-bottom: 2.5rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
    border: 3px solid white;
}

.step-content {
    padding-top: 0.75rem;
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* FAQ Section */
.loan-faq {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--gray-100);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Testimonials Section */
.loan-testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-position {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* CTA Section */
.loan-cta {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.loan-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.loan-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Calculator Section */
.loan-calculator {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calculator-header {
    padding: 1.5rem 2rem;
    background-color: var(--primary-color);
    color: white;
}

.calculator-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.calculator-body {
    padding: 2rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.calculator-form input:focus,
.calculator-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.calculator-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-results {
    display: none;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.calculator-results.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.result-item h4 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calculator-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

/* Related Loans Section */
.related-loans {
    padding: 5rem 0;
    background-color: white;
}

.related-loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-loan-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-loan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.loan-card-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.loan-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loan-card-header p {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.loan-card-body {
    padding: 1.5rem;
    flex: 1;
}

.loan-card-detail {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.loan-card-detail:last-child {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.detail-text {
    font-weight: 600;
    color: var(--dark-color);
}

.loan-card-footer {
    padding: 1.5rem;
    background-color: var(--gray-100);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .loan-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-sidebar {
        position: static;
    }
    
    .loan-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .loan-hero-content h1 {
        font-size: 2rem;
    }
    
    .loan-hero-cta {
        flex-direction: column;
    }
    
    .loan-tab {
        width: 100%;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .process-steps::before {
        left: 35px;
        height: calc(100% - 70px);
        top: 70px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .requirement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .requirement-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}