/* ۱) استایل چک‌باکس و رادیو */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #727885;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

/* گوشه‌ها: مربع برای چک‌باکس و دایره برای رادیو */
input[type="checkbox"] {
    border-radius: 5px;
}

input[type="radio"] {
    border-radius: 50%;
}

/* انیمیشن موج درونی (ripple) مخصوص چک‌باکس/رادیو */
input[type="checkbox"]::before,
input[type="radio"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #1c9dff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    animation: checkbox-ripple 0.4s ease-out;
}

@keyframes checkbox-ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.4;
    }

    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* حالت انتخاب‌شده */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #1c9dff;
    border-color: #1c9dff;
}

/* تیک سفید داخل هر دو */
input[type="checkbox"]::after,
input[type="radio"]::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.2s ease 0.1s;
}

input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

/* تراز لیبل‌ها کنار کنترل‌ها */
label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ۲) ریپل برای دکمه‌ها و آیکن‌های المنتور */
.elementor-icon[href],
a.elementor-button {
    position: relative;
    overflow: hidden;
}

/* دایره ریپل روی دکمه‌ها */
.elementor-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: elementor-ripple-keyframes 0.7s linear;
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 9999;
}

/* انیمیشن ریپل مخصوص دکمه‌ها */
@keyframes elementor-ripple-keyframes {
    to {
        transform: scale(4);
        opacity: 0;
    }
}