    html {
        scroll-behavior: smooth !important;
    }

    .locked-purpose-info {
        background: rgba(2, 18, 66, 0.03);
        border: 1px solid rgba(201, 171, 101, 0.3);
        padding: 0 15px;
        border-radius: 12px;
        margin-bottom: 25px;
        height: 52px;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .locked-label {
        font-size: 11px;
        color: var(--accent-gold);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: absolute;
        top: -10px;
        right: 12px;
        background: var(--white);
        padding: 0 5px;
    }

    .locked-value {
        font-size: 16px;
        color: var(--primary-blue);
        font-weight: 600;
    }

    .donation-wrapper {
        /* מרווח עליון מחושב עבור גלילה (Header + מרווח רצוי) */
        scroll-margin-top: 140px;

        --primary-blue: #021242;
        --accent-gold: #c9ab65;
        --accent-gold-light: #e0ca96;
        --white: #ffffff;
        --bg-soft: #f8f9fa;
        --text-muted: #6c757d;
        --error-red: #dc3545;

        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 15px;
        direction: rtl;
        font-family: 'Segoe UI',
            system-ui,
            -apple-system,
            sans-serif;
        background-color: var(--accent-gold-light);
        min-height: 100vh;
    }

    /* מחוון התקדמות */
    .progress-container {
        width: 100%;
        max-width: 560px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 25px;
        position: relative;
    }

    .progress-line {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--white);
        z-index: 1;
        transform: translateY(-50%);
    }

    .step-dot {
        width: 30px;
        height: 30px;
        background: var(--white);
        border-radius: 50%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        color: #999;
        transition: all 0.3s ease;
    }

    .step-dot.active {
        background: var(--primary-blue);
        color: var(--white);
        box-shadow: 0 0 10px rgba(201, 171, 101, 0.5);
    }

    .donation-card {
        width: 100%;
        max-width: 560px;
        background: var(--white);
        border-radius: 24px;
        padding: 30px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        scroll-margin-top: 40px;
        border: 1px solid rgba(201, 171, 101, 0.2);
    }

    /* אנימציית כניסה לשלבים */
    .form-step {
        display: none;
        animation: slideUp 0.4s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .form-step.active {
        display: block;
    }

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

    .input-container {
        position: relative;
        border: 1px solid #e1e1e1;
        border-radius: 12px;
        height: 52px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        background: var(--white);
        transition: all 0.3s ease;
    }

    .input-container:focus-within {
        border-color: var(--accent-gold);
        box-shadow: 0 0 8px rgba(201, 171, 101, 0.2);
    }

    .input-container label {
        position: absolute;
        right: 12px;
        color: var(--primary-blue);
        font-weight: 500;
        pointer-events: none;
        font-size: 12px;
        background: var(--white);
        padding: 0 5px;
        top: -10px;
        z-index: 10;
    }

    .input-container input {
        width: 100%;
        border: none !important;
        background: transparent !important;
        text-align: right;
        color: var(--primary-blue);
        font-size: 15px;
        font-weight: 600;
        outline: none !important;
        box-shadow: none !important;
        margin-top: 5px;
    }

    /* Custom Select Styling */
    .custom-select-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .custom-select-trigger {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--primary-blue);
        background: transparent;
    }

    .custom-select-trigger::after {
        content: "";
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid var(--primary-blue);
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .custom-select-wrapper.open .custom-select-trigger::after {
        transform: rotate(180deg);
    }

    .custom-options {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid var(--accent-gold);
        border-radius: 12px;
        margin-top: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 100;
        max-height: 250px;
        overflow-y: auto;
        display: none;
        animation: selectFadeIn 0.2s ease;
    }

    @keyframes selectFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .custom-select-wrapper.open .custom-options {
        display: block;
    }

    .custom-option {
        padding: 12px 15px;
        font-size: 14px;
        transition: all 0.2s;
        border-bottom: 1px solid rgba(201, 171, 101, 0.1);
        text-align: right;
        color: var(--primary-blue);
    }

    .custom-option:last-child {
        border-bottom: none;
    }

    .custom-option:hover {
        background: rgba(201, 171, 101, 0.1);
        color: var(--accent-gold);
    }

    .custom-option.selected {
        background: var(--primary-blue);
        color: var(--white);
    }

    .input-container select {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        z-index: -1;
        pointer-events: none;
        right: 0;
        top: 0;
    }

    .action-btn {
        width: 100%;
        height: 55px;
        background-color: var(--primary-blue);
        border: 2px solid var(--accent-gold);
        border-radius: 12px;
        color: var(--white);
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .action-btn:hover {
        background-color: #041b5e;
        box-shadow: 0 5px 15px rgba(2, 18, 66, 0.3);
    }

    .prev-step-link {
        display: block;
        text-align: center;
        margin-top: 15px;
        color: #666;
        text-decoration: none;
        cursor: pointer;
        font-size: 12px;
        transition: color 0.2s;
    }

    .prev-step-link:hover {
        color: var(--primary-blue);
    }

    .total-display {
        background: rgba(201, 171, 101, 0.1);
        border: 1px solid var(--accent-gold);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
        text-align: center;
        min-height: 50px;
    }

    .payment-options-grid {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .payment-option {
        cursor: pointer;
        border: 2px solid #e1e1e1;
        border-radius: 12px;
        padding: 10px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--white);
        min-width: 100px;
    }

    .payment-option:hover {
        border-color: var(--accent-gold-light);
    }

    .payment-option.selected {
        border-color: var(--accent-gold);
        background: rgba(201, 171, 101, 0.05);
        box-shadow: 0 4px 12px rgba(201, 171, 101, 0.2);
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
        background: var(--white);
        border-radius: 8px;
        border: 1px solid #eee;

        &>div {
            display: flex;
            align-items: center;
            gap: 4px;

            label {
                line-height: 1;
            }
        }
    }

    .checkbox-group input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    #receipt-fields-container {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .input-container.read-only {
        background: #f0f0f0;
        border-color: #ddd;
    }

    .input-container.invalid,
    .checkbox-group.invalid {
        border-color: var(--error-red);
    }

    .payment-iframe-container iframe {
        width: 100%;
        height: 500px;
        background: var(--white);
    }

    /* Unified Payment Button */
    .unified-payment-container {
        margin-top: 20px;
        text-align: center;
    }

    .unified-pay-btn {
        background-color: var(--accent-gold) !important;
        border: 2px solid var(--primary-blue) !important;
        height: auto !important;
        padding: 15px 20px !important;
        flex-direction: column !important;
        line-height: 1.2;
    }

    .unified-pay-btn .btn-top {
        font-size: 18px;
        margin-bottom: 8px;
        color: var(--primary-blue);
    }

    .unified-pay-btn .payment-icons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0.9;
    }

    .unified-pay-btn .payment-icons img {
        height: 22px;
        width: auto;
        object-fit: contain;
    }

    .unified-pay-btn .apple-pay-label {
        font-size: 12px;
        color: var(--primary-blue);
        font-weight: 500;
    }

    /* Adjustments for Step 3 reorganization */
    #step-3 .input-group {
        margin-bottom: 12px;
    }

    .unified-pay-btn:hover {
        background-color: var(--accent-gold-light) !important;
        transform: translateY(-2px);
    }

    /* Icons styles for the old form too */
    .payment-icons-small {
        display: flex;
        justify-content: center;
        gap: 8px;
        align-items: center;
        margin-top: 5px;
    }

    .payment-icons-small img {
        height: 18px;
        opacity: 0.8;
    }

    .form-row-flex {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        align-items: center;
    }

    /* Open Amount Toggle Switch */
    .open-amount-wrapper {
        display: none;
        align-items: center;
        justify-content: center;
        /* Center horizontally in row if needed, but here it's about items */
        gap: 12px;
        flex: 1;
        background: rgba(0, 0, 0, 0.03);
        /* Lighter background */
        padding: 0 15px;
        border-radius: 8px;
        border: 1px solid #eee;
        /* Very subtle solid border */
        height: 52px;
        box-sizing: border-box;
    }

    .open-amount-label {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-blue);
        line-height: 1;
        margin: 0;
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 30px;
        height: 16px;
        transform: translateY(1px);
        /* Nudge down for perfect optical center */
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #eee;
        transition: .4s;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
    }

    input:checked+.slider {
        background-color: var(--primary-blue);
    }

    input:focus+.slider {
        box-shadow: 0 0 1px var(--primary-blue);
    }

    input:checked+.slider:before {
        transform: translateX(14px);
    }

    .slider.round {
        border-radius: 24px;
    }

    .slider.round:before {
        border-radius: 50%;
    }

    @media (max-width: 600px) {
        .form-grid {
            grid-template-columns: 1fr;
        }

        .unified-pay-btn .payment-icons {
            gap: 8px;
        }

        .unified-pay-btn .payment-icons img {
            height: 18px;
        }

        .donation-wrapper#donation-form {
            padding-inline: 0;

            .progress-container {
                width: 75%;
            }

            #donation-form-container {
                padding: 24px 16px;
                border: 0;
                box-shadow: none;
                border-radius: 0;
            }
        }

        .input-container {
            margin-bottom: 12px;
        }

        input[type=checkbox] {
            width: 20px !important;
            height: 20px !important;
        }
    }