/* הגבלת רוחב רשימת הסניפים */
select {
 width: 100% !important;
 max-width: 100% !important;
 min-width: 0 !important;
 box-sizing: border-box !important;
 text-overflow: ellipsis;
 white-space: nowrap;
 overflow: hidden;
}

/* מניעת חריגה של השדה מהטופס */
select option {
 max-width: 100%;
}

/* ===== MODERN REGISTRATION 2026 ===== */

:root {
 --primary: #6957df;
 --primary-dark: #5140bc;
 --surface: #ffffff;
 --background: #f4f3fb;
 --text: #24243a;
 --muted: #85839b;
 --border: #e6e4f0;
}

/* רקע חדש */
body {
 background:
 radial-gradient(
 ellipse at 10% 0%,
 #e8e2ff 0%,
 transparent 45%
 ),
 radial-gradient(
 ellipse at 95% 90%,
 #e5f1ff 0%,
 transparent 45%
 ),
 var(--background) !important;

 font-family: Arial, sans-serif !important;
 color: var(--text);
}

/* כותרות */
h1, h2, h3 {
 color: var(--text) !important;
 font-weight: 800 !important;
 letter-spacing: -0.6px;
}

h1 {
 font-size: clamp(28px, 4vw, 42px);
 line-height: 1.25;
}

/* כרטיס הטופס */
form {
 background: var(--surface);
 border: 1px solid rgba(255,255,255,.9);
 border-radius: 24px !important;

 padding: clamp(18px, 4vw, 36px) !important;

 box-shadow:
 0 24px 70px rgba(57,45,110,.09),
 0 4px 16px rgba(57,45,110,.04);

 max-width: 100%;
 min-width: 0;
 box-sizing: border-box;
}

/* קבוצות שדות */
form fieldset {
 border: 1px solid var(--border);
 border-radius: 18px !important;
 padding: 20px;
 min-width: 0;
 max-width: 100%;
 box-sizing: border-box;
 margin-bottom: 20px;
}

form legend {
 color: var(--primary-dark);
 font-size: 17px;
 font-weight: 800;
 padding: 0 10px;
}

/* תוויות */
form label {
 color: #45445e !important;
 font-size: 14px;
 font-weight: 600;
}

/* שדות */
form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]),
form select,
form textarea {
 background: #fafafd !important;
 border: 1.5px solid var(--border) !important;
 border-radius: 12px !important;

 padding: 12px 15px;
 color: var(--text) !important;

 box-shadow: none !important;
 box-sizing: border-box;
 min-width: 0;
 max-width: 100%;

 transition:
 border-color .2s ease,
 background .2s ease,
 box-shadow .2s ease,
 transform .2s ease;
}

/* אפקט במעבר עכבר */
form input:hover,
form select:hover,
form textarea:hover {
 border-color: #b8aff1 !important;
 background: #fff !important;
}

/* אפקט פוקוס */
form input:focus,
form select:focus,
form textarea:focus {
 outline: none !important;
 border-color: var(--primary) !important;
 background: #fff !important;

 box-shadow:
 0 0 0 4px rgba(105,87,223,.12)
 !important;
}

/* טקסט ארוך בסניפים */
form select {
 text-overflow: ellipsis;
 white-space: nowrap;
 overflow: hidden;
}

/* כפתור הרשמה */
form button[type="submit"],
form input[type="submit"] {
 background: linear-gradient(
 135deg,
 #806bf2,
 #5945cb
 ) !important;

 color: #fff !important;
 border: 0 !important;
 border-radius: 14px !important;

 padding: 16px 28px !important;
 font-size: 16px !important;
 font-weight: 700 !important;

 box-shadow:
 0 8px 22px rgba(105,87,223,.25);

 cursor: pointer;

 transition:
 transform .2s ease,
 box-shadow .2s ease;
}

/* אנימציית כפתור */
form button[type="submit"]:hover,
form input[type="submit"]:hover {
 transform: translateY(-2px);

 box-shadow:
 0 12px 28px rgba(105,87,223,.35);
}

/* הודעות שגיאה */
form .error,
form .invalid-feedback {
 border-radius: 10px;
 font-size: 13px;
}

/* התאמה לנייד */
@media (max-width: 600px) {
 form {
 border-radius: 18px !important;
 padding: 18px !important;
 }

 form fieldset {
 padding: 12px;
 }

 form input,
 form select,
 form textarea {
 font-size: 16px;
 }
}

/* נגישות: צמצום אנימציות */
@media (prefers-reduced-motion: reduce) {
 form * {
 transition: none !important;
 }
}