/* Buying Zone Calculator Styles */

/* Open Button */
.bzc-open-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bzc-open-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Custom Checkbox Styling */
.bzc-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    user-select: none;
}

.bzc-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.bzc-checkbox-custom {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin-right: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bzc-checkbox-wrapper:hover .bzc-checkbox-custom {
    border-color: #667eea;
}

.bzc-checkbox-wrapper input[type="checkbox"]:checked ~ .bzc-checkbox-custom {
    background-color: #10b981;
    border-color: #10b981;
}

.bzc-checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.bzc-checkbox-wrapper input[type="checkbox"]:checked ~ .bzc-checkbox-custom:after {
    display: block;
}

.bzc-checkbox-wrapper input[type="checkbox"]:focus ~ .bzc-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Restart Dropdown Menu */
.bzc-restart-wrapper {
    position: relative;
    display: inline-block;
}

.bzc-restart-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10000;
}

.bzc-restart-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bzc-restart-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.bzc-restart-menu-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bzc-restart-menu-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.bzc-restart-menu-item:hover {
    background: #f8f9fa;
}

.bzc-restart-menu-item.danger:hover {
    background: #fee;
    color: #c00;
}

/* Modal Overlay */
.bzc-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* When financing popup is open, ensure BZ is behind it */
body.hq-popup-open .bzc-panel,
body.mhf-popup-open .bzc-panel {
    z-index: 99998 !important;
}

body.hq-popup-open .bzc-modal-footer,
body.mhf-popup-open .bzc-modal-footer {
    display: none !important;
    pointer-events: none !important;
}

/* Hide GHL chat widget when buyzone popup is open */
.bzc-panel.active ~ #lc_text-widget--btn,
body.bzc-panel-open #lc_text-widget--btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.bzc-panel.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content - copy from registration popup */
.bzc-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.bzc-panel.active .bzc-modal-content {
    transform: translateY(0);
}

/* Form Styling */
.bzc-panel h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.bzc-panel h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

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

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

.bzc-form-group input,
.bzc-form-group select {
    width: 100%;
    padding: 12px;
    border: 0px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.5;
}

.bzc-form-group select {
    padding: 12px 30px 12px 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.bzc-form-group input:focus,
.bzc-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bzc-form-group input.error {
    border-color: #e74c3c;
}

.bzc-form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

/* Real Range Sliders */
.bzc-range-group {
    margin-bottom: 10px;
}

.bzc-range-group > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    pointer-events: none;
}

.bzc-range-group > label > span {
    pointer-events: auto;
}

/* Compact Slider Layout */
.bzc-compact-slider {
    margin-bottom: 20px;
}

.bzc-compact-slider > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    pointer-events: none;
}

.bzc-compact-slider > label > span {
    pointer-events: auto;
}

.bzc-compact-slider input[type="range"] {
    margin: 0;
}

.bzc-range-wrapper {
    position: relative;
    clear: both;
}

.bzc-range-wrapper input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.bzc-range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #888;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transition: background 0.2s;
}

.bzc-range-wrapper input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #888;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transition: background 0.2s;
}

.bzc-range-wrapper input[type="range"].touched::-webkit-slider-thumb {
    background: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.bzc-range-wrapper input[type="range"].touched::-moz-range-thumb {
    background: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.bzc-range-wrapper input[type="range"]:active::-webkit-slider-thumb {
    background: #764ba2;
    cursor: grabbing;
}

.bzc-range-wrapper input[type="range"]:active::-moz-range-thumb {
    background: #764ba2;
    cursor: grabbing;
}

/* Enhanced Slider with Larger Thumbs */
.bzc-slider-enhanced {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 13px 0;
    padding: 0;
    --slider-percentage: 0%;
}

.bzc-slider-enhanced:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.bzc-slider-enhanced::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #888;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 0;
    transform: translateY(-13px);
    z-index: 10;
    transition: all 0.2s ease;
}

.bzc-slider-enhanced::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #888;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
}

.bzc-slider-enhanced.touched::-webkit-slider-thumb {
    background: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.bzc-slider-enhanced.touched::-moz-range-thumb {
    background: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.bzc-slider-enhanced:active::-webkit-slider-thumb {
    background: #764ba2;
    transform: translateY(-13px);
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.5);
}

.bzc-slider-enhanced:active::-moz-range-thumb {
    background: #764ba2;
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.5);
}

.bzc-slider-enhanced::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, #667eea 0%, #667eea var(--slider-percentage, 0%), #e0e0e0 var(--slider-percentage, 0%), #e0e0e0 100%);
    border-radius: 3px;
}

.bzc-slider-enhanced::-moz-range-track {
    height: 6px;
    background: linear-gradient(to right, #667eea 0%, #667eea var(--slider-percentage, 0%), #e0e0e0 var(--slider-percentage, 0%), #e0e0e0 100%);
    background: #e0e0e0;
    border-radius: 3px;
}

.bzc-range-value {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

.bzc-range-value.untouched {
    color: #999 !important;
}

/* Buttons */
.bzc-next-btn,
.bzc-back-btn,
.bzc-calculate-btn,
.bzc-submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.bzc-next-btn,
.bzc-calculate-btn,
.bzc-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bzc-next-btn:hover,
.bzc-calculate-btn:hover,
.bzc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bzc-back-btn {
    background: #f0f0f0;
    color: #333;
    margin-right: 10px;
}

.bzc-back-btn:hover {
    background: #e0e0e0;
}

.bzc-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.bzc-action-buttons {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.bzc-apply-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px);
}

.bzc-save-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Results Section */
.bzc-result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.bzc-result-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.bzc-result-comparison {
    font-size: 18px;
    opacity: 0.95;
}

.bzc-result-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.bzc-result-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

#bzc-calculation-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

#bzc-calculation-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 15px;
}

#bzc-calculation-details li:last-child {
    border-bottom: none;
}

#bzc-calculation-details li.bzc-breakdown {
    border-bottom: none;
    padding-top: 15px;
}

#bzc-calculation-details li.bzc-breakdown ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

#bzc-calculation-details li.bzc-breakdown ul li {
    padding: 5px 0;
    border-bottom: none;
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 640px) {
    .bzc-panel {
        padding: 0 !important;
        align-items: flex-start !important;
    }
    
    .bzc-modal-content {
        margin: 0 !important;
        max-height: 100vh !important;
        height: 100dvh !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .bzc-panel-content {
        padding: 20px;
    }
    
    /* Zip code field - remove max-width on mobile */
    .bzc-form-group[style*="max-width: 50%"] {
        max-width: 100% !important;
    }
    
    .bzc-form-group small {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .bzc-result-amount {
        font-size: 36px;
    }
    
    .bzc-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .bzc-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .bzc-back-btn {
        margin-right: 0;
        margin-bottom: 0;
        order: -1;
    }
    
    .bzc-apply-btn,
    .bzc-save-browse-btn {
        width: 100% !important;
        text-align: center;
    }
    
    /* New steps responsive design */
    .bzc-apply-steps {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .bzc-save-options {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .bzc-apply-summary,
    .bzc-save-summary {
        padding: 20px !important;
    }
    
    .bzc-apply-summary div,
    .bzc-save-summary div {
        font-size: 28px !important;
    }
    
    /* Mobile header adjustments */
    .bzc-modal-header {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 10px 15px;
    }
    
    .bzc-header-left {
        min-width: 0;
    }
    
    /* Hide back button on step 1, show on step 2+ */
    .bzc-header-back {
        min-width: 32px;
    }
    
    /* On mobile, hide left column when back button is not visible */
    .bzc-modal-header:has(.bzc-header-back[style*="visibility: hidden"]) {
        grid-template-columns: 1fr auto;
    }
    
    .bzc-modal-header:has(.bzc-header-back[style*="visibility: hidden"]) .bzc-header-left {
        display: none;
    }
    
    .bzc-modal-header:has(.bzc-header-back[style*="visibility: hidden"]) .bzc-header-center {
        justify-content: flex-start;
    }
    
    .bzc-header-logo {
        height: 18px;
    }
    
    .bzc-modal-header h2 {
        font-size: 16px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Body class when panel is open */
body.bzc-panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Loading State */
.bzc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: bzc-spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Tooltip */
.bzc-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

/* Info Icon - don't interfere with slider */
.bzc-info-icon {
    pointer-events: auto;
    display: inline-block;
    margin-left: 5px;
}

.bzc-info-tooltip {
    pointer-events: auto;
}

.bzc-tooltip:before {
    content: "?";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
}

.bzc-tooltip .bzc-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

.bzc-tooltip:hover .bzc-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Success Message */
.bzc-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.bzc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Buying Power Modal Specific Styles */
/* Sticky Header - Simplified Flexbox Layout */
.bzc-modal-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 0px solid #e0e0e0;
    background: white;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
    gap: 10px;
}

.bzc-header-left {
    display: flex;
    justify-content: flex-start;
}

.bzc-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bzc-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bzc-header-logo {
    height: 20px;
    display: block;
}

.bzc-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

.bzc-header-back {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #667eea;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.bzc-header-back:hover {
    color: #4c63d2;
}

.bzc-restart {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.bzc-restart:hover {
    color: #667eea;
    transform: rotate(-30deg);
}

.bzc-close {
    background: transparent;
    border: none;
    font-size: 54px;
    line-height: 0;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.bzc-close:hover {
    color: #e74c3c;
}

/* Scrollable Content - exact copy from registration popup */
.bzc-modal-content-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 30px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.bzc-modal-content-scrollable h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
}

/* Sticky Footer - exact copy from registration popup */
.bzc-modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.bzc-modal-footer .bzc-btn-back {
    background: #f0f0f0;
    color: #333;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.bzc-modal-footer .bzc-btn-back:hover {
    background: #e0e0e0;
}

.bzc-modal-footer .bzc-btn-back {
    background: #f0f0f0;
    color: #333;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
}

.bzc-modal-footer .bzc-btn-back:hover {
    background: #e0e0e0;
}

.bzc-modal-footer .bzc-btn-primary {
    flex: 1;
    width: 100%;
    margin: 0;
    background: #4CAF50;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
    position: relative;
}

.bzc-modal-footer .bzc-btn-primary:not(:disabled):hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.bzc-modal-footer .bzc-btn-primary.bzc-btn-disabled {
    background: #ccc;
    cursor: pointer;
    opacity: 0.6;
}

.bzc-modal-footer .bzc-btn-secondary {
    background: #007bff;
    color: white;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bzc-modal-footer .bzc-btn-secondary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.bzc-modal-footer .bzc-btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Radio groups - match registration popup */
.bzc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bzc-radio-group label {
    flex: 1 1 auto;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border: 3px solid #ddd;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
    transition: all 0.3s;
    background: white;
    box-sizing: border-box;
}

.bzc-radio-group label:hover {
    border-color: #4CAF50;
    background: #f8fdf8;
}

.bzc-radio-group label:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background: #e8f5e9;
    color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.bzc-radio-group input[type="radio"] {
    display: none;
}

.bzc-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.bzc-slide {
    display: none;
}

.bzc-slide.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: slideIn 0.3s ease-in-out;
}

.bzc-slide#bzc-slide-1,
.bzc-slide#bzc-slide-2 {
    padding: 0;
}

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

/* Form Groups - match registration popup */
.bzc-form-group label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bzc-form-group .required {
    color: #e74c3c;
}

.bzc-form-group input[type="text"],
.bzc-form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#location_zip {
    font-size: 17px;
}

.bzc-form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.bzc-form-row .bzc-form-group {
    margin-bottom: 0;
}

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

.bzc-input-prefix {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: 500;
    z-index: 2;
}

.bzc-input-suffix {
    position: absolute;
    right: 12px;
    color: #666;
    font-size: 14px;
}

.bzc-input-with-prefix {
    padding-left: 25px !important;
}

.bzc-input-with-suffix {
    padding-right: 60px !important;
}

/* Info Icon */
.bzc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    position: relative;
}

.bzc-info-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.bzc-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* Progress Bar */
.bzc-progress-container {
    margin: 0 0 25px 0;
}

.bzc-progress-bar {
    width: 100%;
    height: 12px;
    background: #e8f1ff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bzc-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 0%;
    transition: width 2s ease;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.bzc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.bzc-range-group.incomplete {
    animation: shake 0.5s;
}

.bzc-range-group.incomplete .bzc-range-wrapper input[type="range"]::-webkit-slider-thumb {
    background: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}

.bzc-range-group.incomplete .bzc-range-wrapper input[type="range"]::-moz-range-thumb {
    background: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}

.bzc-form-group.incomplete {
    animation: shake 0.5s;
}

.bzc-form-group.incomplete input {
    border-color: #e74c3c !important;
    border-width: 2px !important;
}

.bzc-form-group.incomplete label {
    color: #e74c3c !important;
}

/* Incomplete styles for compact sliders */
.bzc-compact-slider.incomplete {
    animation: shake 0.5s;
}

.bzc-compact-slider.incomplete .bzc-slider-enhanced::-webkit-slider-thumb {
    background: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}

.bzc-compact-slider.incomplete .bzc-slider-enhanced::-moz-range-thumb {
    background: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}

.bzc-compact-slider.incomplete .bzc-range-value {
    color: #e74c3c !important;
}

.bzc-compact-slider.incomplete label {
    color: #e74c3c !important;
}

.bzc-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Results Display */
.bzc-price-display {
    text-align: center;
    margin: 30px 0 20px 0;
}

.bzc-price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.bzc-price-subtitle {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* Loan Details Section */
.bzc-loan-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.bzc-loan-details h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border: none;
    padding: 0;
}

.bzc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.bzc-detail-label {
    font-weight: 500;
    color: #555;
}

.bzc-detail-value {
    font-weight: 600;
    color: #333;
}

/* Button Styling Updates */
.bzc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.bzc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.bzc-btn-secondary {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.bzc-btn-secondary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.bzc-btn-back {
    background: none;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.bzc-btn-back:hover {
    color: #4c63d2;
}

.bzc-btn-back-header {
    background: none;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    border-radius: 8px;
}

.bzc-btn-back-header svg {
    transition: transform 0.3s ease;
}

.bzc-btn-back-header:hover {
    color: #4c63d2;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-2px);
}

.bzc-btn-back-header:hover svg {
    transform: translateX(-2px);
}

/* Third Slide Styling */
.bzc-form-row-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Slider Styles - compact horizontal layout for all sliders */
.bzc-credit-slider-group,
.bzc-slider-group {
    margin-bottom: 20px;
}

.bzc-credit-slider-wrapper,
.bzc-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bzc-credit-slider-wrapper > label,
.bzc-slider-wrapper > label {
    margin: 0;
    white-space: nowrap;
    min-width: 140px;
    max-width: 140px;
}

.bzc-credit-slider,
.bzc-slider {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 5px;
    flex: 1;
    pointer-events: none;
}

.bzc-credit-slider label,
.bzc-slider label {
    pointer-events: auto;
}

.bzc-credit-slider input[type="radio"],
.bzc-slider input[type="radio"] {
    display: none;
}

.bzc-credit-slider label,
.bzc-slider label {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.bzc-score-dot,
.bzc-slider-dot {
    width: 14px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.bzc-score-label,
.bzc-slider-label {
    position: absolute;
    top: -24px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bzc-credit-slider input[type="radio"]:checked + label .bzc-score-dot,
.bzc-slider input[type="radio"]:checked + label .bzc-slider-dot {
    background: #4CAF50;
    border-color: #4CAF50;
    width: 16px;
    height: 22px;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.bzc-credit-slider input[type="radio"]:checked + label .bzc-score-label,
.bzc-slider input[type="radio"]:checked + label .bzc-slider-label {
    color: #4CAF50;
    font-weight: 700;
}

.bzc-score-track,
.bzc-slider-track {
    position: absolute;
    top: 26px;
    left: 16.66%;
    right: 16.66%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.bzc-score-progress,
.bzc-slider-progress {
    position: absolute;
    top: 26px;
    left: 16.66%;
    height: 3px;
    background: #4CAF50;
    z-index: 1;
    transition: width 0.3s ease;
    width: 0;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .bzc-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .bzc-modal-header {
        padding: 15px 20px;
        padding-bottom: 0;
    }
    
    .bzc-modal-header h2 {
        font-size: 20px;
    }
    
    .bzc-modal-content-scrollable {
        padding: 20px;
    }
    
    .bzc-modal-footer {
        padding: 12px 20px;
    }
    
    /* Stack sliders vertically on mobile */
    .bzc-credit-slider-wrapper,
    .bzc-slider-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bzc-credit-slider-wrapper > label,
    .bzc-slider-wrapper > label {
        min-width: 100%;
        max-width: 100%;
    }
    
    .bzc-credit-slider,
    .bzc-slider {
        width: 100%;
    }
    
    .bzc-form-row,
    .bzc-form-row-name {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bzc-price-amount {
        font-size: 36px;
    }
    
    .bzc-modal-title {
        font-size: 24px;
    }
    
    .bzc-info-tooltip {
        max-width: 250px;
        left: -120px;
        transform: none;
    }
    
    .bzc-btn-back-header {
        font-size: 14px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .bzc-btn-back-header svg {
        width: 14px;
        height: 14px;
    }
}

/* Small mobile - stack radio groups */
@media (max-width: 500px) {
    .bzc-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .bzc-radio-group label {
        width: 100%;
    }
}
