/* Bootstrap Fallback Styles for Loan Pages */
/* This CSS provides fallback styling for Bootstrap classes during Tailwind conversion */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

@media (max-width: 991px) {
    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767px) {
    .col-md-3, .col-md-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Column spacing */
[class*="col-"] {
    padding: 0 15px;
}

.g-4 > [class*="col-"] {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* Spacing */
.py-5 { padding: 3rem 0; }
.py-3 { padding: 1.5rem 0; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-0 { margin-bottom: 0; }
.me-2 { margin-right: 0.5rem; }
.me-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Background */
.bg-light { background-color: #f8f9fa; }
.bg-primary { background-color: #0d6efd; }

/* Typography */
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-primary { color: #0d6efd; }
.text-success { color: #198754; }
.text-white { color: white; }
.lead { font-size: 1.25rem; font-weight: 300; }

/* Text utilities */
.text-lg-end { text-align: right; }
@media (max-width: 991px) {
    .text-lg-end { text-align: center; }
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-box h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.feature-box p {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Document Categories */
.document-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
}

.document-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    color: #4b5563;
}

.document-list li:last-child {
    border-bottom: none;
}

/* Eligibility Cards */
.eligibility-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.eligibility-card:hover {
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.eligibility-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.eligibility-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.eligibility-card p {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

/* Loan Type Cards */
.loan-type-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.loan-type-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.loan-type-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.loan-type-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.loan-type-card p {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Industry Cards */
.industry-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.industry-card:hover {
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.industry-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.industry-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.industry-card p {
    color: #6b7280;
}

/* Lists */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    color: #4b5563;
}

/* Forms */
.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group-text {
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
}

.input-group .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: none;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary {
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-primary {
    background-color: #3b82f6 !important;
    color: white;
}

/* Accordion */
.accordion {
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    background: white;
    border: none;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: #f9fafb;
}

.accordion-button.collapsed {
    background-color: white;
}

.accordion-collapse {
    border-top: 1px solid #e5e7eb;
}

.accordion-body {
    padding: 1rem;
    color: #4b5563;
    background-color: #fafafa;
}

/* Bank Cards */
.bank-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.bank-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.bank-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bank-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 1rem;
}

.bank-info h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.bank-details {
    margin-bottom: 1rem;
}

.rate-info {
    margin-bottom: 0.75rem;
}

.rate {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}

.amount {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
}

.features {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.bank-actions {
    display: flex;
    gap: 0.5rem;
}

.bank-actions .btn {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .feature-box, .document-category, .loan-type-card {
        margin-bottom: 1.5rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    .bank-actions {
        flex-direction: column;
    }
    
    .text-lg-end {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Additional utility classes */
.h-100 { height: 100%; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
