/* Custom CSS for Loans R Us */

/* Color Variables */
:root {
    --primary-blue: #003087;
    --secondary-blue: #00c4ff;
    --dark-black: #121212;
    --light-white: #f5f5f5;
    --white: #ffffff;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --text-muted: #6c757d;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-black);
    background-color: var(--light-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-black);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 48, 135, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-logo, .footer-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    color: var(--white);
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-cta {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--white) !important;
    font-weight: 600;
}

.btn-cta:hover {
    background-color: transparent !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1000" height="1000" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    position: relative;
    text-align: center;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.floating-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: 2px solid transparent;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 48, 135, 0.3);
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 48, 135, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Cards */
.card, .feature-card, .loan-card, .newsletter-card, .value-card, .cta-card, 
.agent-intro-card, .agent-form-card, .contact-form-card, .contact-info-card, 
.signup-card, .disclosure-card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover, .feature-card:hover, .loan-card:hover, .value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--white);
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.newsletter-card h3 {
    color: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--white);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card {
    text-align: center;
    height: 100%;
}

.feature-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

/* Loan Types */
.loan-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.loan-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.loan-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.loan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.loan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.loan-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.jumbo-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    border: 2px solid rgba(0, 48, 135, 0.1);
}

/* About Page */
.about-image {
    text-align: center;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.value-card {
    text-align: center;
    height: 100%;
}

.value-card h4 {
    color: var(--primary-blue);
}

/* Find Agent */
.agent-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: var(--white);
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.benefit-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.process-steps {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Contact Page */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.quick-apply-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.faq-section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h6 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Sign Up Page */
.security-notice {
    margin-bottom: 2rem;
}

.application-steps {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.loan-options-preview {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loan-option-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.loan-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loan-option-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.loan-option-card h6 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.loan-option-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.help-section {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    padding: 3rem;
    border-radius: 20px;
}

/* Disclosures */
.disclosure-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.disclosure-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.disclosure-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.disclosure-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclosure-list {
    list-style: none;
    padding: 0;
}

.disclosure-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.disclosure-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.regulatory-item {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.05) 0%, rgba(0, 196, 255, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
}

.regulatory-item h6 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

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

.contact-item {
    padding: 0.5rem 0;
}

.disclosure-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 135, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-black);
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: var(--white);
}

.btn-close {
    filter: invert(1);
}

.bpo-benefits ul {
    list-style: none;
    padding: 0;
}

.bpo-benefits li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-black) !important;
    color: var(--white);
}

.footer h5, .footer h6 {
    color: var(--white);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-new {
        font-size: 2.2rem;
    }
    
    .hero-subtitle-new {
        font-size: 1.1rem;
    }
    
    .hero-content-panel,
    .hero-stats-panel {
        padding: 3rem 1.5rem;
    }
    
    .stats-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-cta-section {
        flex-direction: column;
    }
    
    .hero-cta-section .btn {
        margin: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .features-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .newsletter-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .newsletter-content h3 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .navbar-logo, .footer-logo {
        height: 30px;
    }
    
    .floating-card {
        margin: 1rem auto;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .process-steps {
        padding: 2rem 1rem;
    }
    
    .loan-options-preview {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .feature-card, .loan-card, .value-card {
        margin-bottom: 2rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) 1;
}
