@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Assistant:wght@400;600;700;800&display=swap');

#ces-wizard-root {
	--ces-black: #FAF7F2;
	--ces-charcoal: #FFFFFF;
	--ces-charcoal-2: #F3EEE6;
	--ces-line: #E3DCD1;
	--ces-red: #C81E2C;
	--ces-red-bright: #E23A48;
	--ces-red-deep: #9E1521;
	--ces-text: #1A1816;
	--ces-text-muted: #7A7268;
	--ces-btn-text: #FFF9F5;

	font-family: 'Assistant', sans-serif;
	background: var(--ces-black);
	background-image: radial-gradient(circle at 100% 0%, rgba(200,30,44,0.05), transparent 45%);
	color: var(--ces-text);
	border-radius: 16px;
	max-width: 640px;
	margin: 0 auto;
	position: relative;
	padding-bottom: 100px;
	box-shadow: 0 0 0 1px var(--ces-line), 0 20px 60px rgba(0,0,0,0.12);
	overflow: hidden;
}

#ces-wizard-root * { box-sizing: border-box; }

#ces-wizard-root h1, #ces-wizard-root h2, #ces-wizard-root h3 {
	font-family: 'Assistant', sans-serif;
	font-weight: 800;
	color: var(--ces-text);
	margin: 0 0 6px;
}

.ces-loading {
	padding: 70px 20px;
	text-align: center;
}
.ces-loading::after {
	content: 'טוען...';
	display: block;
	margin-top: 16px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ces-text);
}
.ces-loading span {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 4px;
	border-radius: 50%;
	background: var(--ces-red);
	animation: ces-bounce 1s infinite ease-in-out both;
}
.ces-loading span:nth-child(1) { animation-delay: -0.32s; }
.ces-loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes ces-bounce {
	0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; }
	40% { transform: scale(1); opacity: 1; }
}
.ces-init-error {
	padding: 70px 24px;
	text-align: center;
}
.ces-init-error p {
	font-size: 17px;
	color: var(--ces-text);
	margin: 0 0 20px;
}
.ces-init-error .ces-btn { display: inline-block; width: auto; padding: 12px 32px; }

.ces-topbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.ces-back-btn {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
	background: var(--ces-charcoal); border: 1px solid var(--ces-line);
	color: var(--ces-text); cursor: pointer; font-size: 16px;
	transition: border-color .15s, background .15s;
}
.ces-back-btn:hover { border-color: var(--ces-red); background: var(--ces-charcoal-2); }
.ces-back-btn.ces-invisible { visibility: hidden; }

.ces-faq-btn {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
	background: var(--ces-charcoal); border: 1px solid var(--ces-line);
	color: var(--ces-red); cursor: pointer; font-size: 15px; font-weight: 800;
	transition: border-color .15s;
}
.ces-faq-btn:hover { border-color: var(--ces-red); }

.ces-faq-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.65);
	display: flex; align-items: flex-end; justify-content: center;
	z-index: 9999;
}
.ces-faq-panel {
	background: var(--ces-charcoal); border-top: 1px solid var(--ces-red);
	border-radius: 18px 18px 0 0; width: 100%; max-width: 640px;
	max-height: 78vh; display: flex; flex-direction: column;
	padding: 18px 20px 24px; animation: ces-slide-up .25s ease;
}
@keyframes ces-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ces-faq-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ces-faq-header h3 { font-size: 20px; margin: 0; }
.ces-faq-close { background: none; border: none; color: var(--ces-text-muted); font-size: 18px; cursor: pointer; }
.ces-faq-search {
	width: 100%; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
	background: var(--ces-black); border: 1px solid var(--ces-line); color: var(--ces-text); font-size: 15px;
}
.ces-faq-search:focus { outline: none; border-color: var(--ces-red); }
.ces-faq-list { overflow-y: auto; }
.ces-faq-item { padding: 12px 0; border-bottom: 1px solid var(--ces-line); }
.ces-faq-item h4 { font-family: 'Assistant', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--ces-text); }
.ces-faq-item p { font-size: 13px; color: var(--ces-text-muted); margin: 0; line-height: 1.5; }

.ces-progress { display: flex; gap: 5px; flex: 1; }
.ces-progress .dot { flex: 1; height: 4px; background: var(--ces-line); border-radius: 3px; transition: background .3s, box-shadow .3s; }
.ces-progress .dot.done { background: var(--ces-red-deep); }
.ces-progress .dot.active { background: var(--ces-red); box-shadow: 0 0 8px rgba(255,74,82,0.6); }

.ces-step { padding: 20px 20px 28px; animation: ces-fade .28s ease; }
@keyframes ces-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ces-eyebrow {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	color: var(--ces-red);
	margin-bottom: 6px; display: block;
}
.ces-step h2 { font-size: 26px; line-height: 1.25; }
.ces-step p.ces-hint { color: var(--ces-text-muted); font-size: 14px; margin: 6px 0 22px; line-height: 1.5; }

.ces-cards { display: flex; flex-direction: column; gap: 12px; }
.ces-card {
	background: var(--ces-charcoal);
	border: 1px solid var(--ces-line);
	border-radius: 12px;
	padding: 16px 18px;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s;
	text-align: right;
	display: flex; align-items: center; gap: 14px;
}
.ces-card:hover { border-color: var(--ces-red); transform: translateY(-1px); }
.ces-card:active { transform: translateY(0); }
.ces-card.selected {
	border-color: var(--ces-red);
	background: linear-gradient(135deg, var(--ces-charcoal-2), var(--ces-charcoal));
	box-shadow: inset 0 0 0 1px var(--ces-red);
}
.ces-card-icon {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
	background: var(--ces-charcoal-2); display: flex; align-items: center; justify-content: center;
	font-size: 20px; color: var(--ces-red);
}
.ces-card.selected .ces-card-icon { background: var(--ces-red); color: var(--ces-btn-text); }
.ces-card-body { flex: 1; }
.ces-card h3 { font-size: 17px; margin-bottom: 2px; }
.ces-card p { font-size: 13px; color: var(--ces-text-muted); margin: 0; line-height: 1.4; }
.ces-card-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ces-line); position: relative; }
.ces-card.selected .ces-card-check { background: var(--ces-red); border-color: var(--ces-red); }
.ces-card.selected .ces-card-check::after {
	content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 6px;
	border-left: 2px solid var(--ces-btn-text); border-bottom: 2px solid var(--ces-btn-text);
	transform: translateY(-1px) rotate(-45deg);
}

.ces-stepper { display: flex; align-items: center; gap: 22px; justify-content: center; padding: 20px 0 8px; }
.ces-stepper button {
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--ces-charcoal); border: 1px solid var(--ces-line);
	color: var(--ces-text); font-size: 22px; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.ces-stepper button:hover { border-color: var(--ces-red); }
.ces-stepper button:active { background: var(--ces-red); border-color: var(--ces-red); }
.ces-stepper .count { font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 40px; min-width: 70px; text-align: center; }

.ces-addon-list { display: flex; flex-direction: column; gap: 2px; }
.ces-addon-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 6px; border-bottom: 1px solid var(--ces-line);
	transition: background .15s;
}
.ces-addon-row:hover { background: rgba(255,255,255,0.02); }
.ces-addon-row label { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; flex: 1; }
.ces-addon-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ces-red); }
.ces-addon-price { color: var(--ces-text-muted); font-size: 13px; white-space: nowrap; font-weight: 600; }

.ces-field { margin-bottom: 16px; }
.ces-field label { display: block; font-size: 13px; color: var(--ces-text-muted); margin-bottom: 6px; font-weight: 600; }
.ces-field input, .ces-field select {
	width: 100%; padding: 13px 14px; border-radius: 10px;
	background: var(--ces-charcoal); border: 1px solid var(--ces-line);
	color: var(--ces-text); font-size: 15px; font-family: inherit;
	transition: border-color .15s;
}
.ces-field input:focus, .ces-field select:focus { outline: none; border-color: var(--ces-red); }
.ces-field-note { font-size: 12px; color: var(--ces-red-bright); margin-top: 6px; line-height: 1.5; }

.ces-summary-box { background: var(--ces-charcoal); border: 1px solid var(--ces-line); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.ces-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--ces-line); }
.ces-summary-line .label { color: var(--ces-text-muted); }
.ces-summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 24px; color: var(--ces-red); }
.ces-summary-per-guest { text-align: left; font-size: 13px; color: var(--ces-text-muted); font-weight: 600; margin-top: 2px; }

/* --- Menu preview / invitation card --- */
.ces-menu-card {
	border: 1px solid var(--ces-red-deep);
	border-radius: 14px;
	padding: 26px 20px;
	text-align: center;
	background: radial-gradient(circle at 50% 0%, rgba(255,74,82,0.10), transparent 60%);
	margin-bottom: 20px;
}
.ces-menu-card .ces-mc-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ces-red); margin-bottom: 10px; }
.ces-menu-card h3 { font-size: 22px; margin-bottom: 4px; }
.ces-menu-card .ces-mc-sub { color: var(--ces-text-muted); font-size: 13px; margin-bottom: 18px; }
.ces-menu-card .ces-mc-divider { width: 40px; height: 2px; background: var(--ces-red); margin: 0 auto 18px; }
.ces-menu-card .ces-mc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--ces-text-muted); border-top: 1px dashed var(--ces-line); }
.ces-menu-card .ces-mc-row span:last-child { color: var(--ces-text); font-weight: 600; }

.ces-btn-secondary-inline {
	padding: 8px 16px; border-radius: 20px; border: 1px solid var(--ces-line);
	background: var(--ces-charcoal); color: var(--ces-text); font-size: 14px; font-weight: 700;
	cursor: pointer; transition: border-color .15s;
}
.ces-btn-secondary-inline:hover { border-color: var(--ces-red); }
.ces-btn {
	flex: 1; padding: 15px; border-radius: 10px; border: none; cursor: pointer;
	font-family: 'Assistant', sans-serif; font-size: 16px; font-weight: 800;
	transition: background .15s, transform .1s;
}
.ces-btn-primary { background: var(--ces-red); color: var(--ces-btn-text); }
.ces-btn-primary:hover { background: var(--ces-red-bright); }
.ces-btn-primary:active { transform: scale(0.98); }
.ces-btn-primary:disabled { background: var(--ces-line); color: var(--ces-text-muted); cursor: not-allowed; }

.ces-price-bar {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(180deg, var(--ces-charcoal), var(--ces-charcoal-2));
	border-top: 1px solid var(--ces-red);
	padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ces-price-bar .ces-price-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ces-price-bar .ces-price-amount { flex: 0 0 auto; }
.ces-price-bar .ces-price-label { font-size: 14px; color: var(--ces-text-muted); font-weight: 700; }
.ces-price-bar .ces-price-deposit { display: block; font-size: 18px; font-weight: 800; color: var(--ces-red); margin-top: 4px; white-space: nowrap; }
.ces-price-bar .ces-price-per-guest { display: block; font-size: 13px; font-weight: 600; color: var(--ces-text-muted); margin-top: 3px; white-space: nowrap; }
.ces-price-bar .ces-price-amount { font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 32px; color: var(--ces-text); white-space: nowrap; }
.ces-price-bar .ces-price-amount small { font-size: 15px; color: var(--ces-red); font-family: 'Assistant', sans-serif; font-weight: 800; display:block; margin-top: 3px; }

.ces-success { text-align: center; padding: 40px 24px; }
.ces-success .ces-check {
	width: 64px; height: 64px; border-radius: 50%; background: var(--ces-red);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
	font-size: 30px; color: var(--ces-btn-text);
}

@media (min-width: 640px) {
	.ces-cards.ces-cards-grid { flex-direction: row; flex-wrap: wrap; }
	.ces-cards.ces-cards-grid .ces-card { flex: 1 1 45%; }
}

/* v2: marketing consent + honeypot */
.ces-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ces-text-muted); margin: 6px 0 16px; cursor: pointer; }
.ces-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.ces-terms-box { margin: 18px 0 16px; padding: 12px 14px; border: 1px solid var(--ces-border, #e2dcd3); border-radius: 12px; background: rgba(0,0,0,.02); }
.ces-terms-box .ces-consent { margin: 0; color: inherit; font-weight: 600; }
.ces-terms-list { margin: 8px 28px 0 0; padding: 0; font-size: 12.5px; line-height: 1.55; color: var(--ces-text-muted); }
.ces-terms-list li { margin-bottom: 3px; }
.ces-terms-line { margin: 18px 0 16px; font-size: 14px; color: inherit; }
.ces-terms-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(20,17,15,.6); display: grid; place-items: center; padding: 14px; }
.ces-terms-modal__box { position: relative; width: 100%; max-width: 680px; max-height: calc(100vh - 28px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 22px 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); direction: rtl; text-align: right; }
.ces-terms-modal__box h3 { margin: 0 0 10px; padding-inline-end: 40px; font-size: 20px; }
.ces-terms-modal__body { overflow: auto; flex: 1; font-size: 14px; line-height: 1.65; padding-inline-end: 4px; }
.ces-terms-modal__body h2 { font-size: 16px; margin: 16px 0 6px; }
.ces-terms-modal__body ul { margin: 0 18px 8px 0; padding: 0; }
.ces-terms-modal__body li { margin-bottom: 4px; }
.ces-terms-modal__body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; }
.ces-terms-modal__body th, .ces-terms-modal__body td { border: 1px solid #e5ddd3; padding: 6px 8px; vertical-align: top; }
.ces-terms-modal__body th { background: #faf6f1; }
.ces-terms-modal__close { position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2ede6; cursor: pointer; font-size: 15px; }
.ces-terms-modal__ok { margin-top: 12px; width: 100%; }
/* Clipped, not offset: a far-left element in RTL widens the scrollable page. */
.ces-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
