/* Savion Questionnaires — Funnel (minimal Phase 1) */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&display=swap&subset=hebrew');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--sq-brand:     #16365C;
	--sq-accent:    #F2A200;
	--sq-btn:       #16365C;
	--sq-btn-text:  #FFFFFF;
	--sq-bg:        #EFE6D6;
	--sq-text:      #0F2742;
	--sq-font:      'Assistant', sans-serif;
}

html, body { height: 100%; font-family: var(--sq-font); background-color: var(--sq-bg); color: var(--sq-text); direction: rtl; }

/* Layout */
.sq-page { min-height: 100vh; display: flex; flex-direction: column; }
.sq-header { padding: 20px; text-align: center; background: var(--sq-brand); }
.sq-header img { max-height: 60px; }
.sq-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.sq-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 32px; width: 100%; max-width: 580px; }

/* Intro */
.sq-intro h1 { font-size: 1.8rem; color: var(--sq-brand); margin-bottom: 12px; }
.sq-intro p  { color: var(--sq-text); line-height: 1.6; margin-bottom: 24px; }
.sq-intro .sq-btn { width: 100%; }

/* Progress bar */
.sq-progress { height: 6px; background: #e0e0e0; border-radius: 3px; margin-bottom: 24px; }
.sq-progress-fill { height: 100%; background: var(--sq-accent); border-radius: 3px; transition: width .3s ease; }
.sq-step-label { font-size: 12px; color: #888; text-align: left; margin-bottom: 4px; }

/* Step */
.sq-step { display: none; }
.sq-step.active { display: block; }

/* Fields */
.sq-field { margin-bottom: 20px; }
.sq-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sq-field input[type=text],
.sq-field input[type=email],
.sq-field input[type=tel],
.sq-field input[type=number],
.sq-field input[type=date],
.sq-field textarea,
.sq-field select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #d0d0d0;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color .2s;
	background: #fff;
	color: var(--sq-text);
}
.sq-field input:focus, .sq-field textarea:focus, .sq-field select:focus { border-color: var(--sq-brand); }
.sq-field .sq-error { color: #c0392b; font-size: 12px; margin-top: 4px; }
.sq-field input.error, .sq-field textarea.error, .sq-field select.error { border-color: #c0392b; }

/* Yes/No + Choice */
.sq-choices { display: flex; flex-direction: column; gap: 10px; }
.sq-choice-btn {
	padding: 12px 18px;
	border: 1.5px solid #d0d0d0;
	border-radius: 8px;
	cursor: pointer;
	text-align: right;
	background: #fff;
	font-size: 15px;
	transition: border-color .2s, background .2s;
}
.sq-choice-btn:hover, .sq-choice-btn.selected {
	border-color: var(--sq-brand);
	background: rgba(22,54,92,.05);
}
.sq-choice-btn input { position: absolute; opacity: 0; pointer-events: none; }

/* File upload */
.sq-file-label {
	display: block;
	padding: 20px;
	border: 2px dashed #d0d0d0;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	color: #888;
	transition: border-color .2s;
}
.sq-file-label:hover { border-color: var(--sq-brand); }
.sq-file-name { font-size: 13px; color: var(--sq-brand); margin-top: 8px; }

/* Consent */
.sq-consent-row { display: flex; align-items: flex-start; gap: 10px; }
.sq-consent-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.sq-consent-text { font-size: 13px; line-height: 1.5; }

/* Buttons */
.sq-btn {
	display: inline-block;
	padding: 13px 28px;
	background: var(--sq-btn);
	color: var(--sq-btn-text);
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s;
}
.sq-btn:hover { opacity: .88; }
.sq-btn:disabled { opacity: .5; cursor: not-allowed; }
.sq-btn-back {
	background: transparent;
	color: var(--sq-brand);
	border: 1.5px solid var(--sq-brand);
	margin-left: 10px;
}
.sq-btn-wrap { display: flex; justify-content: flex-end; align-items: center; margin-top: 24px; }

/* Back button — text link style */
.sq-btn-back {
	background: transparent;
	border: none;
	color: #888;
	font-size: 13px;
	font-weight: 400;
	padding: 8px 10px;
	cursor: pointer;
	font-family: var(--sq-font);
	text-decoration: underline;
}
.sq-btn-back:hover { color: var(--sq-brand); opacity: 1; }

/* Text button block */
.sq-text-btn {
	background: none;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	font-family: var(--sq-font);
	text-decoration: underline;
	font-size: 13px;
	color: var(--sq-brand);
}
.sq-text-btn:hover { opacity: 0.75; }

/* Thank you */
.sq-thankyou { text-align: center; }
.sq-thankyou h2 { font-size: 2rem; color: var(--sq-brand); margin-bottom: 12px; }
.sq-thankyou p  { color: #555; }

/* Toast */
.sq-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #333;
	color: #fff;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 9999;
	opacity: 0;
	transform: translateY(10px);
	transition: all .3s;
}
.sq-toast.show { opacity: 1; transform: translateY(0); }
.sq-toast.error { background: #c0392b; }

/* Global fields layout (two columns for name) */
.sq-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .sq-row-2 { grid-template-columns: 1fr; } }
