/*
 * mycv-free-check-form.css — v0.11.1
 * עיצוב עצמאי לגמרי לתבנית העמוד החדשה (templates/mycv-free-check-template.php).
 * כל המחלקות מתחילות ב-mycvfc- (namespace ייעודי) — נטען רק בעמוד שבו
 * נבחרה התבנית החדשה, כך שאין התנגשות עם free-check.css הישן.
 *
 * v0.11.1, לפי צילומי מסך מהאתר החי: למרות שהתבנית עצמאית מאלמנטור
 * (לא רצה בתוך עמוד שנבנה איתו), היא **עדיין** קוראת get_header()/
 * get_footer() — כך שגיליון העיצוב הגלובלי של ה-theme עצמו (לא של
 * אלמנטור) עדיין נטען בעמוד וקובע עיצוב ברירת מחדל ל-<button>/<a>
 * (כאן: מסגרת/טקסט ורוד-מגנטה במקום הצבעים שהוגדרו). אותו סוג בדיוק
 * של עימות CSS שכבר תוקן שוב ושוב בטופס הישן (free-check.css) —
 * הפתרון זהה: !important על כל כפתורי הטופס (רקע/מסגרת/טקסט + hover).
 */

/* ===== טוקנים ויזואליים — מחייב לפי המפרט ===== */
:root {
	--mycvfc-blue: #2A5C8A;
	--mycvfc-gold: #B8860B;
	--mycvfc-amber: #D98E3A;
	--mycvfc-green: #3E8E5C;
	--mycvfc-cream: #F7F3EC;
	--mycvfc-ink: #2B2A28;
	--mycvfc-muted: #6E675C;
	--mycvfc-line: #E4DCCF;
	--mycvfc-card: #FFFFFF;
	--mycvfc-error: #B4483C;
}

#mycvfc-page,
#mycvfc-page * {
	box-sizing: border-box;
}

#mycvfc-page {
	font-family: 'Assistant', Arial, sans-serif;
	font-weight: 400;
	color: var(--mycvfc-ink);
	/* v0.11.10 — לפי בקשה מפורשת: כשמוטמע כשורטקוד בתוך עמוד קיים
	   (ראה v0.11.9), הרקע הקרם מסביב לכרטיס יצר "תיבה" עם צבע רקע שונה
	   מרקע הדף שמסביבה. שקוף בכוונה כדי שהרקע של הדף המארח "יעבור
	   דרך" — הכרטיס עצמו (.mycvfc-card) נשאר לבן ולא מושפע. */
	background: transparent;
	padding: 48px 16px;
	display: flex;
	justify-content: center;
}

#mycvfc-page h1,
#mycvfc-page h2,
#mycvfc-page h3,
#mycvfc-page button {
	font-family: 'Rubik', Arial, sans-serif;
}

/* ===== כרטיס ===== */
.mycvfc-card {
	width: 100%;
	max-width: 640px;
	background: var(--mycvfc-card);
	border: 1px solid var(--mycvfc-line);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(42, 92, 138, .08);
	padding: 36px 40px 32px;
}

/* ===== מחוון שלבים ===== */
.mycvfc-progress {
	display: flex;
	align-items: flex-start;
	margin-bottom: 32px;
}

.mycvfc-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	width: 96px;
}

.mycvfc-step[data-editable="true"] {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
}

.mycvfc-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Rubik', Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
	border: 2px solid var(--mycvfc-line);
	background: #fff;
	color: var(--mycvfc-muted);
}

.mycvfc-step-label {
	font-size: 14.5px;
	color: var(--mycvfc-muted);
	text-align: center;
	line-height: 1.25;
}

.mycvfc-step.is-current .mycvfc-circle {
	background: var(--mycvfc-blue);
	border-color: var(--mycvfc-blue);
	color: #fff;
}

.mycvfc-step.is-current .mycvfc-step-label {
	color: var(--mycvfc-blue);
	font-weight: 600;
}

.mycvfc-step.is-done .mycvfc-circle {
	background: var(--mycvfc-green);
	border-color: var(--mycvfc-green);
	color: #fff;
	font-size: 18px;
}

.mycvfc-step.is-done .mycvfc-step-label {
	color: var(--mycvfc-green);
}

.mycvfc-connector {
	flex: 1;
	height: 2px;
	background: var(--mycvfc-line);
	margin-top: 19px; /* חצי מגובה העיגול (38px) — כדי שהקו יתחבר למרכזו */
}

.mycvfc-connector.is-done {
	background: var(--mycvfc-green);
}

/* ===== כותרות/טקסט כללי ===== */
.mycvfc-title {
	font-size: 25px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--mycvfc-ink) !important;
}

.mycvfc-subtitle {
	font-size: 16px;
	color: var(--mycvfc-muted);
	margin: 0 0 24px;
	line-height: 1.5;
}

/* ===== שדות ===== */
.mycvfc-field {
	margin-bottom: 22px;
}

.mycvfc-field-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.mycvfc-field label {
	font-size: 17px;
	font-weight: 600;
	color: var(--mycvfc-ink);
}

.mycvfc-badge {
	font-size: 12.5px;
	color: var(--mycvfc-blue);
	background: rgba(42, 92, 138, .08);
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

.mycvfc-note {
	font-size: 13.5px;
	color: var(--mycvfc-muted);
	white-space: nowrap;
}

.mycvfc-textarea,
.mycvfc-input {
	display: block;
	width: 100%;
	min-height: 48px;
	border: 1.5px solid var(--mycvfc-line) !important;
	border-radius: 12px !important;
	background: #FDFCFA;
	font-family: 'Assistant', Arial, sans-serif;
	font-size: 16px; /* חובה — מונע זום אוטומטי ב-iOS */
	color: var(--mycvfc-ink);
	padding: 13px 16px;
}

.mycvfc-textarea {
	height: 132px;
	resize: vertical;
}

.mycvfc-textarea::placeholder,
.mycvfc-input::placeholder {
	color: var(--mycvfc-muted);
	font-size: 15px;
}

.mycvfc-textarea:focus,
.mycvfc-input:focus {
	outline: none;
	border-color: var(--mycvfc-blue) !important;
	box-shadow: 0 0 0 3px rgba(42, 92, 138, .10);
}

/* v0.11.15: הוסרו .mycvfc-field.has-error / .mycvfc-field-error-text — אף
 * קוד (PHP/JS) לא מייצר אותן; הודעות הוולידציה בפועל הן .mycvfc-validation-msg
 * ו-.mycvfc-error-banner. */

.mycvfc-textarea-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--mycvfc-muted);
}

/* ===== מפריד "או" ===== — flex עם קו בשני הצדדים, כדי שהמילה תהיה
בדיוק במרכז הקו האנכי (לא תלוי בגובה/font-metrics כמו הגישה הקודמת
עם position:relative+top, שיצרה פער נראה לעין בין הטקסט לקו). */
.mycvfc-or-sep {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0;
}

.mycvfc-or-sep::before,
.mycvfc-or-sep::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--mycvfc-line);
}

.mycvfc-or-sep span {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mycvfc-muted);
	white-space: nowrap;
}

/* ===== כפתורי בחירת קובץ ===== */
.mycvfc-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mycvfc-file-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.mycvfc-btn-file-primary,
.mycvfc-btn-file-secondary {
	font-family: 'Rubik', Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	border-radius: 11px !important;
	padding: 11px 20px;
	cursor: pointer;
	min-height: 44px;
	white-space: nowrap;
}

.mycvfc-btn-file-primary {
	background: #fff !important;
	border: 1.5px solid var(--mycvfc-blue) !important;
	color: var(--mycvfc-blue) !important;
}

.mycvfc-btn-file-primary:hover,
.mycvfc-btn-file-primary:focus-visible {
	background: rgba(42, 92, 138, .06) !important;
	border-color: var(--mycvfc-blue) !important;
	color: var(--mycvfc-blue) !important;
}

.mycvfc-btn-file-secondary {
	background: #fff !important;
	border: 1.5px solid var(--mycvfc-line) !important;
	color: var(--mycvfc-muted) !important;
}

.mycvfc-btn-file-secondary:hover,
.mycvfc-btn-file-secondary:focus-visible {
	border-color: var(--mycvfc-muted) !important;
	background: #fff !important;
	color: var(--mycvfc-muted) !important;
}

.mycvfc-file-status {
	font-size: 14.5px;
	color: var(--mycvfc-muted);
}

/* ===== שורת קובץ שנבחר (תמונות, עד 3) ===== */
.mycvfc-file-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mycvfc-file-list:empty {
	margin-top: 0;
}

.mycvfc-file-list-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--mycvfc-cream);
	border: 1px solid var(--mycvfc-line);
	border-radius: 10px;
	padding: 8px 12px;
}

.mycvfc-file-icon {
	width: 34px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 6px;
	background: rgba(42, 92, 138, .12);
	color: var(--mycvfc-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
}

.mycvfc-file-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: end;
}

.mycvfc-file-name {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14.5px;
	color: var(--mycvfc-ink);
}

.mycvfc-file-size {
	font-size: 13px;
	color: var(--mycvfc-muted);
	white-space: nowrap;
}

.mycvfc-file-remove {
	background: none !important;
	border: none !important;
	color: var(--mycvfc-muted) !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
	min-width: 28px;
	min-height: 28px;
}

.mycvfc-file-remove:hover,
.mycvfc-file-remove:focus-visible {
	color: var(--mycvfc-error) !important;
	background: none !important;
}

/* ===== מצב "הועלה" (קובץ קורות חיים יחיד, שלב 2) ===== */
.mycvfc-file-list-row.is-uploaded {
	background: #F1F7F3;
	border-color: var(--mycvfc-green);
}

.mycvfc-file-check {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--mycvfc-green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}

/* ===== כפתורי CTA ===== */
.mycvfc-cta-divider {
	border-top: 1px solid var(--mycvfc-line);
	margin: 0 0 28px;
}

.mycvfc-btn-cta {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: var(--mycvfc-gold) !important;
	color: #fff !important;
	font-family: 'Rubik', Arial, sans-serif;
	font-weight: 600;
	font-size: 18.5px;
	border: none !important;
	border-radius: 12px !important;
	/* padding/height/line-height כולם !important: כפתור <button> מקבל
	padding ברירת-מחדל מה-theme (בשונה מ-<a>, שאין לו כזה — זו הסיבה
	שכפתור "לדו״ח המלא" ב-<a> תמיד נראה ממורכז נכון גם בלי זה) — אם
	ה-theme מוסיף padding משלו, הטקסט לא נשאר ממורכז אנכית בתוך
	height:56px הקבוע, כי ה-line-height "בורח" מעבר לאזור התוכן
	שנשאר אחרי הפחתת ה-padding. padding:0 מבטיח שכל 56px פנויים
	ל-line-height שממרכז את הטקסט. */
	padding: 0 !important;
	height: 56px !important;
	line-height: 56px !important;
	vertical-align: middle;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(184, 134, 11, .24);
	text-decoration: none !important;
}

.mycvfc-btn-cta:hover,
.mycvfc-btn-cta:focus-visible {
	background: #A2790A !important;
	color: #fff !important;
}

.mycvfc-btn-cta:disabled {
	opacity: .7;
	cursor: wait;
}

.mycvfc-validation-msg {
	font-size: 14px;
	color: var(--mycvfc-error);
	text-align: center;
	margin: 0 0 14px;
}

.mycvfc-privacy-note {
	text-align: center;
	font-size: 14px;
	color: var(--mycvfc-muted);
	margin: 14px 0 0;
}

.mycvfc-privacy-note a {
	color: var(--mycvfc-blue) !important;
	font-size: 14px !important;
}

.mycvfc-error-banner {
	background: #FBEAE7;
	border: 1px solid var(--mycvfc-error);
	color: var(--mycvfc-error);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14.5px;
	margin-bottom: 20px;
}

/* v0.11.14, לפי בקשה מפורשת: קישור אופציונלי בתוך banner שגיאה (כרגע רק
 * rate_limit_exceeded, ראה showBanner ב-mycv-free-check-form.js) — מוצג
 * כבלוק נפרד מתחת לטקסט, בצבע המותג (לא אדום כמו הטקסט) כדי שיהיה ברור
 * שזה קישור לחיצה, לא עוד שורת אזהרה. */
.mycvfc-banner-link {
	display: block;
	margin-top: 8px;
	color: var(--mycvfc-blue);
	font-weight: 700;
	text-decoration: underline;
}

.mycvfc-banner-link:hover,
.mycvfc-banner-link:focus {
	color: var(--mycvfc-ink);
}

/* ===== שלב 2 — תחתית ===== */
.mycvfc-step2-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

.mycvfc-btn-link {
	background: none !important;
	border: none !important;
	color: var(--mycvfc-blue) !important;
	font-family: 'Rubik', Arial, sans-serif;
	font-weight: 600;
	font-size: 15.5px;
	cursor: pointer;
	white-space: nowrap;
	padding: 8px 4px;
}

.mycvfc-btn-link:hover,
.mycvfc-btn-link:focus-visible {
	text-decoration: underline;
	color: var(--mycvfc-blue) !important;
	background: none !important;
}

.mycvfc-step2-actions .mycvfc-btn-cta {
	flex: 1;
}

.cf-turnstile {
	margin-bottom: 20px;
}

/* ===== honeypot — מוסתר ויזואלית לגמרי (חייב להישאר קיים ב-DOM לבוטים) ===== */
.mycvfc-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===== שלב 3 — תוצאה ===== */
.mycvfc-score-block {
	background: var(--mycvfc-cream);
	/* v0.11.5 — אותו border בדיוק כמו .mycvfc-sales-block ("רוצה לדעת
	   בדיוק מה לשנות?"), לפי בקשה מפורשת, כדי שלשתי התיבות במסך "ציון
	   התאמה" יהיה מסגור אחיד. */
	border: 1px solid rgba(217, 142, 58, .4);
	border-radius: 16px;
	padding: 24px 26px;
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 24px;
}

.mycvfc-score-circle {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--mycvfc-blue);
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-shrink: 0;
}

.mycvfc-score-circle.is-low { border-color: var(--mycvfc-error); }
.mycvfc-score-circle.is-mid { border-color: var(--mycvfc-amber); }
.mycvfc-score-circle.is-high { border-color: var(--mycvfc-green); }

.mycvfc-score-number {
	font-family: 'Rubik', Arial, sans-serif;
	font-weight: 700;
	font-size: 38px;
	color: var(--mycvfc-ink);
}

.mycvfc-score-suffix {
	font-size: 15px;
	color: var(--mycvfc-muted);
}

.mycvfc-score-copy h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
}

.mycvfc-score-copy p {
	font-size: 15.5px;
	color: var(--mycvfc-muted);
	margin: 0;
	line-height: 1.5;
}

.mycvfc-findings-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 12px;
}

.mycvfc-findings-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mycvfc-findings-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
}

.mycvfc-finding-icon {
	width: 19px;
	height: 19px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #fff;
	margin-top: 2px;
}

.mycvfc-finding-icon.is-strength { background: var(--mycvfc-green); }
.mycvfc-finding-icon.is-gap { background: var(--mycvfc-amber); }

.mycvfc-sales-block {
	background: #FBF4EC;
	border: 1px solid rgba(217, 142, 58, .4);
	border-radius: 16px;
	padding: 22px 24px;
	text-align: center;
}

.mycvfc-sales-block h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 8px;
}

.mycvfc-sales-block p {
	font-size: 15px;
	color: var(--mycvfc-muted);
	margin: 0 0 18px;
	line-height: 1.5;
}

.mycvfc-sales-block .mycvfc-btn-cta {
	margin-bottom: 12px;
}

.mycvfc-sales-examples-link {
	font-size: 14px !important;
	color: var(--mycvfc-blue) !important;
}

/*
 * ===== מצב טעינה בזמן ההמתנה לתוצאה =====
 * מחובר מהטופס הישן (free-check.css, #myresume-loading-overlay) לפי
 * בקשה מפורשת — אותו רכיב/עקרון בדיוק (overlay מלא-מסך, ספינר CSS
 * טהור, קופסה כחולה ממורכזת), רק עם namespace/מחלקות mycvfc- ו-
 * var(--mycvfc-blue) של התבנית החדשה. נוצר/מוסר דינמית ב-JS
 * (showLoadingOverlay ב-mycv-free-check-form.js) — לא קיים ב-DOM
 * כברירת מחדל.
 */
#mycvfc-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 9999;
}

.mycvfc-loading-box {
	background: var(--mycvfc-blue);
	color: #fff;
	border-radius: 12px;
	padding: 32px 28px;
	max-width: 360px;
	width: 100%;
	text-align: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.mycvfc-loading-spinner {
	width: 42px;
	height: 42px;
	margin: 0 auto 20px;
	border: 4px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mycvfc-spin .9s linear infinite;
}

@keyframes mycvfc-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.mycvfc-loading-spinner {
		animation: none;
	}
}

.mycvfc-loading-text {
	margin: 0 0 8px;
	font-family: 'Rubik', Arial, sans-serif;
	font-size: 17.5px;
	font-weight: 600;
	/* גובה מינימלי — מונע "קפיצת" גודל הקופסה כשהטקסט מתחלף בין הודעות
	באורך שונה (אותו טעם כמו בטופס הישן). */
	min-height: 2.6em;
}

.mycvfc-loading-note {
	margin: 0;
	font-size: 13.5px;
	opacity: .85;
}

/* ===== מובייל (עד 640px) ===== */
@media (max-width: 640px) {
	#mycvfc-page {
		padding: 24px 0;
	}

	.mycvfc-card {
		border-radius: 16px;
		padding: 22px 18px;
		margin: 0 12px;
		max-width: none;
	}

	.mycvfc-circle {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.mycvfc-connector {
		margin-top: 16px;
	}

	.mycvfc-step {
		width: 84px;
	}

	.mycvfc-step-label {
		font-size: 12.5px;
	}

	.mycvfc-field {
		margin-bottom: 18px;
	}

	.mycvfc-file-row {
		flex-direction: column;
		align-items: stretch;
	}

	.mycvfc-btn-file-primary,
	.mycvfc-btn-file-secondary {
		width: 100%;
		text-align: center;
	}

	.mycvfc-file-status {
		text-align: center;
	}

	.mycvfc-score-block {
		flex-direction: column;
		text-align: center;
	}

	/* v0.11.8 — לפי צילום מסך: הטקסט (כותרת+פסקה) בתיבת הציון צריך
	   להיות מיושר לימין גם במובייל, לא ממורכז כמו שאר התוכן בתיבה
	   (המעגל/הציון עצמם כן נשארים ממורכזים — רק הטקסט משתנה). override
	   ל-text-align שיורש מ-.mycvfc-score-block למעלה. */
	.mycvfc-score-copy {
		text-align: right;
	}

	.mycvfc-step2-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mycvfc-step2-actions .mycvfc-btn-cta {
		order: 1;
	}

	.mycvfc-step2-actions .mycvfc-btn-link {
		order: 2;
		text-align: center;
	}
}
