:root {
    --primary-red: #DC1C2E;
    --primary-blue: #003DA5;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --footer-bg: #424242;
    --footer-text: #D1D5DB;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --scroll-animation-speed: 0.6s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Core Modern & Reactive Elements --- */

/* Initial state for elements to be animated on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Subtly slide up */
    transition: opacity var(--scroll-animation-speed) ease-out, transform var(--scroll-animation-speed) ease-out;
}

/* Active state triggered by JS Intersection Observer */
.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero & Content Wrapper --- */
.hero-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative; /* Container for spotlight and content */
    overflow: hidden;
}

/* Mouse Spotlight Wrapper (Above panel backgrounds, below content) */
#spotlight-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Crucial! Allows interacting with the form */
    z-index: 1; 
}

.spotlight-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    /* Soft white glow that becomes fully transparent */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Centered on the dynamic mouse position */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Spotlight enabled only on desktop/large screens where hover makes sense */
@media (min-width: 769px) {
    /* Show the spotlight glow only when hovering inside the container */
    #spotlight-wrapper.active .spotlight-circle {
        opacity: 1;
    }
}

/* Force panels to be relative to contain the spotlight */
.bio-panel, .form-panel {
    position: relative;
    z-index: 2; /* Content must be above the spotlight overlay */
}

/* Bio Panel */
.bio-panel {
    padding: 50px;
    background: linear-gradient(135deg, var(--primary-blue), #002366);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.headshot {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    will-change: transform; /* Hint for browser performance */
}

.bio-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.bio-panel h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #A0C4FF;
}

.bio-panel p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Form Panel */
.form-panel {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Reactive Input Fields */
input, select {
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: #F9FAFB;
    transition: border-color var(--transition-speed), background-color var(--transition-speed), transform 0.2s ease, box-shadow 0.2s ease;
}

/* Reactive focus and hover on inputs */
input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    transform: translateY(-2px); /* Lift input slightly */
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.08);
}

input:hover, select:hover {
    border-color: #A0C4FF;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #B51524;
    transform: translateY(-3px); /* Stronger Reactive Lift */
    box-shadow: 0 6px 16px rgba(220, 28, 46, 0.35);
}

/* Thank You State */
#thank-you-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #10B981;
    color: white;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

/* Bottom Logos */
.bottom-logos-section {
    background-color: var(--white);
    padding: 40px 20px;
}

.logo-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo {
    max-height: 60px;
    object-fit: contain;
}

/* Footer Disclaimers (Matched to Screenshot) */
.disclaimer-section {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.disclaimer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-spaced-text {
    margin-top: 20px;
}

.disclaimer-section a {
    color: var(--white);
    text-decoration: none;
}

.disclaimer-section a:hover {
    text-decoration: underline;
}

/* MLS Section specific */
.mls-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mls-logo {
    background-color: white;
    padding: 10px;
    max-width: 120px;
    border-radius: 4px;
}

.mls-text {
    color: #A3A3A3;
    text-align: justify;
}

/* Show More / Show Less Logic */
#more-text {
    display: none;
}

#toggle-disclaimer-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

#toggle-disclaimer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        padding-top: 0; /* Align bio flush on mobile */
    }
    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bio-panel, .form-panel {
        padding: 40px 20px;
    }
    .bio-panel {
        text-align: center;
        border-radius: 0; /* Full width flow */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mls-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}