/* ==========================================================================
   Single event_register — layout + form card
   Loaded only on single event_register posts.
   ========================================================================== */

body.single-event_register {
	background-color: rgba(255, 255, 255, 1);
	background-position: top center;
	background-repeat: repeat;
	background-size: auto;
	background-attachment: scroll;
	color: #474747;
	font-family: inherit;
	font-weight: 400;
	font-size: 18px;
	line-height: 2.1;
}

.emed-er-wrap {
	margin: 0 auto;
	box-sizing: border-box;
	max-width: 1500px;
	
}

.emed-er-page-title {
	font-size: 32px;
	font-weight: 700;
	color: #093E5A;
	margin: 0 0 24px;
	text-align: center;
}

.emed-er-mobile-banner {
	display: none;
}

.emed-er-cols {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 60px;
	flex-direction: row;
}

.emed-er-col-form {
	flex: 0 0 33.333%;
	max-width: 33.333%;
	box-sizing: border-box;
	display: flex;
}

.emed-er-col-content {
	flex: 0 0 calc(66.666% - 60px);
	max-width: calc(66.666% - 60px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
.emed-er-col-content .wp-caption {
	width: 100% !important;
    border: none;
    padding: 0;
    margin: 0;
}
.emed-er-col-content img.aligncenter  {
	padding: 0;
	margin: 0;
}
.emed-er-already-link {
	background-color: #42A9F8;
    font-family: "Noto Sans Hebrew", sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1em;
    letter-spacing: 0.5px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    color: #F8F8F8 !important;
    border-radius: 15px;
	padding: 7px 20px;
}
.emed-er-col-content > * { width: 100%; }

.emed-er-col-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border:none;
}

.emed-er-col-image-mobile { display: none; }

/* ---- form card ---- */
.emed-er-form-card {
	background-color: #E9F4FF;
	border-width: 0;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
	padding: 3px 20px 20px 20px;
	display: flex;
	flex-wrap: wrap;
	position: relative;
	width: 100%;
	align-content: flex-start;
	align-items: flex-start;
	/*color: #fff;*/
	box-sizing: border-box;
	border-radius: 15px;
}

.emed-er-form-card .emed-er-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.emed-er-form-title {
	width: 100%;
	margin: 20px 0 12px;
	padding-bottom: 12px;
	text-align: center;
}

/* labels hidden but accessible */
.emed-er-form label.screen-reader-text,
.emed-er-form .emed-er-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.emed-er-form input[type="text"],
.emed-er-form input[type="email"],
.emed-er-form input[type="tel"],
.emed-er-form select {
	width: 100%;
	height: 46px;
	padding: 10px 14px;
	border: 1px solid #BAD5DB;
	background: #fff;
	color: #333;
	border-radius: 15px;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	direction: rtl;
	appearance: none;
	-webkit-appearance: none;
	outline: none !important;
}

.emed-er-form select {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMCA2Ij48cGF0aCBmaWxsPSIjMDkzRTVBIiBkPSJNMCAwbDUgNiA1LTZ6Ii8+PC9zdmc+");
	background-repeat: no-repeat;
	background-position: left 14px center;
	background-size: 12px 6px;
	padding-left: 30px;
}

.emed-er-form input::placeholder { color: #8a8a8a; }
.emed-er-form select option { color: #333; }
.emed-er-form select option[value=""] { color: #8a8a8a; }

.emed-er-form input.error,
.emed-er-form select.error {
	border-color: #f15a5a;
	box-shadow: 0 0 0 2px rgba(241, 90, 90, 0.25);
}

.emed-er-disclaimer-wrap {
	width: 100%;
	margin-top: 6px;
	/*color: #fff;*/
	font-size: 13px;
	line-height: 1.4;
	text-align: right;
	font-weight: 500;
}

.emed-er-disclaimer-wrap label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.emed-er-disclaimer-wrap input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
}

.emed-er-disclaimer-wrap a {
	text-decoration: underline;
}

.emed-er-community-wrap {
	width: 100%;
	margin-top: 6px;
	/*color: #fff;*/
	font-size: 14px;
	line-height: 1.6;
}

.emed-er-community-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin-bottom: 10px;
}

.emed-er-community-label input[type="checkbox"] {
	flex-shrink: 0;
}

.emed-er-license-row {
	width: 100%;
}
.emed-er-col-content div .wp-caption {
	border: none;
	padding: 0;
	margin: 0;
}
/* ---- thank you section ---- */
.emed-er-thank-you {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	padding: 30px 20px;
	box-sizing: border-box;
}

.emed-er-ty-icon {
	height: 100px;
	width: auto;
	margin-bottom: 20px;
}

.emed-er-ty-title {
	width: 100%;
	margin: 0 0 16px;
	padding-bottom: 12px;
	xt-align: center;
}

.emed-er-ty-summary {
	width: 100%;
	font-size: 20px;
	line-height: 1.6;
}

.emed-er-ty-summary a {
	/*color: #fff;*/
	text-decoration: underline;
}

.emed-er-submit {
	width: 100%;
	margin-top: 8px;
	padding: 14px 20px;
	background: #fff;
	border: 0;
	border-radius: 15px !important;
	font-size: 18px !important;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.emed-er-submit:hover { background: #e7f1f8; }
.emed-er-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.emed-er-status {
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	border-radius: 15px;
	text-align: center;
	font-size: 14px;
	display: none;
}

.emed-er-status.success { color: #1f7a3f; display: block; font-weight: 600; }
.emed-er-status.error   { color: #a83232; display: block; font-weight: 600; }

.emed-er-already-registered {
	width: 100%;
	padding: 30px 20px;
	box-sizing: border-box;
	text-align: center;
	font-size: 24px;
	line-height: 1.4;
	font-family: "noto sans hebrew", sans-serif;
	font-weight: 500;
	color: #093E5A
}

/* ---- LTR override (english via ?lang=en) ---- */
body.emed-er-lang-en .emed-er-wrap,
body.emed-er-lang-en .emed-er-form-card,
body.emed-er-lang-en .emed-er-form,
body.emed-er-lang-en .emed-er-page-title,
body.emed-er-lang-en .emed-er-form-title,
body.emed-er-lang-en .emed-er-disclaimer-wrap {
	direction: ltr;
	text-align: left;
}

body.emed-er-lang-en .emed-er-page-title,
body.emed-er-lang-en .emed-er-form-title {
	text-align: center;
}

body.emed-er-lang-en .emed-er-form input[type="text"],
body.emed-er-lang-en .emed-er-form input[type="email"],
body.emed-er-lang-en .emed-er-form input[type="tel"],
body.emed-er-lang-en .emed-er-form select {
	direction: ltr;
	text-align: left;
}

body.emed-er-lang-en .emed-er-form select {
	background-position: right 14px center;
	padding-left: 14px;
	padding-right: 30px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
	.emed-er-cols { flex-direction: column; gap: 20px; }
	.emed-er-col-form,
	.emed-er-col-content {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.emed-er-mobile-banner {
		display: block;
		width: 100%;
		height: 200px;
		background-position: center center;
		background-size: cover;
		background-repeat: no-repeat;
		margin-bottom: 20px;
	}
	.emed-er-page-title { font-size: 26px; }
	.emed-er-col-image-desktop { display: none; }
	.emed-er-col-image-mobile  { display: block; }
}
