/* === بداية: ملف التحسينات الكامل والنهائي === */

/* --- قسم تحسينات حقول الإدخال --- */

.input-wrapper {
    position: relative;
}

.input-wrapper > label.floating-label {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    text-align: right;
    font-weight: 700;
    color: var(--label-color);
    background-color: transparent;
    padding: 0 5px;
    pointer-events: none;
    transition: all 0.2s ease-out;
    display: flex;
    align-items: center;
    gap: 5px;
    max-height: 24px;
}

.input-wrapper input:focus ~ label.floating-label,
.input-wrapper input:not(:placeholder-shown) ~ label.floating-label,
.input-wrapper textarea:focus ~ label.floating-label,
.input-wrapper textarea:not(:placeholder-shown) ~ label.floating-label {
    top: -23px;
    font-size: 15px;
    font-weight: 700;
    color: var(--label-color);
    background-color: transparent;
    right: 0;
    padding-right: 0;
    padding-left: 0;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="email"],
.input-wrapper input[type="tel"],
.input-wrapper textarea {
    caret-color: var(--primary-color);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: transparent;
}

@keyframes breathing-effect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    animation: breathing-effect 0.4s ease-out;
}

/* --- قسم تحسينات الأزرار --- */

.next-btn, #submitBtn, .prev-btn {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.next-btn:focus-visible, #submitBtn:focus-visible, .prev-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--input-focus-glow);
}

.next-btn::before, #submitBtn::before, .prev-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.next-btn:hover::before, #submitBtn:hover::before, .prev-btn:hover::before {
    left: 100%;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === بداية الحذف: تمت إزالة الأكواد المكررة ونقلها إلى style.css === */
/* تم حذف المتغيرات وقواعد body.in-stage-* من هنا 
   لأنها موجودة الآن في ملف style.css الرئيسي.
*/
/* === نهاية الحذف === */


/* === نهاية: ملف التحسينات الكامل والنهائي === */

/* --- بداية الإصلاح: إظهار النص الإرشادي في خانة بحث الأنشطة --- */
#searchInput input::placeholder {
    color: #6b7280; /* إعطاء لون مرئي للنص الإرشادي */
    opacity: 1;    /* التأكد من أن النص ليس شفافًا */
}
/* --- نهاية الإصلاح --- */


