/* =========================================================
   Okoshír – Csapatjelentkezés · frontend
   Brand: piros #E8342A · fekete #111 · törtfehér #FDF6F5
   ========================================================= */

.okoshir-app {
	--ok-red: #e8342a;
	--ok-red-dark: #c0241b;
	--ok-ink: #121212;
	--ok-ink-soft: #4a4a4a;
	--ok-paper: #fdf3f2;
	--ok-white: #ffffff;
	--ok-line: #e6d9d7;
	--ok-radius: 14px;
	--ok-shadow: 0 18px 40px -22px rgba(18, 18, 18, 0.45);
	--ok-font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	/* A blokk saját, zárt színvilággal dolgozik, ezért a natív vezérlők
	   (jelölőnégyzet, autofill, görgetősáv) is világos sémát kapnak,
	   függetlenül attól, hogy a téma épp light vagy dark módban van. */
	color-scheme: light;

	font-family: var(--ok-font);
	color: var(--ok-ink);
	line-height: 1.6;
	font-size: 17px;
	background-color: var(--ok-paper);
	margin: 0;
	/* kitörés a téma szűk tartalomoszlopából */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow-x: hidden;
	box-sizing: border-box;
}

.okoshir-app *,
.okoshir-app *::before,
.okoshir-app *::after {
	box-sizing: border-box;
}

/* a full-bleed hero ne okozzon vízszintes görgetést */
body.okoshir-landing-page {
	overflow-x: hidden;
}

.okoshir-app p {
	margin: 0 0 1em;
	color: var(--ok-ink);
}

.ok-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.ok-wrap--narrow {
	max-width: 760px;
}

.okoshir-app .ok-h2 {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: var(--ok-ink);
	font-family: var(--ok-font);
}

.ok-h2--center {
	text-align: center;
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

.ok-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 18px;
	padding: 6px 12px;
	border: 2px solid currentColor;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.85);
}

.ok-eyebrow--dark {
	color: var(--ok-red);
}

/* ---------- HERO ---------- */

.ok-hero {
	position: relative;
	background-color: var(--ok-red);
	color: #fff;
	padding: clamp(64px, 9vw, 120px) 0 clamp(90px, 11vw, 150px);
	overflow: hidden;
	isolation: isolate;
}

.ok-hero__noise {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), transparent 42%),
		radial-gradient(circle at 82% 8%, rgba(0, 0, 0, 0.22), transparent 48%);
	pointer-events: none;
	z-index: 0;
}

.ok-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.okoshir-app .ok-hero__title {
	font-size: clamp(40px, 8vw, 84px);
	line-height: 0.98;
	font-weight: 900;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	margin: 0 0 24px;
	color: #fff;
	font-family: var(--ok-font);
	text-wrap: balance;
}

.ok-hero__mark {
	display: inline-block;
	background-color: #fff;
	color: var(--ok-red);
	padding: 0 14px 4px;
	transform: rotate(-1.4deg);
	box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

.okoshir-app .ok-hero__lead {
	font-size: clamp(17px, 2vw, 21px);
	max-width: 640px;
	color: rgba(255, 255, 255, 0.94);
	margin-bottom: 34px;
}

.ok-hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.ok-hero__meta {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.ok-hero__tear {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 46px;
	background-color: var(--ok-paper);
	z-index: 1;
	-webkit-clip-path: polygon(0 62%, 4% 44%, 9% 66%, 14% 40%, 19% 62%, 25% 38%, 31% 60%, 37% 36%, 43% 58%, 49% 34%, 55% 58%, 61% 36%, 67% 60%, 73% 38%, 79% 62%, 85% 40%, 91% 64%, 96% 44%, 100% 60%, 100% 100%, 0 100%);
	clip-path: polygon(0 62%, 4% 44%, 9% 66%, 14% 40%, 19% 62%, 25% 38%, 31% 60%, 37% 36%, 43% 58%, 49% 34%, 55% 58%, 61% 36%, 67% 60%, 73% 38%, 79% 62%, 85% 40%, 91% 64%, 96% 44%, 100% 60%, 100% 100%, 0 100%);
}

/* ---------- STATS ---------- */

.ok-stats {
	background-color: var(--ok-paper);
	padding: 8px 0 0;
}

.ok-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.ok-stat {
	background-color: var(--ok-white);
	border: 2px solid var(--ok-ink);
	border-radius: var(--ok-radius);
	padding: 22px 20px;
	box-shadow: 5px 5px 0 var(--ok-ink);
}

.ok-stat__num {
	display: block;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--ok-red);
	line-height: 1;
}

.ok-stat__label {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ok-ink-soft);
}

/* ---------- INTRO ---------- */

.ok-intro {
	padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px);
}

.ok-intro__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 44px;
	align-items: start;
}

.okoshir-app .ok-intro__text p {
	color: var(--ok-ink-soft);
	font-size: 17px;
}

.okoshir-app .ok-intro__note {
	display: inline-block;
	font-weight: 700;
	color: var(--ok-ink);
	background-color: #ffe8a3;
	padding: 4px 10px;
	transform: rotate(-0.8deg);
}

.ok-quote {
	margin: 0;
	background-color: var(--ok-ink);
	color: #fff;
	border-radius: var(--ok-radius);
	padding: 30px 28px;
	position: relative;
	box-shadow: var(--ok-shadow);
	border: 0;
}

.okoshir-app .ok-quote p {
	margin: 0;
	color: #fff;
	font-size: clamp(19px, 2.2vw, 24px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.ok-quote::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 26px;
	width: 54px;
	height: 6px;
	background-color: var(--ok-red);
	border-radius: 3px;
}

/* ---------- ROLES ---------- */

.ok-roles {
	padding: clamp(40px, 6vw, 76px) 0;
}

.ok-roles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 34px;
}

.ok-role {
	background-color: var(--ok-white);
	border: 1px solid var(--ok-line);
	border-radius: var(--ok-radius);
	padding: 26px 24px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ok-role:hover {
	transform: translateY(-4px);
	border-color: var(--ok-red);
	box-shadow: var(--ok-shadow);
}

.ok-role__icon {
	font-size: 30px;
	line-height: 1;
	display: block;
	margin-bottom: 12px;
}

.okoshir-app .ok-role h3 {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
	color: var(--ok-ink);
	font-family: var(--ok-font);
}

.okoshir-app .ok-role p {
	margin: 0;
	font-size: 15px;
	color: var(--ok-ink-soft);
}

/* ---------- WHY ---------- */

.ok-why {
	background-color: var(--ok-ink);
	color: #fff;
	padding: clamp(48px, 7vw, 84px) 0;
}

.okoshir-app .ok-why .ok-h2 {
	color: #fff;
}

.ok-why__list {
	list-style: none;
	margin: 32px auto 0;
	padding: 0;
	max-width: 780px;
	display: grid;
	gap: 14px;
}

.ok-why__list li {
	position: relative;
	padding: 16px 20px 16px 58px;
	background-color: rgba(255, 255, 255, 0.05);
	border-left: 4px solid var(--ok-red);
	border-radius: 10px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

.ok-why__list li::before {
	content: "→";
	position: absolute;
	left: 22px;
	top: 15px;
	color: var(--ok-red);
	font-weight: 900;
	font-size: 18px;
}

.ok-why__list strong {
	color: #fff;
}

/* ---------- FORM SECTION ---------- */

.ok-form-section {
	padding: clamp(52px, 8vw, 96px) 0 clamp(60px, 8vw, 100px);
	background-color: var(--ok-paper);
	scroll-margin-top: 70px;
}

.ok-form-head {
	text-align: center;
	margin-bottom: 34px;
}

.okoshir-app .ok-form-head__lead {
	color: var(--ok-ink-soft);
	font-size: 16px;
	max-width: 620px;
	margin: 0 auto;
}

/* progress */

.ok-progress {
	margin-bottom: 22px;
}

.ok-progress__bar {
	height: 8px;
	background-color: #eddedc;
	border-radius: 999px;
	overflow: hidden;
}

.ok-progress__fill {
	display: block;
	height: 100%;
	width: 25%;
	background-color: var(--ok-red);
	border-radius: 999px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ok-progress__steps {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}

.ok-progress__step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #8a7d7b;
	flex: 1;
	min-width: 0;
}

.ok-progress__step i {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #eddedc;
	color: #6d6260;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
}

.ok-progress__step em {
	font-style: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ok-progress__step.is-active {
	color: var(--ok-ink);
}

.ok-progress__step.is-active i {
	background-color: var(--ok-red);
	color: #fff;
}

.ok-progress__step.is-done i {
	background-color: var(--ok-ink);
	color: #fff;
}

/* form card */

.ok-form,
.ok-success,
.ok-closed {
	background-color: var(--ok-white);
	border: 1px solid var(--ok-line);
	border-radius: 18px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 24px 50px -34px rgba(18, 18, 18, 0.5);
	color: var(--ok-ink);
}

.ok-form__alert {
	background-color: #fdecea;
	border: 1px solid #f3b6b1;
	color: #9c1f16;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 22px;
}

.ok-form__alert.is-ok {
	background-color: #e9f7ef;
	border-color: #a8ddbd;
	color: #1a6b3c;
}

.ok-step {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.ok-step:not(.is-active) {
	display: none;
}

.ok-step__legend {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 26px;
	color: var(--ok-ink);
}

.ok-step__count {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ok-red);
	margin-bottom: 6px;
}

.ok-step__title {
	display: block;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--ok-ink);
}

.ok-step__sub {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ok-ink-soft);
}

/* fields */

.ok-field {
	margin-bottom: 26px;
}

.ok-field:last-of-type {
	margin-bottom: 8px;
}

.okoshir-app .ok-label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--ok-ink);
	line-height: 1.35;
	cursor: pointer;
}

.ok-req {
	color: var(--ok-red);
	margin-left: 3px;
}

.okoshir-app .ok-help {
	font-size: 13.5px;
	color: #6b6260;
	margin: -2px 0 10px;
	font-style: italic;
}

.okoshir-app input[type="text"],
.okoshir-app input[type="email"],
.okoshir-app input[type="tel"],
.okoshir-app textarea {
	width: 100%;
	font-family: inherit;
	font-size: 16px;
	color: var(--ok-ink);
	background-color: #fcfafa;
	background-image: none;
	border: 2px solid #e3d6d4;
	border-radius: 10px;
	padding: 13px 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.okoshir-app textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.55;
}

.okoshir-app input[type="text"]::placeholder,
.okoshir-app input[type="email"]::placeholder,
.okoshir-app input[type="tel"]::placeholder,
.okoshir-app textarea::placeholder {
	color: #9a8f8d;
	opacity: 1;
}

.okoshir-app input[type="text"]:focus,
.okoshir-app input[type="email"]:focus,
.okoshir-app input[type="tel"]:focus,
.okoshir-app textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--ok-red);
	box-shadow: 0 0 0 4px rgba(232, 52, 42, 0.13);
}

/* böngésző-kitöltés (autofill) se boríthassa a színeket */
.okoshir-app input:-webkit-autofill,
.okoshir-app input:-webkit-autofill:hover,
.okoshir-app input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--ok-ink);
	-webkit-box-shadow: 0 0 0 1000px #fcfafa inset;
	caret-color: var(--ok-ink);
}

/* radio / checkbox */

.ok-options {
	display: grid;
	gap: 10px;
}

.ok-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 16px;
	border: 2px solid #eadedc;
	border-radius: 11px;
	cursor: pointer;
	background-color: #fcfafa;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--ok-ink);
}

.ok-option:hover {
	border-color: #d9bfbc;
	background-color: #fff;
}

.ok-option input,
.ok-consent input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ok-option__mark {
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	border: 2px solid #b9a4a1;
	border-radius: 50%;
	margin-top: 1px;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	background-color: #fff;
}

.ok-option__mark--square {
	border-radius: 6px;
}

/* FONTOS: a nyilatkozat jelölőnégyzetére is vonatkoznia kell,
   különben a pipa láthatatlan marad (1.0.0 hibája). */
.ok-option input:checked ~ .ok-option__mark,
.ok-consent input:checked ~ .ok-option__mark {
	border-color: var(--ok-red);
	background-color: var(--ok-red);
}

.ok-option input:checked ~ .ok-option__mark::after,
.ok-consent input:checked ~ .ok-option__mark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.ok-option input:focus-visible ~ .ok-option__mark,
.ok-consent input:focus-visible ~ .ok-option__mark {
	box-shadow: 0 0 0 4px rgba(232, 52, 42, 0.25);
}

.ok-option.is-checked,
.ok-option:has(input:checked) {
	border-color: var(--ok-red);
	background-color: #fff5f4;
}

.ok-option__text {
	flex: 1;
	color: var(--ok-ink);
}

/* consent */

.ok-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 20px;
	background-color: #fcf7f6;
	border: 2px dashed #e0c9c6;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ok-ink-soft);
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ok-consent.is-accepted,
.ok-consent:has(input:checked) {
	border-style: solid;
	border-color: var(--ok-red);
	background-color: #fff5f4;
}

.ok-consent__text {
	color: var(--ok-ink-soft);
}

.ok-consent__text strong {
	color: var(--ok-ink);
}

.okoshir-app .ok-consent a {
	color: var(--ok-red);
	font-weight: 700;
	text-decoration: underline;
}

/* validation */

.ok-error {
	margin: 8px 0 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ok-red);
}

.ok-field.has-error input[type="text"],
.ok-field.has-error input[type="email"],
.ok-field.has-error input[type="tel"],
.ok-field.has-error textarea {
	border-color: var(--ok-red);
	background-color: #fff7f6;
}

.ok-field.has-error .ok-options,
.ok-field.has-error .ok-consent {
	outline: 2px solid rgba(232, 52, 42, 0.45);
	outline-offset: 6px;
	border-radius: 12px;
}

/* nav + buttons */

.ok-nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	align-items: center;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--ok-line);
	flex-wrap: wrap;
}

.okoshir-app .ok-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	padding: 14px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.okoshir-app .ok-btn:active {
	transform: translateY(1px);
}

.okoshir-app .ok-btn--primary {
	background-color: var(--ok-red);
	color: #fff;
	box-shadow: 0 12px 24px -14px rgba(232, 52, 42, 0.9);
}

.okoshir-app .ok-btn--primary:hover {
	background-color: var(--ok-red-dark);
	color: #fff;
}

.okoshir-app .ok-btn--ghost {
	background-color: transparent;
	color: var(--ok-ink-soft);
	border-color: var(--ok-line);
	margin-right: auto;
}

.okoshir-app .ok-btn--ghost:hover {
	color: var(--ok-ink);
	border-color: var(--ok-ink);
}

.okoshir-app .ok-btn--light {
	background-color: #fff;
	color: var(--ok-red);
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.okoshir-app .ok-btn--light:hover {
	background-color: var(--ok-ink);
	color: #fff;
}

.okoshir-app .ok-btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.ok-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ok-spin 0.7s linear infinite;
}

.ok-btn.is-loading .ok-spinner {
	display: block;
}

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

/* honeypot */

.ok-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* success */

.ok-success {
	text-align: center;
}

.ok-success__badge {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--ok-red);
	color: #fff;
	font-size: 32px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	animation: ok-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes ok-pop {
	from {
		transform: scale(0.4);
		opacity: 0;
	}
}

.okoshir-app .ok-success p {
	color: var(--ok-ink-soft);
	max-width: 460px;
	margin-left: auto;
	margin-right: auto;
}

.ok-success__small {
	font-size: 14px;
	font-weight: 600;
}

.ok-closed {
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: var(--ok-ink);
}

.okoshir-app .ok-legal {
	margin-top: 20px;
	font-size: 12.5px;
	color: #6b6260;
	text-align: center;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
	.ok-intro__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ok-roles__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ok-stats__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.okoshir-app {
		font-size: 16px;
	}

	.ok-wrap {
		padding: 0 18px;
	}

	.ok-roles__grid {
		grid-template-columns: 1fr;
	}

	.ok-progress__step em {
		display: none;
	}

	.ok-progress__steps {
		justify-content: flex-start;
		gap: 10px;
	}

	.ok-progress__step {
		flex: 0 0 auto;
	}

	.ok-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.okoshir-app .ok-btn {
		width: 100%;
	}

	.okoshir-app .ok-btn--ghost {
		margin-right: 0;
	}

	.ok-hero__cta {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.okoshir-app *,
	.okoshir-app *::before,
	.okoshir-app *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
