/* Additional CSS for new steps */

/* Modal Step Visibility */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Yes/No Card Icons */
.yes-no-card .yes-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.yes-no-card .no-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* Price Input */
.price-input-container, .income-input-container {
    max-width: 400px;
    margin: 0 auto;
}

.dollar-sign-input .input-group {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.dollar-sign-input .input-group-text {
    font-size: 20px;
    font-weight: bold;
    color: #495057;
    border: none;
    height: 40px;
    display: flex;
    align-items: center;
}

.price-input, .income-input {
    font-size: 20px !important;
    font-weight: bold;
    border: none !important;
    box-shadow: none !important;
    height: 40px;
}

/* ZIP Code Input */
.zip-input {
    height: 40px !important;
    font-size: 18px !important;
    text-align: center;
}

.zip-input-wrapper {
    max-width: 200px;
    margin: 0 auto;
    position: relative;
}

.btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Contact Form Inputs */
#fullName, #email, #phone {
    height: 40px !important;
    font-size: 14px !important;
}

/* General Form Controls */
.form-control {
    min-height: 40px;
}

.form-control-lg {
    min-height: 40px;
}

/* Credit Score Cards */
.credit-score-grid {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.credit-score-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 11px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.credit-score-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.credit-score-card.selected {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.credit-score-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.credit-score-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

/* Simple Badge Colors */
.credit-score-badge.excellent {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.credit-score-badge.very-good {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.credit-score-badge.good {
    background: #cce7ff;
    color: #004085;
    border-color: #b3d7ff;
}

.credit-score-badge.fair {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.credit-score-badge.poor {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.credit-score-badge.very-poor {
    background: #f5c6cb;
    color: #721c24;
    border-color: #f1b0b7;
}

/* Percentage Badge */
.percentage-badge {
    margin-top: 10px;
}

.percentage-badge .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Rate Card */
.rate-card {
    border: 2px solid #007bff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.15);
}

.rate-card .rate-badge .badge {
    font-size: 24px;
    padding: 10px 20px;
    border-radius: 30px;
}

/* Progress Bar Container */
.progress-bar-container {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 15px;
    margin: 15px 0 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Progress Bar Enhancements */
.progress-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease;
    background: black;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Progress Steps */
#progressSteps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 5px 0 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    gap: 0;
    padding: 0 10px;
}

#progressSteps::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 30px;
    padding: 2px 5px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: #e9ecef;
    z-index: -1;
}

.progress-step.completed:not(:last-child)::after,
.progress-step.active:not(:last-child)::after {
    background-color: #112f5e;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-step.active .step-circle {
    background-color: #112f5e;
    color: white;
    border-color: #112f5e;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.3);
}

.progress-step.completed .step-circle {
    background-color: #112f5e;
    color: white;
    border-color: #112f5e;
}

.step-label {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 5px;
    line-height: 1.2;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #112f5e;
    font-weight: 600;
}

/* Step dots indicator */
.step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    padding: 0 5px;
    margin-top: 15px;
}

/* Hide the separate percentage display since it's now in the progress bar */
.step-percentage {
    display: none;
}

/* Mobile Responsiveness for Credit Score Cards */
@media (max-width: 767px) {
    .credit-score-grid {
        max-height: none;
        overflow-y: visible;
        padding: 5px 0;
    }
    
    .credit-score-card {
        min-height: 90px;
        padding: 15px 10px;
        border-radius: 6px;
    }
    
    .credit-score-badge {
        font-size: 9px;
        padding: 6px 12px;
        border-radius: 4px;
    }
    
    .credit-score-card p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .credit-score-grid {
        padding: 3px 0;
    }
    
    .credit-score-card {
        min-height: 80px;
        padding: 12px 8px;
        border-radius: 4px;
    }
    
    .credit-score-badge {
        font-size: 8px;
        padding: 5px 10px;
        border-radius: 3px;
    }
    
    .credit-score-card p {
        font-size: 11px;
    }
}