/* Quick Quote Compact Form Styles */

/* Dual Field Container Layout */
.dual-field-container {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 16px;
    margin-bottom: 16px;
}

.readonly-field-container,
.custom-field-container {
    display: flex;
    flex-direction: column;
}

/* Hide readonly display fields */
.readonly-field-container {
    display: none !important;
}

/* Remove custom label styling */
.custom-field-container .form-label {
    display: none !important;
}

.readonly-display {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    font-weight: 600 !important;
}

.readonly-display:focus {
    border-color: #e9ecef !important;
    box-shadow: none !important;
    background-color: #f8f9fa !important;
}

/* Quick Quote Section - Remove overall padding and body spacing */
body {
    margin: 0;
    padding: 0;
}

#quote-section-calculator {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.container-card {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Calculator Card Styling */
.calculator-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    margin: 0;
    border: none;
}

/* Form Control Styling - 20px font size for all inputs and placeholders */
.calculator-card .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 20px !important;
    transition: all 0.2s ease;
    background: #f9fafb;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.calculator-card .form-control:focus {
    border-color: #0037da;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1);
}

.calculator-card .form-control::placeholder {
    color: #6b7280;
    font-weight: 500;
    font-size: 20px !important;
}

/* Select Dropdown Styling */
.calculator-card select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    font-size: 20px !important;
}

/* Disabled option styling */
.calculator-card select.form-control option[disabled] {
    color: #6b7280;
    font-style: italic;
    font-size: 20px;
}

/* Checkbox Styling */
.calculator-card .form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calculator-card .form-check:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.calculator-card .form-check:has(input:checked) {
    border-color: #0037da;
    background: rgba(0, 55, 218, 0.05);
}

.calculator-card .form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
}

.calculator-card .form-check-input:checked {
    background-color: #0037da;
    border-color: #0037da;
}

.calculator-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1);
}

.calculator-card .form-check-label {
    font-weight: 500;
    color: #374151;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 20px;
}

/* Down Payment Section */
.calculator-card .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Down Payment Section - Unified Card Design */
.down-payment-compact-box {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

/* Down Payment Selector Container */
.down-payment-selector-container {
    width: 100%;
    box-sizing: border-box;
}

/* Down Payment Amount Display - 20px font size */
.down-payment-compact-box .amount-input,
.down-payment-amount-display .amount-input {
    font-size: 20px !important;
    font-weight: 600;
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    width: 100%;
    text-align: center;
    color: #0241da;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    min-height: 20px;
    display: block;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.down-payment-amount-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.down-payment-label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    font-size: 16px;
}

.down-payment-compact-box .amount-input::placeholder,
.down-payment-amount-display .amount-input::placeholder {
    font-size: 20px !important;
    color: #6b7280;
    font-weight: 500;
}

.down-payment-compact-box .amount-input:focus,
.down-payment-amount-display .amount-input:focus {
    border: 2px solid #0037da;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1);
}

/* Down Payment Preset Buttons - Horizontal Scrollable */
.preset-buttons {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
    margin: 0;
    padding: 0;
}

.preset-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.preset-buttons .d-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 4px 0;
    min-width: max-content;
    width: 100%;
    justify-content: flex-start;
}

/* Override Bootstrap flex-wrap for preset buttons */
.preset-buttons .d-flex.flex-wrap {
    flex-wrap: nowrap !important;
}

.down-payment-compact-box .preset-btn {
    font-size: 16px !important;
    padding: 10px 16px !important;
    min-width: 60px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #0237da;
    transition: all 0.2s ease;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.down-payment-compact-box .preset-btn:hover {
    background: #0037da;
    color: white;
}

.down-payment-compact-box .preset-btn.active {
    background: #10b981;
    color: white;
}

/* Enhanced LTV and Loan Types Display */
.ltv-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Clean, Modern Slider Container */
.slider-container {
    margin-top: 16px;
}

.slider-value-display {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: none;
    color: #0037da;
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: none;
    display: block;
    width: 100%;
    /* border: 1px solid #e5e7eb; */
    min-width: auto;
}

.slider-value-display span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Clean, Solid Slider Design - Override conflicting styles */
.enhanced-slider {
    width: 100% !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: #e5e7eb !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.enhanced-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #0037da !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    transition: all 0.2s ease !important;
}

.enhanced-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.enhanced-slider::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #0037da !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    transition: all 0.2s ease !important;
}

.enhanced-slider::-moz-range-thumb:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.enhanced-slider::-webkit-slider-track {
    background: #e5e7eb !important;
    border-radius: 4px !important;
    height: 8px !important;
    border: none !important;
    box-shadow: none !important;
}

.enhanced-slider::-moz-range-track {
    background: #e5e7eb !important;
    border-radius: 4px !important;
    height: 8px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dynamic track coloring based on slider value */
/* Floating guided nav near active control */
.qq-floating-guided-nav {
    position: fixed;
    z-index: 1055; /* above content, below modals if any */
    pointer-events: auto;
    background-color: #ffffff;
}
.qq-floating-guided-nav .btn-group .btn {
    border-radius: 9999px !important;
    padding: 6px 10px;
}
.qq-floating-guided-nav .btn-group .btn i {
    pointer-events: none;
}
@media (max-width: 576px) {
    .qq-floating-guided-nav .btn-group .btn {
        padding: 8px 12px;
    }
}
.enhanced-slider::-webkit-slider-runnable-track {
    background: #e5e7eb !important;
    height: 8px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override any conflicting styles from main CSS */
.down-payment-compact-box .enhanced-slider {
    height: 8px !important;
    background: #e5e7eb !important;
    border: none !important;
    box-shadow: none !important;
}

.down-payment-compact-box .slider-container {
    margin-top: 15px;
}

.down-payment-compact-box .slider-value-display {
    /* margin-bottom: 12px !important; */
    font-size: 24px !important;
    /* padding: 8px 16px !important; */
    /* background: #f8f9fa !important; */
    /* color: #0037da !important; */
    /* border-radius: 8px !important; */
    /* font-weight: 700 !important; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; */
    /* display: block !important; */
    /* width: 100% !important; */
    /* text-align: center !important; */
    /* min-width: auto !important; */
    /* border: 1px solid #e5e7eb !important; */
}

.summary-card {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    line-height: 1.2;
}

.summary-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0037da !important;
    line-height: 1.2;
}

/* LTV and Loan Programs Styling */
#CQ_LTV,
#CQ_LoanTypes {
    font-weight: 700 !important;
    color: #0037da !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.2;
}

/* LTV and Loan Programs Grid - Side by Side */

.summary-card {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 0;
}

.summary-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    line-height: 1.2;
}

.summary-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0037da !important;
    line-height: 1.2;
}

/* Summary card styling for better visual hierarchy */
.summary-card .summary-value {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #0037da !important;
}

.summary-card .summary-title {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dual-field-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Ensure custom field takes full width on mobile */
    .custom-field-container {
        width: 100%;
    }
    
    .calculator-card {
        padding: 16px;
        margin: 0;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .calculator-card .form-control {
        padding: 16px 14px;
        font-size: 20px !important;
    }
    
    .calculator-card .form-check {
        padding: 14px 16px;
    }
    
    .calculator-card .form-check-input {
        width: 22px;
        height: 22px;
    }
    
    .calculator-card .form-check-label {
        font-size: 20px;
    }
    
    /* Down Payment Mobile Fixes */
    .down-payment-compact-box {
        padding: 16px;
        margin: 0 0 16px 0;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
        position: relative;
    }
    
    .down-payment-selector-container {
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .down-payment-compact-box .amount-input,
    .down-payment-amount-display .amount-input {
        font-size: 20px !important;
        padding: 14px 16px !important;
    }
    
    .preset-buttons {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .preset-buttons .d-flex {
        width: 100%;
        justify-content: flex-start;
        padding: 8px 0;
        gap: 6px;
        flex-wrap: nowrap !important;
    }
    
    .down-payment-compact-box .preset-btn {
        font-size: 16px !important;
        padding: 8px 12px !important;
        min-width: 50px;
        flex-shrink: 0;
        white-space: nowrap;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .down-payment-compact-box .slider-value-display {
        font-size: 20px !important;
        padding: 10px 16px !important;
    }
    
    .ltv-types-grid {
        gap: 12px;
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }
    
    .summary-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .summary-title {
        font-size: 18px !important;
    }
    
    .summary-value {
        font-size: 20px !important;
    }
    
    #CQ_LoanTypes {
        font-size: 20px !important;
    }
    span#CQ_LTV {
        font-size: 30px !important;
    }
}

/* Enhanced Quick Quote Font Improvements */
.quick-quote-tabs .calculator-card {
    font-size: 20px;
}

.quick-quote-tabs .calculator-card .form-control {
    font-size: 20px !important;
    padding: 12px !important;
    min-height: 48px;
    line-height: 1.4;
}

.quick-quote-tabs .calculator-card select.form-control {
    font-size: 20px !important;
    padding: 12px !important;
}

.quick-quote-tabs .calculator-card input[type="tel"],
.quick-quote-tabs .calculator-card input[type="text"],
.quick-quote-tabs .calculator-card input[type="date"],
.quick-quote-tabs .calculator-card input[type="time"] {
    font-size: 20px !important;
    padding: 12px !important;
    border-radius: 6px;
}

.quick-quote-tabs .calculator-card .btn {
    font-size: 16px !important;
    padding: 12px 24px !important;
    font-weight: 600;
}

.quick-quote-tabs .calculator-card .enhanced-slider {
    height: 8px !important;
}

.quick-quote-tabs .calculator-card .slider-value-display span {
    font-size: 16px !important;
    font-weight: 600;
}

.quick-quote-tabs .calculator-card .preset-btn {
    font-size: 16px !important;
    padding: 8px 16px !important;
    min-width: 60px;
}

.quick-quote-tabs .calculator-card .amount-input {
    font-size: 20px !important;
    font-weight: 600;
    padding: 12px !important;
}

.quick-quote-tabs .calculator-card .amount-input::placeholder {
    font-size: 20px !important;
    color: #6b7280;
    font-weight: 500;
}

.quick-quote-tabs .calculator-card .summary-title {
    font-size: 14px !important;
    font-weight: 600;
}

.quick-quote-tabs .calculator-card .summary-value {
    font-size: 18px !important;
    font-weight: 600;
}

/* Mobile specific improvements */
@media (max-width: 767px) {
    .quick-quote-tabs .calculator-card .form-control {
        font-size: 20px !important;
        padding: 14px !important;
        min-height: 52px;
    }
    
    .quick-quote-tabs .calculator-card .amount-input {
        font-size: 20px !important;
    }
    
    .quick-quote-tabs .calculator-card .btn {
        font-size: 18px !important;
        padding: 14px 28px !important;
    }
    
    .quick-quote-tabs .calculator-card .preset-btn {
        font-size: 16px !important;
    }
}

/* Removed Quick Quote loan options holder/card overrides to avoid conflicts. */

@media (min-width: 768px) {
    .calculator-card {
        max-width: 768px;
    }
   
}

/* ===== MOBILE STYLES FOR QUICK QUOTE ===== */

/* Mobile Tab Navigation */
@media (max-width: 768px) {
    .tab-nav {
        background: #0037da;
        border-radius: 0;
        padding: 0;
        gap: 0;
        margin: 0 -16px 20px -16px;
        display: flex;
        width: calc(100% + 32px);
    }
    
    .tab-btn {
        flex: 1;
        padding: 16px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        font-size: 18px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .tab-btn.active {
        background: rgba(255, 255, 255, 0.9);
        color: #0037da !important;
    }
    
    
    /* Bottom spacing to prevent navigation overlap */
    .container-card {
        padding-bottom: 120px;
    }
    
    .tab-content {
        padding-bottom: 100px;
    }
    
    #summary-section {
        padding-bottom: 100px;
    }
    
    .recent-quotes-container {
        padding-bottom: 100px;
    }
    
    #loan-option-holder-cq {
        padding-bottom: 100px;
    }
    
    /* Extra small screens */
    @media (max-width: 576px) {
        .container-card {
            padding-bottom: 140px;
        }
        
        .tab-content {
            padding-bottom: 120px;
            /* padding: 10px; */
        }
        
        #summary-section {
            padding-bottom: 120px;
            padding: 15px;
        }
        
        .recent-quotes-container {
            padding-bottom: 120px;
        }
        
        #loan-option-holder-cq {
            padding-bottom: 120px;
        }
    }
}

/* ===== RECENT QUOTES STYLES ===== */

/* Recent Quote Cards */
.recent-quote-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.recent-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    /*background: linear-gradient(135deg, #0037da, #002ca3);*/
    background: #f3f4f6;
    color: #000;
    border-bottom: none;
}

.recent-quote-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.recent-quote-date {
    font-size: 14px;
    opacity: 0.9;
    color: #000;
}

.recent-quote-content {
    padding: 20px 24px;
}

.recent-quote-summary,
.quote-details-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recent-quote-summary .summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    text-align: left;
}

.recent-quote-summary .summary-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.recent-quote-summary .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.recent-quote-actions {
    display: flex;
    gap: 12px;
}

.recent-quote-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-quote-actions .btn-primary {
    background: #0037da;
    color: white;
    border-color: #0037da;
}

.recent-quote-actions .btn-primary:hover {
    background: #002ca3;
    border-color: #002ca3;
    transform: translateY(-1px);
}

.recent-quote-actions .btn-outline-primary {
    background: white;
    color: #0037da;
    border-color: #0037da;
}

.recent-quote-actions .btn-outline-primary:hover {
    background: #0037da;
    color: white;
    transform: translateY(-1px);
}

.recent-quote-actions .btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.recent-quote-actions .btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

/* ===== SUMMARY CARD STYLES ===== */

.summary-card-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.summary-card-header {
    padding: 16px;
    background: #ffffff;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.summary-card-header .summary-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.summary-card-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.edit-quote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.summary-content {
    padding: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 16px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-left: 12px;
}

.summary-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.summary-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Quick Quote Summary Action Buttons */
.quick-quote-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.9;
}

.quick-quote-edit-btn:hover {
    opacity: 1;
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-quote-edit-btn:focus {
    outline: none;
    opacity: 1;
}

.quick-quote-new-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.9;
}

.quick-quote-new-btn:hover {
    opacity: 1;
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-quote-new-btn:focus {
    outline: none;
    opacity: 1;
}

/* ===== LOAN OPTIONS STYLES ===== */

/* Removed loan options card structure styles from quick-quote to avoid conflicts. */

/* .savings-row {
    background: linear-gradient(135deg, #0037da, #002ca3);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.savings-detail {
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.savings-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.savings-value {
    font-size: 22px;
    font-weight: 700;
} */

/* Removed loan options expanded details styles from quick-quote to avoid conflicts. */

/* Removed generic view-details overrides to avoid conflicts with loan options page. */

/* Continue Application Button */
.continue-application-btn {
    background: linear-gradient(135deg, #0037da, #002ca3);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 55, 218, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.continue-application-btn:hover {
    background: linear-gradient(135deg, #002ca3, #001d72);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 55, 218, 0.4);
}

.view-details:hover {
    /* background: #000000; */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(35 70 222 / 40%);
    COLOR: RED;
    color: #0032c6;
}

.toggle-loan-options-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* ===== RECENT QUOTE DETAILS ===== */

.recent-quote-details {
    border-top: 2px solid #e5e7eb;
    background: #f8f9fa;
    padding: 20px;
    margin-top: 16px;
    border-radius: 0 0 12px 12px;
}

.quote-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.quote-details-content {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Applicant Details Accordion Styles */
.applicant-details-accordion {
    margin-top: 16px;
}

.applicant-details-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.applicant-details-accordion .accordion-header {
    margin-bottom: 0;
}

.applicant-details-accordion .accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 12px 16px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.applicant-details-accordion .accordion-button:not(.collapsed) {
    background-color: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

.applicant-details-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 55, 218, 0.25);
    border-color: transparent;
}

.applicant-details-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.applicant-details-accordion .accordion-body {
    padding: 16px;
    background-color: white;
}

.applicant-details-accordion .quote-details-grid {
    margin-bottom: 0;
}

/* Toggle Loan Options Button - Accordion Style */
.toggle-loan-options-btn {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    margin-top: 8px;
}

.toggle-loan-options-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.toggle-loan-options-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 55, 218, 0.25);
    border-color: transparent;
    outline: none;
}

.toggle-loan-options-btn.active {
    background-color: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

.toggle-loan-options-btn.collapsed {
    background-color: #f8f9fa;
    color: #374151;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /*border-bottom: 1px solid #f3f4f6;*/

    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease;
    text-align: center;
}

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

.detail-item .detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.detail-item .detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 1024px) and (min-width: 769px) {
    .recent-quote-summary, .quote-details-content { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 14px; 
    }
}

@media (max-width: 768px) {
    /* Summary Card Mobile Adjustments */
    .summary-card-container { margin: 0 0 16px 0; border-radius: 8px; }
    .recent-quote-summary, .quote-details-content { 
        grid-template-columns: 1fr; 
        gap: 12px; 
        padding: 12px;
    }
    
    .recent-quote-summary .summary-item {
        text-align: center;
    }
    
    .summary-card-header {
        padding: 16px;
    }
    
    .summary-card-top {
        gap: 12px;
    }
    
    .summary-card-header .summary-title {
        font-size: 18px;
    }
    
    .edit-quote-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .summary-content {
        padding: 16px;
    }
    
    .summary-grid {
        gap: 12px;
    }
    
    .summary-label {
        font-size: 14px;
    }
    
    .summary-value {
        font-size: 16px;
    }
    
    /* Loan Options Mobile Adjustments - Now applied globally */
    
    .savings-row {
        padding: 16px 20px;
        margin-bottom: 16px;
        display: none;
    }
    
    .savings-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .savings-value {
        font-size: 18px;
    }
    
    .expanded-details {
        padding: 20px;
        margin-top: 16px;
    }
    
    .detail-section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .detail-row {
        padding: 1px;
    }
    
    .detail-row .detail-label {
        font-size: 14px;
    }
    
    .detail-row .detail-amount {
        font-size: 14px;
    }
    
    .view-details {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .view-details-toggle {
        padding: 10px 16px;
        font-size: 14px;
        margin: 8px 0;
    }
    
    .continue-application-btn {
        padding: 14px 20px;
        font-size: 14px;
        margin-top: 12px;
    }
    
    .expanded-details {
        padding: 20px;
        margin-top: 16px;
    }
    
    .expanded-details .view-details {
        margin-bottom: 16px;
    }
    
    .expanded-details .view-details:last-child {
        margin-bottom: 0;
        margin-top: 16px;
    }
    
    .toggle-loan-options-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .summary-header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .summary-actions {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .loan-options-preview {
        gap: 8px;
    }
    
    .loan-option-preview {
        padding: 12px;
    }
    
    .loan-options-full {
        gap: 12px;
    }
    
    .expanded-details {
        padding: 16px;
        background-color: #e8e8e8 !important;
    }
    
    .detail-section-title {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: CENTER;
    }
    
    /* Quick Quote Summary Action Buttons Mobile */
    .quick-quote-edit-btn {
        padding: 6px 8px;
        font-size: 18px;
    }
    
    .quick-quote-new-btn {
        padding: 6px 8px;
        font-size: 18px;
    }
    
    /* Recent Quotes Mobile Styles */
    .recent-quote-card {
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .recent-quote-header {
        padding: 16px 20px;
    }
    
    .recent-quote-title {
        font-size: 16px;
    }
    
    .recent-quote-date {
        font-size: 12px;
    }
    
    .recent-quote-content {
        padding: 16px 20px;
    }
    
    .recent-quote-summary {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .recent-quote-summary .summary-label {
        font-size: 12px;
    }
    
    .recent-quote-summary .summary-value {
        font-size: 16px;
        margin-left: 8px;
    }
    
    .recent-quote-actions {
        gap: 8px;
        flex-direction: column;
    }
    
    .recent-quote-actions .btn {
        padding: 10px 14px;
        font-size: 14px;
        gap: 6px;
    }
}

/* Mobile improvements for the Quick Quote summary header actions (Download PDF button) */
@media (max-width: 576px) {
    .summary-card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .summary-card-header .ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    .summary-card-header .ms-auto .btn {
        width: 100%;
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-width: 2px;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile fixes for down payment */
    .down-payment-compact-box {
        padding: 12px;
        margin: 0 0 12px 0;
    }
    
    .preset-buttons .d-flex {
        gap: 4px;
        padding: 6px 0;
        flex-wrap: nowrap !important;
    }
    
    .down-payment-compact-box .preset-btn {
        font-size: 14px !important;
        padding: 6px 10px !important;
        min-width: 45px;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .down-payment-compact-box .amount-input,
    .down-payment-amount-display .amount-input {
        font-size: 18px !important;
        padding: 12px 14px !important;
    }
    
    .down-payment-compact-box .slider-value-display {
        font-size: 18px !important;
        padding: 8px 12px !important;
    }
    
    .quote-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .applicant-details-accordion .accordion-button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .applicant-details-accordion .accordion-body {
        padding: 12px;
    }
    
    .toggle-loan-options-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .loan-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .detail-heading {
        font-size: 16px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .detail-subtext {
        font-size: 16px;
    }
    
    .savings-label {
        font-size: 10px;
    }
    
    .savings-value {
        font-size: 14px;
    }
    
    .detail-row .detail-label {
        font-size: 16px;
    }
    
    .detail-row .detail-amount {
        font-size: 16px;
    }
    
    .toggle-loan-options-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .summary-actions {
        margin-top: 12px;
        padding-top: 12px;
    }
}

/* ===== LOGIN INPUT FONT SIZE FIX ===== */
.login-container .login-input,
.login-container .form-control,
.auth-card .form-control,
.registration-card .form-control {
    font-size: 18px !important;
}

/* ===== GREEN COLOR CONSISTENCY FIX ===== */
/* Update all green buttons and progress indicators to consistent green */
.btn-success,
.bg-success,
.text-success,
.step-indicator.completed,
.step-number.completed,
.progress-step.completed {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* Green button hover states */
.btn-success:hover,
.step-indicator.completed:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

/* Specific green elements that might need updating */
.application-step.completed .step-circle,
.wizard-step.completed .step-number,
.form-step.completed {
    background-color: #10b981 !important;
    color: white !important;
}

/* ===== BRANDED APP LOADER ===== */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.app-loader.show {
    display: flex;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0037da;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #0037da;
    text-align: center;
}

.loader-subtext {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

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

/* Removed global view-details button overrides (handled in loan-options CSS). */

/* Ensure expanded details work properly */
/* Removed global expanded-details overrides to prevent conflicts with loan options */

/* Font size consistency for loan options */
.loan-options .loan-card,
.loan-options-container .loan-card,
[class*="loan-options"] .loan-card {
    font-size: 16px;
}

.loan-options .loan-card .detail-heading,
.loan-options-container .loan-card .detail-heading,
[class*="loan-options"] .loan-card .detail-heading {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.loan-options .loan-card .detail-value,
.loan-options-container .loan-card .detail-value,
[class*="loan-options"] .loan-card .detail-value {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.loan-options .loan-card .detail-subtext,
.loan-options-container .loan-card .detail-subtext,
[class*="loan-options"] .loan-card .detail-subtext {
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Removed loan action buttons overrides (moved to loan-options CSS). */

/* Removed main loan options button overrides (handled elsewhere). */

/* Removed application loan option button overrides (handled in dedicated CSS). */

/* ===== SELLER CREDITS SECTION STYLES ===== */

/* Seller Credits Section - Unified Card Design */
.seller-credits-compact-box {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Seller Credits Amount Display - 20px font size */
.seller-credits-compact-box .amount-input,
.seller-credits-amount-display .amount-input {
    font-size: 20px !important;
    font-weight: 600;
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #1f2937;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    display: block;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.seller-credits-amount-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-credits-label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    font-size: 16px;
}

.seller-credits-compact-box .amount-input::placeholder,
.seller-credits-amount-display .amount-input::placeholder {
    font-size: 20px !important;
    color: #6b7280;
    font-weight: 500;
}

.seller-credits-compact-box .amount-input:focus,
.seller-credits-amount-display .amount-input:focus {
    border: 2px solid #0037da;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1);
}

/* Seller Credits Preset Buttons - Horizontal Scrollable */
.seller-credits-preset-buttons {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.seller-credits-preset-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.seller-credits-preset-buttons .d-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 4px 0;
    min-width: max-content;
}

.seller-credits-compact-box .seller-credits-preset-btn {
    font-size: 16px !important;
    padding: 10px 16px !important;
    min-width: 60px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #0237da;
    transition: all 0.2s ease;
}

.seller-credits-compact-box .seller-credits-preset-btn:hover {
    background: #0037da;
    color: white;
}

.seller-credits-compact-box .seller-credits-preset-btn.active,
.seller-credits-compact-box .preset-btn.active {
    background: #10b981;
    color: white;
}

/* Enhanced Seller Credits Summary Display */
.seller-credits-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.seller-credits-summary-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seller-credits-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-credits-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #0037da;
}

/* Clean, Modern Seller Credits Slider Container */
.seller-credits-slider-container {
    margin-top: 16px;
}

.seller-credits-slider-value-display {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0037da;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Enhanced Seller Credits Slider Styling */
.seller-credits-enhanced-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seller-credits-enhanced-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0037da;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 55, 218, 0.3);
    transition: all 0.2s ease;
}

.seller-credits-enhanced-slider::-webkit-slider-thumb:hover {
    background: #0026b8;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 55, 218, 0.4);
}

.seller-credits-enhanced-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0037da;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 55, 218, 0.3);
    transition: all 0.2s ease;
}

.seller-credits-enhanced-slider::-moz-range-thumb:hover {
    background: #0026b8;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 55, 218, 0.4);
}

.seller-credits-enhanced-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    border: none;
}

.seller-credits-enhanced-slider:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1);
}

.seller-credits-enhanced-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1), 0 2px 6px rgba(0, 55, 218, 0.3);
}

.seller-credits-enhanced-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(0, 55, 218, 0.1), 0 2px 6px rgba(0, 55, 218, 0.3);
}

/* Override any conflicting styles for seller credits */
.seller-credits-compact-box .seller-credits-enhanced-slider {
    height: 8px !important;
    background: #e5e7eb !important;
    border: none !important;
    box-shadow: none !important;
}

.seller-credits-compact-box .seller-credits-slider-container {
    margin-top: 15px !important;
}

.seller-credits-compact-box .seller-credits-slider-value-display {
    font-size: 24px !important;
    padding: 8px 16px !important;
    background: #f8f9fa !important;
    color: #0037da !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

/* Mobile Responsive for Seller Credits */
@media (max-width: 768px) {
    .seller-credits-compact-box .amount-input,
    .seller-credits-amount-display .amount-input {
        font-size: 18px !important;
        padding: 14px 16px !important;
    }
    
    .seller-credits-compact-box .seller-credits-preset-btn {
        font-size: 14px !important;
        padding: 8px 12px !important;
        min-width: 50px;
    }
    
    .seller-credits-compact-box .seller-credits-slider-value-display {
        font-size: 20px !important;
        padding: 10px 16px !important;
    }
    
    .seller-credits-summary-grid {
        gap: 12px;
    }
    
    .seller-credits-summary-card {
        padding: 12px;
    }
    
    .seller-credits-summary-title {
        font-size: 12px;
    }
    
    .seller-credits-summary-value {
        font-size: 16px;
    }
}

@media (min-width: 992x) {
    
    .detail-item {
        display: flex;
        justify-content: normal;
    }

    .quote-results-preview {
        
        border: none !important;
      
    }
    .toggle-loan-options-btn{
            margin:0 !important;
    }
}

.gorealo-gray-button, .gorealo-green-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    line-height: 24px;
    margin: 0 12px;
}

.gorealo-green-btn {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.gorealo-gray-button, .gorealo-green-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    line-height: 24px;
    margin: 0 12px;
	width: 100%;
}

.gorealo-green-btn {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.gorealo-gray-button i, .gorealo-green-btn i{
	margin-right: 5px;
}
.recent-quote-actions{
	justify-content: space-between;
}

input#qq-guided-toggle {
    width: 37px;
    border-radius: 20px;
}	

 /* Guided mode visual haze for disabled inputs */
    .guided-mode-active #calculator-section .guided-haze {
        position: relative;
        opacity: 0.5;
        pointer-events: none;
    }
    .guided-mode-active #calculator-section .guided-haze::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(2px);
        pointer-events: none;
        border-radius: 0.375rem;
    }
    .guided-mode-active #calculator-section input[disabled],
    .guided-mode-active #calculator-section select[disabled],
    .guided-mode-active #calculator-section textarea[disabled],
    .guided-mode-active #calculator-section button[disabled] {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
    }
    
    /* Current step highlighting */
    .guided-mode-active #calculator-section .current-step {
        position: relative;
        z-index: 2;
        background-color: rgba(13, 110, 253, 0.05);
        border: 2px solid rgba(13, 110, 253, 0.2);
        border-radius: 0.5rem;
        padding: 0.5rem;
        margin: -0.5rem;
    }
    
    /* Step indicator styling */
    #qq-step-indicator {
        background-color: rgba(13, 110, 253, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-weight: 500;
    }

    /* Sticky guided bar */
    #qq-guided-bar {
        position: sticky;
        top: 0;
        z-index: 1020; /* above content */
        background: #fff;
        padding-top: .25rem;
        padding-bottom: .25rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    /* JS fallback: fixed mode */
    #qq-guided-bar.qq-guided-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .qq-guided-spacer { height: 0; }
    @media (max-width: 768px) {
        #qq-guided-bar {
            top: 56px; /* leave room if a fixed header exists; adjust if needed */
        }
        #qq-guided-bar.qq-guided-fixed { top: 56px; }
    }

/* Ensure sticky works when Guided mode is active by allowing overflow */
.guided-mode-active #quote-section-calculator {
    overflow: visible !important;
}
.guided-mode-active body {
    overflow: visible !important;
}

/* Hide unless .active is present */
body:not(:has(#quote-section-calculator.active)) 
#qq-floating-guided-nav {
  display: none !important;
}
