/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Intro Section */
.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Lender Finder */
.search-container {
    margin: 1.5rem 0;
}

.search-container label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

#state-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#state-select:hover,
#state-select:focus {
    border-color: #667eea;
    outline: none;
}

/* Lenders Results */
.lenders-results {
    margin-top: 2rem;
}

.state-header {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.lenders-grid {
    display: grid;
    gap: 1.5rem;
}

.lender-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lender-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

.lender-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.lender-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 0.25rem;
}

.lender-type {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
}

.lender-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lender-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background: #5568d3;
}

.phone-link {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: #667eea;
    color: white;
}

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

.tip-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tip-card h4 {
    color: #764ba2;
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: #555;
    line-height: 1.6;
}

/* Qualification Tips */
.qualification-tips ul {
    list-style: none;
    margin-top: 1rem;
}

.qualification-tips li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    border-left: 4px solid #764ba2;
    border-radius: 4px;
    line-height: 1.6;
}

.qualification-tips strong {
    color: #764ba2;
}

/* Disclaimer */
.disclaimer {
    background: #fff9e6;
    border: 1px solid #ffd966;
    border-left: 4px solid #ff9800;
}

.disclaimer h4 {
    color: #cc7a00;
    margin-bottom: 0.75rem;
}

.disclaimer p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    section {
        padding: 1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .lender-header {
        flex-direction: column;
    }

    .lender-type {
        margin-top: 0.5rem;
    }

    .lender-contact {
        flex-direction: column;
    }

    .contact-btn,
    .phone-link {
        text-align: center;
        width: 100%;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #667eea;
    font-size: 1.1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}
