/* WealthStreet Mortgage Brokers - Custom Styles (No Bootstrap) */

:root {
    /* Primary colors based on WealthStreet branding */
    --primary-color: #164741;        /* Main dark green */
    --primary-dark: #0A3D37;         /* Darker green for gradients */
    --primary-light: #1e5a53;        /* Lighter green for hover states */
    --secondary-color: #A68D50;      /* Gold/bronze accent */
    --accent-gold: #A68D50;          /* Gold for highlights */
    --accent-light: #F2F7F3;         /* Light green background */
    
    /* Text colors */
    --text-primary: #0A3D37;         /* Dark green for primary text */
    --text-secondary: #164741;       /* Main green for secondary text */
    --text-gold: #A68D50;            /* Gold for accent text */
    --text-white: #ffffff;           /* White text */
    --text-muted: #7a8471;           /* Muted green for less important text */
    
    /* Background colors */
    --bg-primary: #ffffff;           /* White backgrounds */
    --bg-secondary: #EFEAE2;         /* Cream/beige background */
    --bg-tertiary: #F2F7F3;          /* Light green background */
    --bg-dark: #164741;              /* Dark green background */
    --bg-gradient-start: #164741;    /* Dark green */
    --bg-gradient-end: #0A3D37;      /* Darker green */
    
    /* Border and shadow colors */
    --border-light: #e6e0d4;
    --border-medium: #d4c7b8;
    --shadow-light: rgba(22, 71, 65, 0.1);
    --shadow-medium: rgba(22, 71, 65, 0.15);
    --shadow-dark: rgba(22, 71, 65, 0.25);
    
    /* Status colors */
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    --info-color: #164741;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    font-weight: 400;
}

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

.centered-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-gold);
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: 0 4px 20px var(--shadow-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-gold);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-gold);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    color: var(--text-gold);
}

.hero-section .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-gold);
}

/* Prize Highlight */
.prize-highlight {
    background: rgba(166,141,80,0.15);
    border: 2px solid rgba(166,141,80,0.4);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 500px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.prize-amount {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section.bg-light {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

.section-bottom-text {
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-gold);
    text-align: center;
    line-height: 1.6;
}

/* Grid Layouts */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.features-grid-single-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-column {
    flex: 1;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-medium);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--text-gold);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.step-card {
    text-align: center;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.checklist li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist i {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.next-steps-list {
    list-style: none;
    padding: 0;
}

.next-steps-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-steps-list i {
    color: var(--text-gold);
    flex-shrink: 0;
    width: 20px;
}

/* Form Section */
.form-section {
    background: var(--bg-tertiary);
    padding: 5rem 0;
}

.form-container {
    background: var(--bg-primary);
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 0 20px 60px var(--shadow-light);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.form-header {
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-control {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.125rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 71, 65, 0.25);
    outline: none;
    background-color: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-gold);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Form Sections */
.referrer-section {
    border-left: 5px solid var(--primary-color);
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 0 15px 15px 0;
    margin-bottom: 2.5rem;
}

.referred-section {
    border-left: 5px solid var(--accent-gold);
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 0 15px 15px 0;
    margin-bottom: 2.5rem;
}

.form-submit-section {
    text-align: center;
}

.section-header {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(22, 71, 65, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 71, 65, 0.4);
    color: var(--text-white);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.btn-full-width {
    width: 100%;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Terms Section */
.terms-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.terms-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.terms-highlight {
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.terms-highlight h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 15px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 4px solid var(--accent-gold);
}

.alert-warning {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 4px solid var(--info-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer a:hover {
    color: var(--text-white);
}

/* Success Page */
.success-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    font-size: 6rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(166, 141, 80, 0.3);
}

.contact-info {
    margin-top: 3rem;
}

/* Form Validation */
.invalid-feedback {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.25rem rgba(245, 101, 101, 0.25);
}

.form-control.is-invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.25rem rgba(245, 101, 101, 0.25);
}

.form-group.has-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.25rem;
    }
    
    .prize-amount {
        font-size: 3.5rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .referrer-section,
    .referred-section {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid-single-line {
        grid-template-columns: 1fr;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link {
        display: none;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .prize-amount {
        font-size: 3rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0A3D37;
        --text-secondary: #164741;
        --border-light: #a0aec0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
