/* MyInspire Community Join Form */

.myinspire-community-join {
    direction: rtl;
    text-align: right;
    color: #ffffff;
}

/* כותרות השדות */
.myinspire-community-join label,
.myinspire-community-join legend {
    color: #ffffff !important;
    font-family: Rubik, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* רווח בין כותרת לשדה */
.myinspire-community-join p > label {
    display: block;
    margin-bottom: 8px;
}

/* שדות */
.myinspire-community-join input[type="text"],
.myinspire-community-join input[type="email"],
.myinspire-community-join input[type="tel"],
.myinspire-community-join input[type="password"],
.myinspire-community-join input[type="file"],
.myinspire-community-join select,
.myinspire-community-join textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a !important;
    font-family: Rubik, Arial, sans-serif;
    font-size: 15px;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

/* Select */
.myinspire-community-join select {
    color: #0f172a !important;
}

/* Textarea */
.myinspire-community-join textarea {
    min-height: 120px;
    resize: vertical;
}

/* תחומי עניין */
.myinspire-community-join fieldset {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 18px;
    margin: 24px 0;
}

.myinspire-community-join legend {
    padding: 0 8px;
}

.myinspire-community-join .mi-interest {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.88) !important;
    margin: 9px 0;
    font-weight: 400;
}

.myinspire-community-join .mi-interest input {
    width: auto !important;
    margin: 0;
}

/* checkbox של התראות / פרטיות */
.myinspire-community-join p > label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255,255,255,.88) !important;
}

.myinspire-community-join input[type="checkbox"] {
    width: auto !important;
    margin-top: 4px;
}

/* לינקים */
.myinspire-community-join a {
    color: #60A5FA !important;
}

/* כפתור */
.myinspire-community-join button[type="submit"] {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg,#2563EB,#06B6D4);
    color: #ffffff;
    font-family: Rubik, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* פוקוס נגיש */
.myinspire-community-join input:focus,
.myinspire-community-join select:focus,
.myinspire-community-join textarea:focus,
.myinspire-community-join button:focus {
    outline: 3px solid #60A5FA;
    outline-offset: 2px;
}

/* מובייל */
@media (max-width: 767px) {
    .myinspire-community-join {
        width: 100%;
    }

    .myinspire-community-join input,
    .myinspire-community-join select,
    .myinspire-community-join textarea {
        font-size: 16px;
    }
}

/* ===== FORCE FIELD LABELS VISIBLE ===== */

body .elementor .myinspire-community-join label,
body .elementor .myinspire-community-join legend,
body .elementor .myinspire-community-join form label,
body .elementor .myinspire-community-join form legend,
body .elementor .myinspire-community-join p > label,
body .elementor .myinspire-community-join fieldset > legend {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
    filter: none !important;
}

/* טקסט בתוך checkbox */
body .elementor .myinspire-community-join .mi-interest {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* הטקסט בתוך השדות עצמם נשאר כהה */
body .elementor .myinspire-community-join input[type="text"],
body .elementor .myinspire-community-join input[type="email"],
body .elementor .myinspire-community-join input[type="tel"],
body .elementor .myinspire-community-join input[type="password"],
body .elementor .myinspire-community-join select,
body .elementor .myinspire-community-join textarea {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}

/* placeholder */
body .elementor .myinspire-community-join input::placeholder,
body .elementor .myinspire-community-join textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* ===== FINAL LABEL OVERRIDE ===== */

html body .myinspire-community-join form p label,
html body .myinspire-community-join form fieldset legend,
html body .myinspire-community-join form fieldset label,
html body .myinspire-community-join form label.mi-interest {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html body .myinspire-community-join form fieldset,
html body .myinspire-community-join form fieldset * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* לא לצבוע את הטקסט שבתוך השדות בלבן */
html body .myinspire-community-join form input[type="text"],
html body .myinspire-community-join form input[type="email"],
html body .myinspire-community-join form input[type="tel"],
html body .myinspire-community-join form input[type="password"],
html body .myinspire-community-join form select,
html body .myinspire-community-join form select *,
html body .myinspire-community-join form textarea {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

/* כותרת המשנה בעמוד ההצטרפות */
.elementor-element-1e995149 .elementor-heading-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* =========================================================
   BUSINESS EDIT - LOGIN REQUIRED
   ========================================================= */

body.page-id-12571 .elementor-12571 {
    background: #0B132B !important;
    min-height: 70vh;
}

body.page-id-12571 .elementor-shortcode {
    width: 100%;
}

.myinspire-login-required {
    direction: rtl;
    text-align: center;
    max-width: 560px;
    margin: 70px auto;
    padding: 42px 36px;
    background: linear-gradient(
        145deg,
        #0D1B36 0%,
        #101F3E 100%
    );
    border: 1px solid #1A2B4D;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    color: #FFFFFF !important;
    font-family: Rubik, Arial, sans-serif;
}

.myinspire-login-required .mi-login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    color: #FFFFFF;
    font-size: 34px;
    box-shadow: 0 10px 30px rgba(37,99,235,.35);
}

.myinspire-login-required h2 {
    margin: 0 0 12px;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 30px;
    font-weight: 800;
}

.myinspire-login-required p {
    margin: 0 auto 28px;
    max-width: 420px;
    color: #D9E4F5 !important;
    -webkit-text-fill-color: #D9E4F5 !important;
    font-size: 16px;
    line-height: 1.8;
}

.myinspire-login-required .mi-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 26px rgba(37,99,235,.32);
    transition: transform .2s ease;
}

.myinspire-login-required .mi-login-button:hover {
    transform: translateY(-2px);
}

.myinspire-login-required .mi-login-button:focus {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

@media (max-width: 767px) {

    .myinspire-login-required {
        margin: 35px 18px;
        padding: 32px 22px;
    }

    .myinspire-login-required h2 {
        font-size: 25px;
    }
}

/* =========================================================
   BUSINESS EDIT - LOGIN REQUIRED
   ========================================================= */

body.page-id-12571 .elementor-12571 {
    background: #0B132B !important;
    min-height: 70vh;
}

body.page-id-12571 .elementor-shortcode {
    width: 100%;
}

.myinspire-login-required {
    direction: rtl;
    text-align: center;
    max-width: 560px;
    margin: 70px auto;
    padding: 42px 36px;
    background: linear-gradient(
        145deg,
        #0D1B36 0%,
        #101F3E 100%
    );
    border: 1px solid #1A2B4D;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    color: #FFFFFF !important;
    font-family: Rubik, Arial, sans-serif;
}

.myinspire-login-required .mi-login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    color: #FFFFFF;
    font-size: 34px;
    box-shadow: 0 10px 30px rgba(37,99,235,.35);
}

.myinspire-login-required h2 {
    margin: 0 0 12px;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 30px;
    font-weight: 800;
}

.myinspire-login-required p {
    margin: 0 auto 28px;
    max-width: 420px;
    color: #D9E4F5 !important;
    -webkit-text-fill-color: #D9E4F5 !important;
    font-size: 16px;
    line-height: 1.8;
}

.myinspire-login-required .mi-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 26px rgba(37,99,235,.32);
    transition: transform .2s ease;
}

.myinspire-login-required .mi-login-button:hover {
    transform: translateY(-2px);
}

.myinspire-login-required .mi-login-button:focus {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

@media (max-width: 767px) {

    .myinspire-login-required {
        margin: 35px 18px;
        padding: 32px 22px;
    }

    .myinspire-login-required h2 {
        font-size: 25px;
    }
}

/* =========================================================
   FRONTEND LOGIN
   ========================================================= */

.myinspire-frontend-login {
    direction: rtl;
    text-align: right;
    max-width: 520px;
    margin: 70px auto;
    padding: 42px;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        #0D1B36,
        #101F3E
    );
    border: 1px solid #1A2B4D;
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    font-family: Rubik, Arial, sans-serif;
    color: #FFFFFF;
}

.myinspire-frontend-login .mi-login-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    font-size: 32px;
}

.myinspire-frontend-login h1 {
    text-align: center;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    margin-bottom: 10px;
}

.myinspire-frontend-login .mi-login-intro {
    text-align: center;
    color: #D9E4F5 !important;
    -webkit-text-fill-color: #D9E4F5 !important;
    margin-bottom: 28px;
}

.myinspire-frontend-login label {
    display: block;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 600;
    margin-bottom: 7px;
}

.myinspire-frontend-login input[type="email"],
.myinspire-frontend-login input[type="password"] {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    border: 1px solid #26395E;
    background: #FFFFFF;
    color: #111827 !important;
    padding: 12px 14px;
    box-sizing: border-box;
}

.myinspire-frontend-login .mi-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.myinspire-frontend-login .mi-remember input {
    width: auto;
}

.myinspire-frontend-login button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.myinspire-frontend-login .mi-login-links {
    text-align: center;
    margin-top: 18px;
}

.myinspire-frontend-login .mi-login-links a {
    color: #60A5FA !important;
}

@media (max-width: 767px) {
    .myinspire-frontend-login {
        margin: 35px 18px;
        padding: 30px 22px;
    }
}
