/* =====================================================================
   /mafteiach — Partnership signup wizard styles
   All classes are prefixed .mafteiach-* to avoid collision with /donate,
   /portal, and legacy admin CSS.
   ===================================================================== */

.mafteiach-body {
	background: #f2efec;
	font-family: 'Noto Sans Hebrew', 'Roboto', system-ui, sans-serif;
	color: #201f1e;
	margin: 0;
	min-height: 100vh;
}

.mafteiach-body[dir="rtl"] { direction: rtl; }

/* ---------- Top nav ---------- */
.mf-nav {
	background: #fff;
	height: 80px;
	display: flex;
	align-items: center;
	padding: 0 50px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.mf-nav__inner {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mf-nav__logo img { height: 60px; width: auto; display: block; }
.mf-nav__right { display: flex; align-items: center; gap: 20px; }
.mf-nav__phone {
	display: inline-flex; align-items: center; gap: 8px;
	color: #201f1e; text-decoration: none;
	font-size: 16px; font-weight: 600;
}
.mf-nav__login {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 24px;
	background: #eb685f; color: #fff; text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 16px;
}
.mf-nav__login:hover { filter: brightness(0.95); }

/* ---------- Banner ---------- */
.mf-banner {
	height: 444px;
	background-color: #2f3e3f;
	background-image: url('/images/donate-banner.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
@media (max-width: 900px) {
	.mf-banner { height: 240px; background-image: url('/images/donate-banner-mobile.png'); }
}

/* ---------- Intro block ---------- */
.mf-intro {
	background: #fff;
	padding: 50px 95px;
	display: flex;
	align-items: center;
	gap: 40px;
}
.mf-intro__text {
	flex: 1;
	font-size: 16px;
	line-height: 1.55;
	color: #201f1e;
	text-align: right;
}
.mf-intro__logo img { height: 60px; }

/* ---------- Wizard shell ---------- */
.mafteiach-wizard {
	max-width: 1100px;
	margin: 50px auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#mafteiach-form {
	display: flex; flex-direction: column; gap: 10px;
}

/* ---------- Program selector (Regular donation | Partnership) ---------- */
.mf-programs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.mf-programs__card {
	background: #fff;
	color: #201f1e;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 20px;
	min-height: 180px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mf-programs__card:hover { border-color: rgba(235,104,95,0.5); }
.mf-programs__card--active,
.mf-programs__card[data-selected] {
	border-color: #eb685f;
	box-shadow: 0 0 0 3px rgba(235,104,95,0.15);
	background: #fff;
	color: #201f1e;
}
.mf-programs__icon {
	width: 96px; height: 96px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(235,104,95,0.15);
	color: #eb685f;
	flex-shrink: 0;
}
.mf-programs__card--active .mf-programs__icon,
.mf-programs__card[data-selected] .mf-programs__icon { background: rgba(235,104,95,0.15); color: #eb685f; }
.mf-programs__icon svg { width: 56px; height: 56px; }
.mf-programs__logo {
	width: 100%;
	max-width: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.mf-programs__logo img { width: 100%; height: auto; display: block; }
.mf-programs__title { font-size: 20px; font-weight: 700; line-height: 1.3; text-align: center; }

/* ---------- Step card ---------- */
.mf-step {
	background: #6d6965;
	color: #fff;
	border-radius: 10px;
	padding: 50px;
}
.mf-step--empty { background: #fff; color: #201f1e; }

.mf-step__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 30px;
}
.mf-step--collapsed .mf-step__header { padding-bottom: 0; cursor: pointer; }
.mf-step--collapsed { padding: 30px 50px; }
.mf-step--empty.mf-step--collapsed .mf-step__header { cursor: default; }

.mf-step__num {
	background: #eb685f;
	color: #fff;
	border-radius: 50px;
	min-width: 55px;
	height: 44px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 25px;
	padding: 0 18px;
}
.mf-step--empty .mf-step__num {
	background: #f2efec;
	color: #6d6965;
}
.mf-step__title {
	font-size: 25px; font-weight: 700; margin: 0;
	color: inherit;
}

.mf-step__body { display: none; flex-direction: column; gap: 25px; }
.mf-step--open .mf-step__body { display: flex; }

/* Summary chip shown when a step is filled + collapsed */
.mf-step__summary {
	margin-left: auto;
	display: none;
	align-items: center; gap: 8px;
	background: #f2efec;
	color: #201f1e;
	border-radius: 50px;
	padding: 10px 18px;
	font-weight: 600; font-size: 14px;
}
.mf-step__summary:not(:empty) { display: inline-flex; }
.mafteiach-body[dir="rtl"] .mf-step__summary { margin-left: 0; margin-right: auto; }
.mf-step__summary--check { color: #05450e; }

/* ---------- Step 1: amount inputs ---------- */
.mf-amount-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
}
.mf-amount-cell {
	background: #fff;
	border-radius: 10px;
	padding: 12px 20px;
	display: flex; flex-direction: column; gap: 10px;
	transition: background .15s ease, color .15s ease;
	position: relative;
}
.mf-amount-cell.is-active {
	background: #eb685f;
	color: #fff;
}
.mf-amount-cell__label {
	font-size: 16px; font-weight: 700; color: #201f1e;
}
.mf-amount-cell.is-active .mf-amount-cell__label { color: #fff; }
.mf-amount-cell__input::placeholder { color: rgba(0,0,0,0.35); }
.mf-amount-cell.is-active .mf-amount-cell__input::placeholder { color: rgba(255,255,255,0.6); }
.mf-amount-cell__input {
	border: none; background: transparent;
	font-family: inherit; font-weight: 900; font-size: 35px;
	color: #eb685f;
	outline: none; width: 100%;
	line-height: 1;
	padding: 0;
	text-align: right;
}
.mafteiach-body[dir="rtl"] .mf-amount-cell__input { text-align: left; }
.mf-amount-cell.is-active .mf-amount-cell__input { color: #fff; }
.mf-amount-cell__suffix {
	font-family: inherit; font-weight: 900; font-size: 35px;
	color: #eb685f;
	line-height: 1;
}
.mf-amount-cell.is-active .mf-amount-cell__suffix { color: #fff; }
.mf-amount-cell__row { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }

/* ---------- Pills (frequency, payment preference) ---------- */
.mf-field-label {
	font-size: 18px; font-weight: 500; color: #fff;
	margin: 0 0 12px 0;
	display: block;
}
.mf-pill-group {
	display: flex; flex-wrap: wrap; gap: 10px;
}
.mf-pill {
	background: #fff; color: #201f1e;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 16px; font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s ease, color .15s ease;
}
.mf-pill.is-active { background: #eb685f; color: #fff; }
.mf-pill:hover:not(.is-active) { background: #f2efec; }

/* Reminder checkbox */
.mf-check {
	display: inline-flex; align-items: center; gap: 10px;
	color: #fff; font-size: 15px; cursor: pointer;
}
.mf-check input { width: 18px; height: 18px; accent-color: #eb685f; }

/* ---------- Nav (Back / Next / Submit) ---------- */
.mf-nav-buttons {
	display: flex; align-items: center; gap: 10px;
	padding-top: 30px;
}
.mf-btn {
	display: inline-flex; align-items: center; gap: 20px;
	background: #eb685f; color: #fff;
	border: none; cursor: pointer;
	border-radius: 50px;
	padding: 12px 25px;
	font-size: 25px; font-weight: 700;
	font-family: inherit;
	text-decoration: none;
}
.mf-btn:disabled, .mf-btn--disabled {
	background: transparent; color: rgba(255,255,255,0.5);
	border: 1px solid rgba(255,255,255,0.5);
	cursor: not-allowed;
}
.mf-btn--busy { opacity: 0.7; cursor: progress; pointer-events: none; }
.mf-btn--ghost {
	background: transparent; color: #fff;
	border: 1px solid rgba(255,255,255,0.5);
	padding: 10px 20px;
	font-size: 20px;
}

/* ---------- Step 2: gateway grid ---------- */
.mf-gateway-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}
.mf-gateway-card {
	background: #fff; color: #201f1e;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 20px;
	min-height: 140px;
	display: flex; flex-direction: column; justify-content: space-between;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mf-gateway-card:hover { border-color: rgba(235,104,95,0.5); }
.mf-gateway-card.is-active {
	background: #eb685f;
	border-color: #eb685f;
	color: #fff;
}
.mf-gateway-card.is-active .mf-gateway-card__label { color: #fff; }
.mf-gateway-card__label { font-weight: 700; font-size: 16px; }
.mf-gateway-card__logo { display: flex; align-items: center; }
.mf-gateway-card__logo img { max-width: 100%; height: auto; object-fit: contain; }
.mf-gateway-card__logo-active { display: none; }
.mf-gateway-card.is-active .mf-gateway-card__logo-default { display: none; }
.mf-gateway-card.is-active .mf-gateway-card__logo-active { display: block; }
.mf-gateway-card__logo-fallback {
	color: #6d6965; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
	background: linear-gradient(135deg, #f2efec 0%, #e6e2de 100%);
	padding: 8px 12px; border-radius: 6px;
	display: inline-block;
}

/* ---------- Inputs ---------- */
.mf-input-row {
	display: grid; gap: 10px;
}
.mf-input-row--4 { grid-template-columns: 49% calc(15% - 5px) calc(17% - 5px) calc(15% - 5px); }
.mf-input-row--2 { grid-template-columns: 1fr 1fr; }
.mf-input-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.mf-input {
	background: #fff; color: #201f1e;
	border: none; border-radius: 10px;
	padding: 14px 20px;
	font-size: 16px;
	font-family: inherit;
	width: 100%;
	height: 50px;
	line-height: 22px;
	box-sizing: border-box;
	outline: none;
	appearance: none; -webkit-appearance: none;
}
select.mf-input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23201f1e' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 20px center;
	padding-right: 44px;
}
.mafteiach-body[dir="rtl"] select.mf-input { background-position: left 20px center; padding-right: 20px; padding-left: 44px; }
.mf-input::placeholder { color: #8a8683; }
.mf-input:focus { box-shadow: 0 0 0 3px rgba(235,104,95,0.3); }
.mf-input--rtl { direction: rtl; text-align: right; }
textarea.mf-input { height: auto; min-height: 120px; line-height: 1.5; }

.mf-section-title {
	font-size: 18px; font-weight: 500;
	margin: 0 0 12px 0;
	color: #fff;
}

.mf-error-list {
	background: #fff5f4; color: #7a2b25;
	border: 1px solid #eb685f;
	border-radius: 10px;
	padding: 14px 18px;
	list-style: none; margin: 0 0 25px 0;
}
.mf-error-list li { line-height: 1.5; }

.mf-hint { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.mf-email-check-msg {
	background: #fff5f4; color: #7a2b25; border: 1px solid #eb685f;
	border-radius: 8px; padding: 10px 14px; margin-top: 6px; font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.mf-nav { padding: 0 20px; }
	.mf-nav__phone { display: none; }
	.mf-intro { padding: 30px 20px; }
	.mf-intro__logo { display: none; }
	.mafteiach-wizard { margin: 20px auto; padding: 0 12px; gap: 12px; }
	.mf-step { padding: 20px; }
	.mf-step--collapsed { padding: 16px 20px; }
	.mf-programs { grid-template-columns: 1fr; }
	.mf-programs__card { padding: 20px; }
	.mf-amount-row { grid-template-columns: 1fr; }
	.mf-input-row--4, .mf-input-row--3, .mf-input-row--2 { grid-template-columns: 1fr; }
	.mf-gateway-grid { grid-template-columns: repeat(2, 1fr); }
	.mf-btn { font-size: 18px; padding: 10px 18px; gap: 12px; }
	.mf-step__title { font-size: 20px; }
	.mf-step__num { font-size: 20px; min-width: 40px; height: 40px; padding: 0 14px; }
}
