/* Mortgage Lead Wizard - Main Styles */

.mlw-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mlw-wizard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
}

/* Progress Bar */
.mlw-progress-container {
    margin-bottom: 40px;
}

.mlw-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mlw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    width: 0%;
}

.mlw-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Slides */
.mlw-slide {
    display: none;
    animation: slideIn 0.3s ease;
}

.mlw-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mlw-slide-header {
    text-align: center;
    margin-bottom: 40px;
}

.mlw-slide-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.mlw-slide-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Button Grid */
.mlw-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mlw-option-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mlw-option-btn:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.mlw-option-btn.selected {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #fff;
}

.mlw-icon {
    font-size: 32px;
}

/* Slider */
.mlw-slider-container {
    margin: 40px 0;
    text-align: center;
}

.mlw-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

.mlw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.mlw-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.mlw-slider-value {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
}

/* Form Inputs */
.mlw-form-container {
    margin: 30px 0;
}

.mlw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mlw-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mlw-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.mlw-input.error {
    border-color: #f44336;
}

/* Contact Method Radio */
.mlw-contact-method {
    margin-top: 20px;
}

.mlw-contact-method label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.mlw-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mlw-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mlw-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.mlw-button-container {
    text-align: center;
    margin-top: 30px;
}

.mlw-next-btn,
.mlw-submit-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mlw-next-btn:hover,
.mlw-submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.mlw-next-btn:active,
.mlw-submit-btn:active {
    transform: translateY(0);
}

.mlw-back-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.mlw-back-btn:hover {
    color: #333;
}

/* Skip Button */
.mlw-skip-btn {
    background: transparent;
    color: #999;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.mlw-skip-btn:hover {
    color: #666;
}

/* Success Icon */
.mlw-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Confirmation Buttons */
.mlw-confirmation-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mlw-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    border: none;
}

.mlw-btn-primary {
    background: #4CAF50;
    color: #fff;
}

.mlw-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mlw-btn-secondary {
    background: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.mlw-btn-secondary:hover {
    background: #f0f8f0;
    transform: translateY(-2px);
}

.mlw-btn-call {
    background: #2196F3;
    color: #fff;
}

.mlw-btn-call:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Loading State */
.mlw-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.mlw-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .mlw-wizard {
        padding: 30px 20px;
    }

    .mlw-slide-header h2 {
        font-size: 24px;
    }

    .mlw-button-grid {
        grid-template-columns: 1fr;
    }

    .mlw-form-row {
        grid-template-columns: 1fr;
    }

    .mlw-slider-value {
        font-size: 28px;
    }

    .mlw-confirmation-buttons {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .mlw-container {
        padding: 10px;
        margin: 20px auto;
    }

    .mlw-wizard {
        padding: 20px 15px;
    }

    .mlw-slide-header h2 {
        font-size: 20px;
    }

    .mlw-option-btn {
        padding: 15px;
    }

    .mlw-next-btn,
    .mlw-submit-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* === UI Tweaks for Readability === */

/* Slightly larger base font inside wizard */
.mlw-wizard {
    font-size: 16px;
}

/* Make main questions a bit bigger */
.mlw-slide-header h2 {
    font-size: 26px;
}

/* Ensure selected option text is always readable */
.mlw-option-btn.selected {
    color: #ffffff;
}
/* FORCE readable text everywhere */
#mlw-wizard,
#mlw-wizard * {
    color: #1a1a1a !important;
}

/* Larger headers */
.mlw-slide-header h2 {
    font-size: 28px !important;
    color: #0b1621 !important;
}

/* Larger normal text */
.mlw-slide-header p,
.mlw-option-item,
.mlw-option-btn,
.mlw-option-card,
.mlw-contact-option,
.mlw-text-input,
.mlw-zip-input {
    font-size: 17px !important;
}

