/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: #1a1a2e;
    font-weight: 700;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

.tagline {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.contact-info a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: #f0f7ff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    background: #0066cc;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero h2,
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Audio Player */
.audio-player-container {
    margin-top: 30px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: scale(1.05);
}

.play-btn.playing {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.play-icon {
    font-size: 1.2rem;
}

.play-btn.playing .play-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content */
.main-content {
    padding: 50px 0;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00cc66);
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: #0066cc;
    color: white;
}

.step.completed .step-circle {
    background: #00cc66;
}

.step span {
    font-size: 0.85rem;
    color: #666;
}

.step.active span {
    color: #0066cc;
    font-weight: 500;
}

/* Form Styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.form-step h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Input with prefix */
.input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix span {
    position: absolute;
    left: 16px;
    color: #666;
    font-weight: 500;
}

.input-prefix input {
    padding-left: 35px;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.checkbox-label input {
    width: auto;
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.2);
    cursor: pointer;
}

/* Multiple Checkbox Options */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.checkbox-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option input:checked + span {
    color: #0066cc;
    font-weight: 500;
}

.checkbox-option:has(input:checked) {
    border-color: #0066cc;
    background: #f0f7ff;
}

/* Soft Pull Link Section */
.soft-pull-link {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.btn-soft-pull {
    display: inline-block;
    background: linear-gradient(135deg, #00994d 0%, #006633 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-soft-pull:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 153, 77, 0.3);
}

.soft-pull-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #555;
}

/* Buttons */
.btn {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

/* Trust Section */
.trust-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
}

.trust-icon {
    font-size: 1.3rem;
}

/* Results Styles */
.results-container {
    text-align: center;
}

.results-success {
    padding: 30px;
}

.results-success .checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00cc66, #00994d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

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

.results-success h3 {
    color: #00994d;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.prequalified-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 0;
}

.loan-programs {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.loan-programs h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.loan-programs ul {
    list-style: none;
}

.loan-programs li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loan-programs li:last-child {
    border-bottom: none;
}

.loan-programs .badge {
    background: #0066cc;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.loan-programs .badge.va {
    background: #00994d;
}

.loan-programs .badge.fha {
    background: #ff9900;
}

.next-steps {
    background: #fff8e6;
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.next-steps h4 {
    color: #333;
    margin-bottom: 15px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    padding: 8px 0;
    color: #555;
}

.results-cta {
    margin-top: 30px;
}

.results-cta .btn {
    margin: 10px;
}

/* Not Eligible Styles */
.results-noteligible {
    padding: 30px;
}

.results-noteligible .icon {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.results-noteligible h3 {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.results-noteligible p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alternatives {
    background: #f0f7ff;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.alternatives h4 {
    color: #0066cc;
    margin-bottom: 15px;
}

.alternatives ul {
    list-style: none;
}

.alternatives li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-info p,
.footer-contact p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-disclaimer {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.6;
}

/* Live DTI Calculator */
.dti-calculator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.dti-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dti-label {
    font-weight: 500;
    color: #333;
}

.dti-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066cc;
}

.dti-value.good { color: #00994d; }
.dti-value.moderate { color: #ff9900; }
.dti-value.high { color: #cc3300; }

.dti-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, #00994d 0%, #00994d 36%, #ff9900 36%, #ff9900 43%, #cc3300 43%, #cc3300 100%);
    border-radius: 6px;
    margin-bottom: 25px;
}

.dti-fill {
    position: absolute;
    left: 0;
    top: -4px;
    width: 4px;
    height: 20px;
    background: #333;
    border-radius: 2px;
    transition: left 0.3s ease;
}

.dti-markers {
    position: relative;
    height: 20px;
}

.dti-markers span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #666;
    top: 5px;
}

.dti-status {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    font-weight: 500;
}

.dti-status.good { color: #00994d; }
.dti-status.moderate { color: #b37700; }
.dti-status.high { color: #cc3300; }

/* Fine Print - Very Small Legal Text */
.footer-fine-print {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 15px;
}

.footer-fine-print p {
    font-size: 0.65rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-fine-print p strong {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .form-wrapper {
        padding: 25px;
        margin: 0 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        gap: 5px;
    }
    
    .step span {
        font-size: 0.7rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .trust-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .prequalified-amount {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles for Letter */
@media print {
    .header,
    .hero,
    .progress-container,
    .trust-section,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .form-wrapper {
        box-shadow: none;
        padding: 0;
    }
    
    .results-container {
        padding: 40px;
    }
}
