/* ─── Payment step (checkout) ─── */
.deduction-payment-step .deduction-payment-card {
    max-width: 820px;
    width: 100%;
    margin-inline: auto;
    padding: 1.35rem 1.5rem 1.5rem;
}

.deduction-payment-head {
    margin-bottom: 1rem;
    text-align: right;
}

.deduction-payment-head__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.35rem;
}

.deduction-payment-head__lead {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5c636a;
    margin: 0;
}

.deduction-verify-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0c5460;
    background: #e8f6f8;
    border: 1px solid #bee5eb;
    border-radius: 999px;
}

.deduction-checkout-summary {
    background: linear-gradient(145deg, #f8f9fb 0%, #fff 100%);
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.deduction-checkout-summary__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #dee2e6;
}

.deduction-checkout-summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.deduction-checkout-summary__row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.deduction-checkout-summary__row--wide {
    grid-column: 1 / -1;
}

.deduction-checkout-summary__row dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.deduction-checkout-summary__row dd {
    font-size: 0.92rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    word-break: break-word;
}

.deduction-checkout-summary__amount {
    font-size: 1.05rem;
    color: #c82333;
}

.deduction-card-form-host {
    max-width: 100%;
}

.deduction-card-form-host .dx-field-item {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.deduction-card-form-host .dx-texteditor,
.deduction-card-form-host .dx-selectbox {
    max-width: 100%;
}

.deduction-terms-panel {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.5rem;
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #495057;
    max-height: 12.5rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.deduction-terms-panel:focus-within {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.deduction-terms-panel__heading {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.35rem;
}

.deduction-terms-panel__meta {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.35rem;
}

.deduction-payment-form-wrap {
    width: 100%;
}

.deduction-payment-footer {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.25rem;
    width: 100%;
}

.deduction-payment-footer .action-button-previous {
    flex: 0 0 auto;
    min-width: 7.5rem;
    font-weight: 600;
}

.deduction-payment-footer .dx-field-button {
    flex: 1 1 12rem;
    margin: 0 !important;
    min-width: 10rem;
}

.deduction-payment-footer .dx-field-button .dx-button {
    width: 100%;
}

#step-3 .deduction-consent-item,
.deduction-card-form-host .deduction-consent-item {
    background: #fff8e8;
    border: 1px solid #ffe4a8;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    margin: 0.35rem 0 0.65rem;
}

#step-3 .deduction-consent-item .dx-field-item-label-text,
.deduction-card-form-host .deduction-consent-item .dx-field-item-label-text {
    font-weight: 700;
    color: #212529;
}

#step-3 .deduction-consent-item .dx-checkbox-text,
.deduction-card-form-host .deduction-consent-item .dx-checkbox-text {
    font-weight: 600;
    line-height: 1.45;
}

.deduction-service-terms-note summary {
    cursor: pointer;
    user-select: none;
}

#step-3 .deduction-terms-panel {
    max-width: 100%;
}

#msForm > ul.progressBar,
#msForm > ul.progress-Bar {
    max-width: 860px;
    margin-inline: auto;
    margin-bottom: 1.25rem;
}

#fieldset-payment-mysr.deduction-payment-step {
    padding-bottom: 0.25rem;
}

/* Account step: fieldset starts display:none (#msForm); tab panes must be forced visible when shown */
#benefactorInfo #section-account,
#benefactorInfo #section-account .tab-content {
    visibility: visible;
    opacity: 1;
}

#benefactorInfo .service-box.tab-pane.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 576px) {
    .deduction-checkout-summary__grid {
        grid-template-columns: 1fr;
    }

    .deduction-payment-step .deduction-payment-card {
        padding: 1rem 0.85rem 1.25rem;
        max-width: 100%;
    }

    .deduction-payment-head__title {
        font-size: 1.2rem;
    }

    .deduction-payment-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .deduction-payment-footer .action-button-previous,
    .deduction-payment-footer .dx-field-button {
        width: 100%;
        min-width: 0;
    }
}

/* بلوك أنواع البطاقات المقبولة - في المنتصف بدون خلفية */
.accepted-card-types {
    text-align: center;
    margin: 1rem 0 1.25rem;
    padding: 0.5rem 0;
    max-width: 420px;
    margin-inline: auto;
}

.accepted-card-types__label {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;

    color: #495057;
 /*   display: none;  إخفاء النص مع الإبقاء على العنصر في الـ HTML */
}

.accepted-card-types__names {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #c82333;
    letter-spacing: 0.02em;
}

.radio-button {
    display: inline-block;
    width: 60% !important;
}





    .radio-button input[type="radio"] {
        display: none;
    }

    .radio-button label {
        display: inline-block;
        padding: 10px 10px;
        background-color: #fff;
        color: #333;
        cursor: pointer;
    }

.selected {
    background-color: #007bff;
    color: #fff;
}

#grad1 {
    background-color: #9C27B0;
    background-image: linear-gradient(120deg, #FF4081, #81D4FA);
}

#msForm {
    text-align: center;
    position: relative;
    margin-top: 20px;
    direction: rtl;
}

.txt-center {
    text-align: center;
}

#msForm fieldset .form-card {
    background: white;
    border: 0 none;
    border-radius: 0px;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
    padding: 20px 40px 30px 40px;
    box-sizing: border-box;
    width: 94%;
    margin: 0 3% 20px 3%;
    position: relative;
    direction: rtl;
}

#msForm fieldset {
    background: white;
    border: 0 none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
    direction: rtl;
}

    #msForm fieldset:not(:first-of-type) {
        display: none;
    }

    #msForm fieldset .form-card {
        text-align: right;
        color: #9E9E9E;
    }



#msForm .action-button {
    width: 100px;
    /*background: skyblue;*/
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

    #msForm .action-button:hover, #msForm .action-button:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px skyblue;
    }

#msForm .action-button-previous {
    width: 100px;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

    #msForm .action-button-previous:hover, #msForm .action-button-previous:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px #616161;
    }

select.list-dt {
    border: none;
    outline: 0;
    border-bottom: 1px solid #ccc;
    padding: 2px 5px 3px 5px;
    margin: 2px;
}

    select.list-dt:focus {
        border-bottom: 2px solid skyblue;
    }

.card {
    z-index: 0;
    border: none;
    border-radius: 0.5rem;
    position: relative;
}

.w-90-r {
    width: 90% !important;
    float: right !important;
}

.w-10-r {
    width: 10% !important;
    float: right !important;
}

.fs-title {
    margin-bottom: 10px;
    font-weight: bold;
    text-align: right;
}


.progressBar {
    margin-bottom: 30px;
    overflow: hidden;
    color: lightgrey;
}

.dx-checkbox-container {
    background-color: #ecea58;
    width: 100%;
    padding: 5px;
}

.progressBar .active {
    color: #000000;
}

.progress-Bar .active {
    color: #000000;
}



.progress-Bar li {
    list-style-type: none;
    font-size: 12px;
    width: 25%;
    float: right;
    position: relative;
}

.progressBar li {
    list-style-type: none;
    font-size: 12px;
    width: 33%;
    float: right;
    position: relative;
}


.progressBar #project:before {
    font-family: FontAwesome;
    content: "\f022";
}

.progressBar #personal:before {
    font-family: FontAwesome;
    content: "\f007";
}

.progressBar #payment:before {
    font-family: FontAwesome;
    content: "\f09d";
}

.progressBar #paymentWay:before {
    font-family: FontAwesome;
    content: "\f09d";
}

.progressBar #confirm:before {
    font-family: FontAwesome;
    content: "\f00c";
}

.progressBar #testPay:before {
    font-family: FontAwesome;
    content: "\f1b6";
}

/*progressBar before any progress*/
.progressBar li:before {
    width: 50px;
    height: 50px;
    line-height: 45px;
    display: block;
    font-size: 18px;
    color: #ffffff;
    background: lightgray;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 2px;
}

.progressBar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: lightgray;
    position: absolute;
    right: 0;
    top: 25px;
    z-index: -1;
}

.progressBar li.active:before, .progressBar li.active:after {
    background: skyblue;
}

/*d*/
.progress-Bar #project:before {
    font-family: FontAwesome;
    content: "\f022";
}

.progress-Bar #personal:before {
    font-family: FontAwesome;
    content: "\f007";
}

.progress-Bar #payment:before {
    font-family: FontAwesome;
    content: "\f09d";
}

.progress-Bar #paymentWay:before {
    font-family: FontAwesome;
    content: "\f09d";
}

.progress-Bar #confirm:before {
    font-family: FontAwesome;
    content: "\f00c";
}

.progress-Bar #testPay:before {
    font-family: FontAwesome;
    content: "\f1b6";
}

/*progress-Bar before any progress*/
.progress-Bar li:before {
    width: 50px;
    height: 50px;
    line-height: 45px;
    display: block;
    font-size: 18px;
    color: #ffffff;
    background: lightgray;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 2px;
}

.progress-Bar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: lightgray;
    position: absolute;
    right: 0;
    top: 25px;
    z-index: -1;
}

.progress-Bar li.active:before, .progress-Bar li.active:after {
    background: skyblue;
}


.radio-group {
    position: relative;
    margin-bottom: 25px;
}

.radio {
    display: inline-block;
    width: 204px;
    height: 104px;
    border-radius: 0;
    background: lightblue;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    cursor: pointer;
    margin: 8px 2px;
}

    .radio:hover {
        box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3);
    }

    .radio.selected {
        box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1);
    }

.fit-image {
    width: 100%;
    object-fit: cover;
}

/* ============================================
   Projects Carousel Styles
   ============================================ */

/* Container Styles */
.projects-carousel-wrapper {
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.projects-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: visible; /* السماح للـ tooltip بالظهور */
    padding: 0 50px; /* مساحة للأزرار */
}

/* Carousel Styles - direction: ltr لسلوك تمرير متسق (scrollLeft) مع واجهة RTL */
.projects-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible; /* السماح للـ tooltip بالظهور */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 10px 0;
    direction: ltr;
    /* إخفاء scrollbar في بعض المتصفحات */
    -ms-overflow-style: none;
}

    .projects-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .projects-carousel::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .projects-carousel::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .projects-carousel::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Card Styles (Overlay Design) */
.project-card {
    flex: 0 0 300px; /* عرض ثابت */
    height: 180px; /* ارتفاع أقصر */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .project-card:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
        z-index: 5;
        overflow: visible; /* السماح للـ tooltip بالظهور */
    }

    .project-card.selected {
        border-color: var(--secondary-color);
    }

/* الصورة كخلفية */
.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* SVG افتراضي */
    .project-image svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Gradient Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48%;
    /* background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    backdrop-filter: blur(3px);*/
    display: flex;
    align-items: flex-end;
    padding: 18px 16px 14px;
}

.project-content {
    width: 100%;
}

/* Badge التحديد */
.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #28a745;
    border-radius: 50%;
    display: none; /* مخفي افتراضياً */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(40,167,69,0.7);
    z-index: 10;
    animation: badgePulse 2s infinite;
}

.project-card.selected .project-badge {
    display: flex;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Text Styles (على Overlay) */
.project-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    /*    text-shadow: 0 2px 8px rgba(0,0,0,0.7);*/
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: right; /* RTL */
}

.project-price {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    margin: 0;
    text-align: right; /* RTL */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* Tooltip للوصف */
.project-description-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 30;
    text-align: right; /* RTL */
    visibility: visible; /* يجب أن يكون visible حتى مع opacity: 0 */
}

.project-card:hover .project-description-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* سهم للـ tooltip */
.project-description-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    color: #333;
}

    .carousel-nav-btn:hover {
        background: #007bff;
        border-color: #007bff;
        color: white;
    }

.carousel-prev {
    right: 0;
}

.carousel-next {
    left: 0;
}

/* أيقونة السعر */
.project-price-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

    .project-price-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1); /* جعل الأيقونة بيضاء */
    }

/* Responsive Design */
@media (max-width: 992px) {
    .project-card {
        flex: 0 0 280px;
        height: 170px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-price {
        font-size: 16px;
    }

    .project-price-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .projects-carousel-container {
        padding: 0 45px;
    }

    .project-card {
        flex: 0 0 260px;
        height: 160px;
    }

    .project-overlay {
        height: 50%;
        padding: 16px 12px 12px;
    }

    .project-title {
        font-size: 17px;
    }

    .project-price {
        font-size: 15px;
    }

    .project-price-icon {
        width: 15px;
        height: 15px;
    }

    .project-badge {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .projects-carousel-container {
        padding: 0 40px;
    }

    .project-card {
        flex: 0 0 240px;
        height: 150px;
    }

    .project-overlay {
        padding: 14px 10px 10px;
    }

    .project-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .project-price {
        font-size: 14px;
    }

    .project-price-icon {
        width: 14px;
        height: 14px;
    }

    .project-badge {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
}
