/* =============================================================
   Car Finance Feature Styles
   Request Modal + Reusable Inputs (text / date)
   ============================================================= */

/* --- Modal: Header --- */
.car-finance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 20px;
}

.car-finance-header .modal-title {
    font-size: 1.15rem;
    color: #fff;
}

.cf-close-btn {
    /*background: rgba(255, 255, 255, .08);*/
    background: transparent;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    /*border-radius: 50%;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.cf-close-btn:hover {
    /*background: rgba(255, 255, 255, .15);*/
    color: rgba(255, 255, 255, 0.5);
}

.cf-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /*background: rgba(211, 255, 1, .12);*/
    background: rgb(140 140 140 / 14%);
    color: var(--yellow-color, #D3FF01);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.cf-title-icon img {
    width: 22px;
    height: 22px;
}

.cf-title-icon img + .fa {
    display: none;
}


/* --- Modal: Selected Car Summary (reuses .selected-car-summary visuals) --- */
.cf-car-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cf-car-location {
    color: #A1A5B7;
    font-weight: 500;
}

.cf-dot {
    margin: 0 4px;
    color: #A1A5B7;
}


/* --- Modal: Info Banner (encrypted data notice) --- */
.cf-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 4px 16px;
    margin-bottom: 20px;
}

.cf-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    /*background: rgba(211, 255, 1, .1);*/
    background: rgb(140 140 140 / 14%);
    color: var(--yellow-color, #D3FF01);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cf-info-text {
    color: #cbcbcb;
    font-size: .85rem;
    line-height: 1.5;
}
.cf-alert-text{
    color: var(--yellow-color, #D3FF01);
}
.car-finance-modal-body .step-2 .cf-info-text {
    font-size: 1rem;
    color: var(--yellow-color, #D3FF01);
}

/*.cf-car-price{*/
/*    color: white;*/
/*}*/
/* --- Modal: Submit Button --- */
.cf-submit-btn,
.cf-submit-btn.btn {
    background: var(--yellow-color, #D3FF01) !important;
    color: #1A191B !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 1rem !important;
    transition: filter .2s, opacity .2s !important;
    margin-top: 8px;
}
.cf-submit-btn span,
.cf-submit-btn.btn span{
    color: #1A191B !important;
}

.cf-submit-btn:hover {
    filter: brightness(1.05);
}

.cf-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* --- Modal: Disclaimer Footer Text --- */
.cf-disclaimer {
    text-align: center;
    color: #A1A5B7;
    font-size: .8rem;
    margin: 12px 0 0;
}


/* --- Modal: Step 2 — Max Duration Info Variant --- */
.cf-info-banner--max-duration {
    /*background: rgba(211, 255, 1, .04);*/
    background: rgb(255 255 255 / 4%);
    /*border: 1px solid rgba(211, 255, 1, .15);*/
}

.cf-info-banner--max-duration .cf-info-text strong {
    color: var(--yellow-color, #D3FF01);
    font-weight: 700;
    /*margin: 0 4px;*/
}


/* --- Modal: Step 2 — Single-handle slider tweaks --- */
.cf-slider {
    margin-bottom: 24px;
}

.cf-slider .as-range-slider__label {
    color: #fff;
    font-size: .9rem;
    margin-bottom: 0;
}

.cf-slider .as-range-slider__track {
    margin: 12px 10px 8px;
}

/* Inline value layout: label + value on one row */
.as-range-slider__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.as-range-slider__inline-value {
    color: var(--yellow-color, #D3FF01);
    font-weight: 700;
    /*font-size: .85rem;*/
    white-space: nowrap;
}

.cf-slider .noUi-connect {
    background: var(--yellow-color, #D3FF01);
}

.cf-slider .noUi-handle {
    background: var(--yellow-color, #D3FF01);
    /*border: 3px solid #1A191B;*/
    box-shadow: 0 0 0 1px var(--yellow-color, #D3FF01), 0 4px 10px rgba(0, 0, 0, .35);
    cursor: pointer;
}

.cf-slider .noUi-handle::before,
.cf-slider .noUi-handle::after {
    display: none;
}

/* Manual bubble label (positioned above the handle by displayPercent) */
.as-range-slider__bubble-wrap {
    position: relative;
    height: 22px;
    margin: 0 10px;
}

.as-range-slider__bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: var(--yellow-color, #D3FF01);
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    pointer-events: none;
}

html[dir="rtl"] .as-range-slider__bubble {
    transform: translateX(50%);
}


/* --- Modal: Step 2 — Calc Summary --- */
.cf-summary {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 4px 0 16px;
}

.cf-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: .9rem;
}

.cf-summary-label {
    color: #fff;
    font-weight: 500;
}

.cf-summary-value {
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

.cf-summary-divider {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, .5);
    margin: 8px 0;
}

.cf-summary-row--total {
    padding-top: 4px;
}

.cf-summary-label-total {
    color: var(--yellow-color, #D3FF01);
    font-weight: 700;
    font-size: 1.05rem;
}

.cf-summary-total-value,.cf-summary-total-value span{
    color: var(--yellow-color, #D3FF01);
    font-weight: 800;
    font-size: 1.1rem;
}


/* =============================================================
   Car Finance Banner (listing card footer)
   ============================================================= */

.car-finance-banner {
    margin: 10px -8px -8px;
    padding: 10px 14px;
    background: linear-gradient(
        90deg,
        rgba(211, 255, 1, .07) 0%,
        rgba(0, 0, 0, .08) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cfb-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cfb-icon {
    width: 14px;
    height: 14px;
    color: var(--yellow-color, #D3FF01);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cfb-label {
    color: #A1A5B7;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.car-finance-banner .cfb-amount {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.car-finance-banner .cfb-amount > * {
    display: inline-block;
}

.car-finance-banner .cfb-amount > .sar-symbol {
    font-size: .85em;
    line-height: 1;
    margin-inline-start: 4px;
    margin-inline-end: 0;
    position: relative;
    top: 1px;
}

.car-finance-banner .cfb-amount-unit {
    color: #A1A5B7;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1;
    margin-inline-start: 0;
}

.cfb-action-btn,
.cfb-action-btn.btn {
    background: var(--yellow-color, #D3FF01) !important;
    color: #1A191B !important;
    font-weight: 700 !important;
    font-size: .78rem !important;
    padding: 7px 12px !important;
    border-radius: 20px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s;
    height: 33px;
}

.cfb-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(211, 255, 1, .3);
    filter: brightness(1.05);
}

.list-view-card-container {
    flex-wrap: wrap;
}

.card-container:has(.list-view-card-container) {
    padding: 0 !important;
    border: 0 !important;
}

.list-view-card-container:has(> .car-finance-banner) {
    padding-bottom: 0 !important;
}

.list-view-card-container .car-finance-banner {
    flex: 0 0 calc(100% + 2rem);
    max-width: none;
    margin: 12px -1rem 0;
    padding: 10px 1rem;
    border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
}

/* =============================================================
   Listing show page — standalone banner (not a card footer)
   ============================================================= */

.listing-show-finance-banner .car-finance-banner {
    margin: 0;
    padding: 16px 20px;
    background: rgba(212,230,241,.1)!important;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
}

.listing-show-finance-banner .cfb-action-btn,
.listing-show-finance-banner .cfb-action-btn.btn {
    padding: 9px 18px !important;
    height: 38px;
    font-size: .85rem !important;
}

.listing-show-finance-banner .car-finance-banner .cfb-amount {
    font-size: 1rem;
}

.listing-show-finance-banner .cfb-label {
    font-size: .85rem;
}




/* =============================================================
   Step 3 — Success card
   ============================================================= */

.cf-success {
    text-align: center;
    padding: 24px 8px 12px;
}

.cf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .15);
    color: #22C55E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.cf-success-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cf-success-text {
    color: #b4b7be;
    font-size: .9rem;
    margin-bottom: 20px;
}
