.kashrut-form-body { --red: #c0392b; --border: #d8d0be; --muted: #6b6560; --green: #27ae60; --dark: #1a2e4a; --gold: #b8962e; }

.kashrut-form-body {
	font-family: 'Heebo', sans-serif;
	direction: rtl;
	text-align: right;
	padding: 20px 0;
	-webkit-tap-highlight-color: transparent;
	position: relative;
	z-index: 1000;
	isolation: isolate;
}

.kashrut-form-body .header { padding: 32px 40px; text-align: center; border-bottom: 4px solid; background-color: #1a2e4a; border-bottom-color: #b8962e; }
.kashrut-form-body .header-emblem { font-size: 38px; margin-bottom: 8px; color: #fff; }
.kashrut-form-body .header h1 { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; font-weight: 700; margin-bottom: 4px; color: #ffffff; }
.kashrut-form-body .header h2 { font-size: 15px; font-weight: 300; opacity: 0.9; margin-bottom: 4px; color: #ffffff; }
.kashrut-form-body .header .subtitle { font-size: 12px; opacity: 0.7; font-style: italic; color: #ffffff; }
.kashrut-form-body .container { max-width: 900px; margin: 30px auto; padding: 0 15px; }
.kashrut-form-body .section { background: white; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.kashrut-form-body .section-header { color: white; padding: 12px 20px; display: flex; align-items: center; gap: 10px; background-color: #1a2e4a; }
.kashrut-form-body .section-number { color: white; font-weight: 700; font-size: 13px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background-color: #b8962e; }
.kashrut-form-body .section-title { font-family: 'Frank Ruhl Libre', serif; font-size: 17px; font-weight: 700; color: #fff; }
.kashrut-form-body .section-body { padding: 20px; }
.kashrut-form-body .sub-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.kashrut-form-body .sub-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.kashrut-form-body .sub-title { font-family: 'Frank Ruhl Libre', serif; font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 4px; border-bottom: 2px solid; display: inline-block; color: #1a2e4a; border-bottom-color: #b8962e; }
.kashrut-form-body .field-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.kashrut-form-body .field { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.kashrut-form-body .field.full { flex: 100%; min-width: 100%; }
.kashrut-form-body .field.half { flex: 1; min-width: 200px; }
.kashrut-form-body .field.third { flex: 1; min-width: 140px; }
.kashrut-form-body .field.quarter { flex: 0 0 calc(25% - 11px); min-width: 110px; }
.kashrut-form-body label { font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #333; }
.kashrut-form-body label .required { color: var(--red); }
.kashrut-form-body input[type="text"], .kashrut-form-body input[type="email"], .kashrut-form-body input[type="tel"], .kashrut-form-body input[type="date"], .kashrut-form-body select, .kashrut-form-body textarea { border: 1px solid var(--border); border-radius: 5px; padding: 10px; font-size: 14px; background: #fdfcfa; width: 100%; box-sizing: border-box; direction: rtl; }
.kashrut-form-body input.invalid-id { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.15) !important; }
.kashrut-form-body .radio-group { display: flex; gap: 18px; align-items: center; padding: 6px 0; }

.kashrut-form-body .form-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.kashrut-form-body .form-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.kashrut-form-body .form-table th { color: white; padding: 10px; font-size: 13px; text-align: right; background-color: #1a2e4a; }
.kashrut-form-body .form-table td { border: 1px solid var(--border); padding: 4px; }
.kashrut-form-body .form-table td input { border: none; background: transparent; padding: 8px; font-size: 13px; width: 100%; box-sizing: border-box; }
.kashrut-form-body .hours-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 12px; }
.kashrut-form-body .hours-table th { color: white; padding: 8px; text-align: center; background-color: #1a2e4a; }
.kashrut-form-body .hours-table td { border: 1px solid var(--border); padding: 4px; }
.kashrut-form-body .hours-table td:first-child { background: #f0ede6; font-weight: bold; text-align: right; padding-right: 8px; width: 80px; }
.kashrut-form-body .hours-table td input { border: none; background: transparent; width: 100%; text-align: center; font-size: 12px; }
.kashrut-form-body .commitment-box { background: #f5f2eb; border: 1px solid var(--border); border-radius: 6px; padding: 16px; font-size: 13px; line-height: 1.8; margin-bottom: 16px; }

/* חתימה מוגנת מפני שכבות צפות */
.kashrut-form-body .sig-pad-wrap {
	border: 2px dashed var(--border);
	border-radius: 6px;
	background: #fff;
	height: 140px;
	position: relative;
	z-index: 1010;
	touch-action: none !important;
	-webkit-user-select: none;
	user-select: none;
}
.kashrut-form-body .sig-canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
	position: relative;
	z-index: 1011;
	touch-action: none !important;
	cursor: crosshair;
	pointer-events: auto !important;
}
.kashrut-form-body .sig-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #aaa;
	pointer-events: none;
	user-select: none;
	z-index: 1012;
}
.kashrut-form-body .btn-clear-sig { background: none; border: 1px solid #ccc; font-size: 12px; padding: 6px 12px; margin-top: 8px; cursor: pointer; border-radius: 4px; position: relative; z-index: 1010; }

/* העלאת קבצים */
.kashrut-form-body .upload-box {
	border: 2px dashed var(--border);
	background: #faf9f6;
	border-radius: 8px;
	padding: 24px 15px;
	text-align: center;
	position: relative;
	z-index: 1010;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.kashrut-form-body .upload-box:hover { background: #f4efe4; border-color: var(--gold); }
.kashrut-form-body .upload-box input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 1020;
	display: block;
	pointer-events: auto !important;
}
.kashrut-form-body .upload-label { font-size: 14px; font-weight: 700; color: var(--dark); display: block; pointer-events: none; }
.kashrut-form-body .upload-hint { font-size: 12px; color: var(--muted); margin-top: 4px; pointer-events: none; }
.kashrut-form-body .selected-files-list { margin-top: 12px; font-size: 13px; color: #333; list-style: none; padding: 0; }
.kashrut-form-body .selected-files-list li { background: #fdfcfa; border: 1px solid var(--border); padding: 8px 12px; border-radius: 4px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kashrut-form-body .selected-files-list li.is-invalid { border-color: var(--red); color: var(--red); }
.kashrut-form-body .file-status { white-space: nowrap; font-size: 12px; }
.kashrut-form-body .file-status.ok { color: var(--green); }
.kashrut-form-body .file-status.bad { color: var(--red); }

.kashrut-form-body .btn-group { display: flex; justify-content: center; align-items: stretch; margin-top: 20px; gap: 14px; position: relative; z-index: 1010; flex-direction: row; }
.kashrut-form-body .btn-submit { color: white; border: none; padding: 15px 44px; font-size: 16px; font-weight: 700; border-radius: 6px; cursor: pointer; text-align: center; transition: opacity 0.2s; pointer-events: auto !important; background-color: #1a2e4a; }
.kashrut-form-body .btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.kashrut-form-body .btn-print { background: #fff; border: 1px solid #1a2e4a; color: #1a2e4a; padding: 15px 28px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 15px; text-align: center; pointer-events: auto !important; }

.kashrut-form-body .btn-add-row {
	background: #fff;
	border: 1px dashed #b8962e;
	color: #b8962e;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	margin-top: 10px;
	font-weight: 600;
	display: inline-block;
	position: relative;
	z-index: 1010;
	pointer-events: auto !important;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

.kashrut-form-body .btn-del-row {
	color: var(--red);
	background: none;
	border: none;
	cursor: pointer;
	font-weight: bold;
	font-size: 16px;
	pointer-events: auto !important;
	position: relative;
	z-index: 1010;
}

.kashrut-form-body .council-rep { margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--border); font-size: 12px; color: #555; }

/* שדה מלכודת לבוטים: מוסתר מבני אדם, לא מוסתר ב-display כדי שבוטים ימלאו אותו.
   בלי הזזה הצידה: בדף RTL הזזה שמאלה יוצרת גלילה אופקית במובייל. */
.kashrut-form-body .kfew-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

.kashrut-form-body .kfew-message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 6px; font-size: 14px; line-height: 1.6; text-align: center; }
.kashrut-form-body .kfew-message.is-success { display: block; background: #f4fbf6; border: 1px solid var(--green); color: #1e7e34; }
.kashrut-form-body .kfew-message.is-error { display: block; background: #fdf3f2; border: 1px solid var(--red); color: var(--red); }

.kashrut-form-body .kfew-toast { display: none; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #27ae60; color: white; padding: 14px 28px; border-radius: 6px; font-size: 15px; z-index: 99999; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

@media (max-width: 767px) {
	.kashrut-form-body .field.half, .kashrut-form-body .field.third, .kashrut-form-body .field.quarter { flex: 100%; min-width: 100%; }
	.kashrut-form-body .btn-group { flex-direction: column; width: 100%; }
	.kashrut-form-body .btn-submit, .kashrut-form-body .btn-print { width: 100%; }
}

@media print {
	.kashrut-form-body .btn-group, .kashrut-form-body .btn-add-row, .kashrut-form-body .btn-del-row, .kashrut-form-body .btn-clear-sig, .kashrut-form-body .upload-box, .kashrut-form-body .kfew-message { display: none !important; }
}
