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

/* Default to dark mode colors */
:root {
    --primary-color: #4A90FF;
    --primary-dark: #3A86FF;
    --primary-light: #6ba3ff;
    --secondary-color: #10b981;
    --text-dark: #f3f4f6;
    --text-gray: #9ca3af;
    --text-light: #6b7280;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --border-color: #334155;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #4A90FF 0%, #3A86FF 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Form inputs dark mode styling */
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="month"],
select,
textarea {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

input:focus,
select:focus,
textarea:focus {
    background: var(--bg-white);
    border-color: var(--primary-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Desktop-specific container for wider layout */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .desktop-split-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .desktop-split-container .results-section {
        width: 100%;
        max-width: 700px;
        margin: 0 auto 2rem;
    }
    
    .desktop-split-container .contact-form {
        width: 100%;
        max-width: 600px;
    }
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (min-width: 1024px) {
    .header {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        padding: 2rem 0;
        border-bottom: 2px solid var(--primary-color);
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header .logo-section {
        text-align: left;
        margin-bottom: 0;
    }
    
    .header .broker-name {
        font-size: 2rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.logo-section {
    margin-bottom: 0.5rem;
    text-align: center;
}

.broker-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.broker-title {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.trust-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@media (min-width: 1024px) {
    .hero {
        padding: 4rem 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        position: relative;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 50%, rgba(74, 144, 255, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(58, 134, 255, 0.2) 0%, transparent 50%);
        animation: heroGlow 8s ease-in-out infinite;
    }
    
    @keyframes heroGlow {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: pulse 20s ease-in-out infinite reverse;
    z-index: 1;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.main-headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.sub-headline {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .main-headline {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #ffffff 0%, #4A90FF 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: titleGlow 3s ease-in-out infinite;
    }
    
    @keyframes titleGlow {
        0%, 100% { filter: brightness(1); }
        50% { filter: brightness(1.2); }
    }
    
    .sub-headline {
        font-size: 1.5rem;
        font-weight: 300;
        color: #cbd5e1;
        margin-bottom: 2rem;
    }
    
    .current-rates {
        font-size: 1.125rem;
        padding: 1rem 2rem;
        background: rgba(74, 144, 255, 0.1);
        border: 2px solid var(--primary-color);
        box-shadow: 0 0 30px rgba(74, 144, 255, 0.3);
    }
}

.current-rates {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    font-size: 0.875rem;
}

.rates-text {
    font-size: 0.875rem;
}

.rates-text strong {
    font-size: 1.125rem;
    font-weight: 700;
}

.policy-rate {
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Calculator Section */
.calculator-section {
    padding: 1.5rem 1rem;
    background: var(--bg-white);
    margin: 1.5rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.6s ease-out;
}

@media (min-width: 1024px) {
    .calculator-section {
        padding: 3rem 2rem;
        margin: 3rem auto;
        max-width: 1200px;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border: 2px solid var(--primary-color);
        box-shadow: 
            0 0 50px rgba(74, 144, 255, 0.2),
            inset 0 0 50px rgba(0, 0, 0, 0.5);
        position: relative;
    }
    
    .calculator-section .container {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .mortgage-form {
        padding: 0;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .form-step {
        max-width: 750px;
        margin: 0 auto;
    }
    
    .calculator-section::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
        border-radius: 1rem;
        opacity: 0.5;
        animation: borderGlow 3s linear infinite;
        z-index: -1;
    }
    
    @keyframes borderGlow {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 1rem 0.75rem;
        margin: 0.75rem 0.5rem;
        border-radius: 0.75rem;
        animation: slideUpMobile 0.4s ease-out;
    }
}

.mortgage-form {
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .mortgage-form {
        padding: 0 0.5rem;
    }
}

.form-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .form-step h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shimmer 2s ease-in-out infinite;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

@media (min-width: 1024px) {
    .form-group {
        margin-bottom: 2rem;
        position: relative;
    }
    
    .form-group::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }
    
    .form-group:focus-within::after {
        width: 100%;
    }
    
    /* Create 2-column layout for form fields on desktop */
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(250px, 350px));
        gap: 2rem;
        max-width: 750px;
        margin: 0 auto 2rem;
        justify-content: center;
    }
}

/* Form grid should be single column on mobile */
@media (max-width: 1023px) {
    .form-grid {
        display: block;
    }
}

/* Form step titles - enhanced on desktop */
@media (min-width: 1024px) {
    .form-step h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        text-align: center;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
        position: relative;
    }
    .form-group:focus-within {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
        letter-spacing: 0.025em;
        text-transform: uppercase;
        opacity: 0.8;
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    .input-prefix {
        left: 0.75rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--primary-color);
    }
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="month"],
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

@media (min-width: 1024px) {
    .form-group input[type="number"],
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="month"],
    .form-group select {
        padding: 1.25rem 1.5rem;
        padding-left: 3rem;
        font-size: 1.125rem;
        border: 2px solid var(--border-color);
        background: rgba(30, 41, 59, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 0.75rem;
    }
    
    .form-group input:hover,
    .form-group select:hover {
        border-color: var(--primary-color);
        background: rgba(30, 41, 59, 0.8);
        transform: translateX(5px);
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--primary-color);
        background: rgba(30, 41, 59, 0.9);
        box-shadow: 
            0 0 0 4px rgba(74, 144, 255, 0.2),
            0 0 20px rgba(74, 144, 255, 0.3);
        transform: translateX(10px);
    }
    
    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-light);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 768px) {
    .form-group input[type="number"],
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="month"],
    .form-group select {
        padding: 0.875rem 1rem;
        padding-left: 2.25rem;
        font-size: 0.9375rem;
        border-radius: 0.625rem;
        border-width: 2px;
        background: var(--bg-light);
        transition: all 0.2s ease;
    }
    .form-group input:focus,
    .form-group select:focus {
        background: var(--bg-white);
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    }
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group select {
    padding-left: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    transform: translateY(0);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-gray);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .form-group small {
        font-size: 0.625rem;
        margin-top: 0.125rem;
        opacity: 0.8;
    }
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .btn {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        border-radius: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        position: relative;
        z-index: 1;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #4A90FF 0%, #3A86FF 100%);
        box-shadow: 
            0 10px 30px rgba(74, 144, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #6ba3ff 0%, #4A90FF 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 0.75rem;
        z-index: -1;
    }
    
    .btn-primary:hover::before {
        opacity: 1;
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 15px 40px rgba(74, 144, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .btn-secondary {
        background: transparent;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        position: relative;
        overflow: hidden;
    }
    
    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        transition: left 0.3s ease;
        z-index: -1;
    }
    
    .btn-secondary:hover::before {
        left: 0;
    }
    
    .btn-secondary:hover {
        color: white;
        border-color: transparent;
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: 0.625rem;
        font-weight: 600;
        letter-spacing: 0.025em;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        animation: pulseButton 2s ease-in-out infinite;
    }
    .btn-primary:active {
        transform: scale(0.98);
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Results Section */
.results-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .results-section {
        max-width: 700px;
        margin: 0 auto 2rem;
        padding: 2.5rem;
        background: linear-gradient(135deg, rgba(74, 144, 255, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
        border: 2px solid var(--primary-color);
    }
}

@media (max-width: 768px) {
    .results-section {
        padding: 1rem;
        margin-bottom: 1.25rem;
        animation: fadeInUp 0.4s ease-out;
    }
    .results-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

.result-cards {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .result-cards {
        gap: 0.625rem;
        margin: 1rem 0;
    }
}

@media (min-width: 1024px) {
    .result-cards {
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

.result-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

@media (min-width: 1024px) {
    .result-card {
        background: rgba(30, 41, 59, 0.7);
        border: 2px solid var(--border-color);
        padding: 2rem;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .result-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(74, 144, 255, 0.1) 0%, transparent 60%);
        animation: cardPulse 4s ease-in-out infinite;
    }
    
    @keyframes cardPulse {
        0%, 100% { transform: scale(1); opacity: 0.5; }
        50% { transform: scale(1.1); opacity: 1; }
    }
    
    .result-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 40px rgba(74, 144, 255, 0.4);
        border-color: var(--primary-color);
        background: rgba(30, 41, 59, 0.9);
    }
}

@media (max-width: 768px) {
    .result-card {
        padding: 0.875rem;
        border-radius: 0.625rem;
        animation: slideInCard 0.3s ease-out;
    }
    .result-card:nth-child(1) { animation-delay: 0.1s; }
    .result-card:nth-child(2) { animation-delay: 0.2s; }
    .result-card:nth-child(3) { animation-delay: 0.3s; }
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

@media (min-width: 1024px) {
    .result-card.primary {
        background: linear-gradient(135deg, rgba(74, 144, 255, 0.3) 0%, rgba(58, 134, 255, 0.2) 100%);
        border: 2px solid var(--primary-color);
        box-shadow: 
            0 0 30px rgba(74, 144, 255, 0.4),
            inset 0 0 20px rgba(74, 144, 255, 0.1);
        transform: scale(1.05);
    }
    
    .result-card.primary .result-value {
        font-size: 2.75rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 30px rgba(74, 144, 255, 0.5);
    }
}

.result-card.primary:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .result-label {
        font-size: 0.625rem;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }
}

.result-card.primary .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .result-value {
        font-size: 1.375rem;
        font-weight: 800;
    }
}

.result-card.primary .result-value {
    color: white;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 1rem;
}

/* Contact Form */
.contact-form {
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 0 0.5rem;
        animation: fadeIn 0.4s ease-out;
    }
    .contact-form h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .contact-form p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

.contact-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-immediate {
    font-weight: 600;
}

.contact-immediate a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Credentials Section */
.credentials {
    padding: 2rem 0;
    background: var(--bg-white);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .credentials {
        padding: 1.25rem 0.75rem;
        margin-top: 1rem;
    }
    .credentials h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
}

.credentials h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
    .credential-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.credential-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .credential-item {
        padding: 0.875rem 0.5rem;
        border-radius: 0.625rem;
        background: var(--bg-light);
    }
    .credential-item strong {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    .credential-item p {
        font-size: 0.625rem;
        line-height: 1.3;
    }
}

.credential-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.credential-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.credential-item p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.nav-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.nav-tab a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 2;
}

.nav-tab.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Desktop hover animations */
@media (min-width: 1024px) {
    .nav-tab {
        border-radius: 0.5rem;
        margin: 0 0.25rem;
    }
    
    /* Subtle glow effect */
    .nav-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent, rgba(74, 144, 255, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 0.5rem;
        z-index: 0;
    }
    
    .nav-tab:hover::before {
        opacity: 1;
    }
    
    /* Subtle border */
    .nav-tab::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 1px solid transparent;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-tab:hover::after {
        border-color: rgba(74, 144, 255, 0.3);
        box-shadow: 0 2px 8px rgba(74, 144, 255, 0.2);
    }
    
    /* Subtle text effects on hover */
    .nav-tab:not(.active):hover {
        transform: translateY(-2px);
        background: rgba(74, 144, 255, 0.08);
    }
    
    .nav-tab:not(.active):hover a {
        color: var(--primary-light);
        text-shadow: 0 2px 4px rgba(74, 144, 255, 0.2);
    }
    
    /* Active tab enhanced */
    .nav-tab.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        box-shadow: 0 5px 20px rgba(74, 144, 255, 0.4);
        transform: scale(1.05);
    }
    
    .nav-tab.active a {
        color: white;
    }
    
    .nav-tab.active::before {
        display: none;
    }
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    animation: slideIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .nav-tabs {
        background: var(--bg-light);
        border-bottom: none;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .nav-tab {
        padding: 0.75rem;
        font-size: 0.875rem;
        letter-spacing: 0.025em;
    }
    .nav-tab.active {
        background: var(--bg-white);
        border-radius: 0.5rem 0.5rem 0 0;
    }
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Footer */
.footer {
    background: var(--bg-light);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0.75rem;
        margin-top: 1.5rem;
    }
    .footer p {
        font-size: 0.625rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer .disclaimer {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-section {
        text-align: left;
    }

    .trust-badges {
        margin-top: 0;
    }
    
    .main-headline {
        font-size: 1.875rem;
    }
    
    .calculator-section {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
    
    .result-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .credential-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        display: inline-block;
        width: auto;
    }
    
    .btn-secondary {
        margin-top: 0;
        margin-left: 1rem;
    }
}

@media (min-width: 1024px) {
    .main-headline {
        font-size: 2rem;
    }
    
    .credential-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
        animation: slideDown 0.4s ease-out;
    }
    .hero {
        padding: 1rem 0;
        min-height: auto;
        animation: gradientShiftMobile 6s ease-in-out infinite;
    }
    .hero::before {
        animation: float 8s ease-in-out infinite;
    }
    .hero::after {
        animation: float 12s ease-in-out infinite reverse;
    }
    .broker-name {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }
    .broker-title {
        font-size: 0.625rem;
        opacity: 0.9;
    }
    .badge {
        padding: 0.125rem 0.5rem;
        font-size: 0.625rem;
        animation: fadeInScale 0.5s ease-out;
    }
    .trust-badges {
        gap: 0.25rem;
        margin-top: 0.25rem;
    }
    .main-headline {
        font-size: 1.125rem;
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 0.125rem;
        animation: fadeInUp 0.3s ease-out;
    }
    .sub-headline {
        font-size: 0.75rem;
        opacity: 0.95;
        margin-bottom: 0.5rem;
        animation: fadeInUp 0.4s ease-out;
    }
    .current-rates {
        padding: 0.375rem 0.625rem;
        font-size: 0.625rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        animation: fadeInUp 0.5s ease-out;
    }
    .current-rates .rates-text {
        font-size: 0.625rem;
    }
    .current-rates strong {
        font-size: 0.75rem;
    }
}

/* Admin Dashboard Styles */
.admin-header {
    background: var(--bg-light);
    color: white;
    padding: 1rem 0;
}

.admin-container {
    max-width: 100% !important;
    padding: 2rem !important;
}

@media (min-width: 1024px) {
    .admin-container {
        padding: 2rem 3rem !important;
    }
}

.admin-header h1 {
    font-size: 1.5rem;
}

.logout-btn {
    background: var(--error-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 1200px;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .stats-grid {
        display: flex;
        gap: 0.375rem;
        margin: 0.75rem 0;
        overflow-x: auto;
        padding: 0 0.25rem;
    }
    
    .stat-card {
        padding: 0.5rem;
        border-radius: 0.375rem;
        min-width: 80px;
        flex: 1;
        text-align: center;
        background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
        border: 1px solid var(--border-color);
    }
    
    .stat-label {
        font-size: 0.5rem;
        margin-bottom: 0.125rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        font-weight: 700;
        opacity: 0.7;
        display: block;
    }
    
    .stat-value {
        font-size: 1.125rem;
        font-weight: 800;
        margin-left: 0;
        display: block;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.leads-table {
    background: var(--bg-white);
    border-radius: 0.75rem;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.leads-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.leads-table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.leads-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    vertical-align: middle;
}

.leads-table tbody tr:hover {
    background: var(--bg-light);
    transition: background 0.2s ease;
}

.lead-type-indicator {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.lead-type-indicator.refinance {
    background: #064e3b;
    color: #34d399;
}

.lead-type-indicator.purchase {
    background: #1e3a8a;
    color: #60a5fa;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.status-new {
    background: #422006;
    color: #fbbf24;
}

.status-contacted {
    background: #1e3a8a;
    color: #60a5fa;
}

.status-qualified {
    background: #064e3b;
    color: #34d399;
}

.status-not-qualified {
    background: #7f1d1d;
    color: #fca5a5;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-box .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.login-box .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Email Preview Modal Styles */
.email-preview-header {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.email-preview-header strong {
    color: var(--text-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
    min-width: 80px;
}

.email-preview-body {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
}

.email-preview-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.email-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.email-action-buttons .btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-align: center;
}

.email-action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.email-action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.email-action-buttons .btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.email-action-buttons .btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.email-tip {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    text-align: center;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.status-message {
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.25rem;
        width: 95%;
        max-width: none;
        border-radius: 0.75rem;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .close {
        font-size: 24px;
        padding: 0.25rem;
    }
    
    .lead-detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.625rem;
        border-radius: 0.375rem;
    }
    
    .lead-detail-row:nth-child(even) {
        background: var(--bg-light);
    }
    
    .lead-detail-label {
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
        color: var(--text-gray);
        opacity: 0.8;
    }
    
    .lead-detail-value {
        text-align: left;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .modal-actions {
        margin-top: 1.25rem;
        gap: 0.75rem;
    }
    
    .modal-actions .form-select,
    .modal-actions textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }
    
    .modal-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }
    
    .modal-actions textarea {
        min-height: 60px;
    }
    
    /* Compact two-column layout for some fields */
    .lead-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .lead-details-grid .lead-detail-row {
        background: var(--bg-light);
        padding: 0.5rem;
        border-bottom: none;
    }
    
    .email-preview-header {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .email-preview-body {
        padding: 0.875rem;
        max-height: 200px;
        font-size: 0.8125rem;
    }
    
    .email-action-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .email-action-buttons .btn {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .email-tip {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .status-message {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .login-container {
        padding: 0.5rem;
    }
    
    .login-box {
        padding: 1.5rem 1rem;
        border-radius: 0.75rem;
    }
    
    .login-box h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .login-box .form-group {
        margin-bottom: 1rem;
    }
    
    .login-box .form-group label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        font-weight: 600;
        margin-bottom: 0.25rem;
        opacity: 0.8;
    }
    
    .login-box .form-group input {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

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

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes fadeInScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulseButton {
    0%, 100% { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5); }
}

@keyframes slideInCard {
    from { 
        transform: translateX(-20px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    }
    33% {
        background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    }
    66% {
        background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
    }
}

@keyframes gradientShiftMobile {
    0%, 100% {
        background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    }
    50% {
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    }
}

/* Loading animation for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Better focus states */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Form transitions */
.form-step {
    animation: fadeIn 0.4s ease-out;
}

/* Success animation */
.success-icon {
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Lead Cards for Admin Dashboard */
.mobile-cards-container {
    padding: 0 !important;
    border: none !important;
}

.lead-card-mobile {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin: 0 0 1rem 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.lead-type-badge {
    display: inline-block;
    background: #10b981; /* Green for refinance */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.lead-card-header {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.lead-card-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lead-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.lead-card-body {
    padding: 1rem;
}

.lead-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.lead-contact {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.lead-details {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.lead-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.25rem 0;
    gap: 1rem;
}

.lead-detail-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    word-break: break-word;
    flex-shrink: 1;
}

.btn-block {
    width: 100%;
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0.75rem 0;
    }
    
    .admin-header h1 {
        font-size: 1.125rem;
    }
    
    .admin-container {
        padding: 0.75rem 0.5rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .leads-table thead {
        display: none;
    }
    
    .leads-table {
        background: transparent;
        box-shadow: none;
        overflow: visible;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .leads-table table {
        min-width: auto;
        width: 100%;
        table-layout: fixed;
    }
    
    .leads-table tbody {
        display: block;
        width: 100%;
    }
    
    .leads-table tr {
        display: block;
        width: 100%;
    }
    
    .leads-table td {
        display: block;
        border: none;
        padding: 0;
        width: 100%;
    }
    
    width: 100%;
        box-sizing: border-box;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

#leadDetails {
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
}

.close:hover {
    color: var(--primary-color);
}

.modal-actions {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Status Update Row */
.modal-actions-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Application Button Row */
.modal-actions-full {
    margin-bottom: 1.25rem;
}

/* Notes Section */
.modal-actions-notes {
    display: grid;
    gap: 1rem;
}

.modal-actions .form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    font-size: 0.9375rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    height: 50px;
    font-weight: 500;
}

.modal-actions .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-actions textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    font-size: 0.9375rem;
    color: var(--text-dark);
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    min-height: 120px;
    line-height: 1.5;
}

.modal-actions textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-actions .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.modal-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.modal-actions .btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lead-detail-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.lead-detail-row:last-child {
    border-bottom: none;
}

.lead-detail-row:nth-child(even) {
    background: var(--bg-light);
}

.lead-detail-label {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.lead-detail-value {
    text-align: right;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
    font-size: 0.9375rem;
}

.lead-detail-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.lead-detail-value a:hover {
    text-decoration: underline;
}

.form-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--bg-white);
    font-size: 0.875rem;
    color: var(--text-dark);
}
    
    .lead-card-mobile {
        width: 100%;
        box-sizing: border-box;
    }
}
@keyframes gradientShift {
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}