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

:root {
    --primary: #0F172A;
    --secondary: #1E293B;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --success: #10B981;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
}

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

.nav-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-tagline {
    color: var(--text-secondary);
    font-size: 0.9em;
}

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

.hero-section {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
}

.badge-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent);
}

.badge-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: visible;
    position: relative;
}

.calculator-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.calculator-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 1.05em;
}

.calculator-body {
    padding: 40px;
    overflow: visible;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85em;
}

.required-label::after {
    content: ' *';
    color: #EF4444;
}

.calculate-btn,
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calculate-btn:hover,
.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.calculate-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.results-container {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 100%);
    border-radius: 12px;
    border: 2px solid #DBEAFE;
    text-align: center;
}

.result-amount {
    font-size: 3em;
    font-weight: 800;
    color: var(--accent);
    margin: 20px 0;
}

.result-label {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.result-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.feature-item svg {
    color: var(--success);
}

.email-capture-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.email-capture-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.email-capture-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.error-message {
    color: #EF4444;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-radius: 12px;
    color: #065F46;
}

.success-message h3 {
    color: #065F46;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.success-message p {
    font-size: 1.1em;
    line-height: 1.6;
}

.features-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.features-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5em;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.process-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.process-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 10px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    opacity: 0.8;
}

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

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        gap: 20px;
    }
    
    .result-amount {
        font-size: 2.5em;
    }
    
    .features-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.validation-error {
    border-color: #EF4444 !important;
}

.phone-optional {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.9em;
}

.input-with-prefix,
.input-with-suffix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.input-with-prefix:focus-within,
.input-with-suffix:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-prefix,
.input-suffix {
    padding: 12px 16px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
}

.input-with-prefix input,
.input-with-suffix input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    background: transparent;
}

.input-with-prefix input:focus,
.input-with-suffix input:focus {
    outline: none;
}

.info-tooltip {
    display: inline-block;
    margin-left: 5px;
    position: relative;
    cursor: help;
}

.info-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 320px;
    bottom: 25px;
    left: 20px;
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95em;
}

.tooltip-content p {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9em;
}

.tooltip-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tooltip-content li {
    margin: 4px 0;
    color: var(--text-secondary);
    line-height: 1.3;
    font-size: 0.9em;
}

@media (max-width: 480px) {
    .info-tooltip .tooltip-content {
        width: 250px;
        left: -50px;
    }
}