/* ══════════════════════════════════════════════════════════════════
   REJ3 27.10.2026 (Fable) - PRÓBA ?rf=2: formularze gościa „mniejsze, nowocześniejsze, nie tanie”.
   Nakładka na białą kartę „PARYTET Z PANELEM” (calypso-crm front.css od w. 1921). Tokeny kolorów z tokens.css bez zmian.
   Co się zmienia: jedna biała karta zamiast karty w karcie, kroki bez ramek, pola 40 px z jasnym tłem,
   pastylki 36 px (dotyk 44 px) wypełniające rząd, zaznaczenie morskie z ptaszkiem, gwiazdka wyraźna,
   przełącznik jasno/ciemno jako suwak, pasek metrów cieńszy. Logika i pola nietknięte. Włącza body.rf2.
   ══════════════════════════════════════════════════════════════════ */

/* ── Strona i karta ─────────────────────────────────────────────── */
body.rf2 h1.entry-title { font-size: clamp(1.5rem, 3.5vw, 1.9rem) !important; letter-spacing: -.02em !important; margin-bottom: .5em; }
body.rf2 .calypso-reg-form, body.rf2 .calypso-med-form, body.rf2 .calypso-doc-form, body.rf2 .calypso-portal,
html.dark body.rf2 .calypso-reg-form, html.dark body.rf2 .calypso-med-form, html.dark body.rf2 .calypso-doc-form, html.dark body.rf2 .calypso-portal {
	padding: 20px 16px 24px;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .10);
	font-size: 15px; line-height: 1.5;
}
@media (min-width: 640px) {
	body.rf2 .calypso-reg-form, body.rf2 .calypso-med-form, body.rf2 .calypso-doc-form, body.rf2 .calypso-portal,
	html.dark body.rf2 .calypso-reg-form, html.dark body.rf2 .calypso-med-form, html.dark body.rf2 .calypso-doc-form, html.dark body.rf2 .calypso-portal { padding: 28px 32px 32px; }
}
html.dark body.rf2 .calypso-reg-form, html.dark body.rf2 .calypso-med-form, html.dark body.rf2 .calypso-doc-form, html.dark body.rf2 .calypso-portal {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px -12px rgba(0, 0, 0, .5);
}

/* Zdanie na start (uwaga 13) */
body.rf2 .calypso-reg-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--text); } /* KAL1 28.10: ciemne jak podpowiedź przy kontakcie awaryjnym, pierwsze zdanie pogrubione */
body.rf2 .calypso-draft-note { color: var(--text); font-size: 15px; font-weight: 500; } /* KAL1 28.10: było cienkie i blade */

/* ── Kroki: bez pudełka, tytuł większy, cienka linia między ──────── */
body.rf2 .calypso-reg-form fieldset, body.rf2 .calypso-med-form fieldset, body.rf2 .calypso-doc-form fieldset,
html.dark body.rf2 .calypso-reg-form fieldset, html.dark body.rf2 .calypso-med-form fieldset, html.dark body.rf2 .calypso-doc-form fieldset {
	margin: 0 0 8px; padding: 0 0 20px;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
body.rf2 .calypso-reg-form legend, body.rf2 .calypso-med-form legend, body.rf2 .calypso-doc-form legend,
html.dark body.rf2 .calypso-reg-form legend, html.dark body.rf2 .calypso-med-form legend, html.dark body.rf2 .calypso-doc-form legend {
	font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; padding: 0; margin: 0 0 4px;
}

/* ── Etykiety: mniejsze, spokojne; gwiazdka wyraźna (uwaga 5, wersja A) ── */
body.rf2 .calypso-reg-form label, body.rf2 .calypso-med-form label:not(.calypso-med-opts label), body.rf2 .calypso-doc-form label, body.rf2 .calypso-portal label,
body.rf2 .calypso-label, body.rf2 .calypso-reg-form .calypso-chips legend, body.rf2 .calypso-med-form .calypso-chips legend,
html.dark body.rf2 .calypso-reg-form label, html.dark body.rf2 .calypso-doc-form label, html.dark body.rf2 .calypso-portal label, html.dark body.rf2 .calypso-label {
	display: block; margin: 16px 0 6px; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--text-2);
}
body.rf2 .calypso-sublabel, body.rf2 .calypso-hint, body.rf2 .calypso-muted { font-size: 13px; }
body.rf2 .calypso-reg-form .calypso-required::after, body.rf2 .calypso-med-form .calypso-required::after {
	content: " *"; color: var(--brand-700); font-weight: 700; font-size: 1.25em; line-height: 0; vertical-align: -.05em;
}
html.dark body.rf2 .calypso-reg-form .calypso-required::after, html.dark body.rf2 .calypso-med-form .calypso-required::after { color: var(--brand-300); }
/* wersja B (?rf=2&st=2): gwiazdka + delikatne tło pól obowiązkowych (tylko razem z gwiazdką, WCAG 1.4.1) */
body.rf2-st2 .calypso-reg-form input:required:not([type=checkbox]):not([type=radio]), body.rf2-st2 .calypso-reg-form select:required,
body.rf2-st2 .calypso-chips:has(input[required]) label { background: var(--brand-25); border-color: var(--brand-200); }
html.dark body.rf2-st2 .calypso-reg-form input:required:not([type=checkbox]):not([type=radio]), html.dark body.rf2-st2 .calypso-reg-form select:required,
html.dark body.rf2-st2 .calypso-chips:has(input[required]) label { background: rgba(125, 211, 192, .07); border-color: rgba(125, 211, 192, .35); }

/* ── Pola: 40 px, jasne tło, 10 px promień; po kliknięciu białe z pierścieniem ── */
body.rf2 .calypso-reg-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
body.rf2 .calypso-med-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
body.rf2 .calypso-doc-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
body.rf2 .calypso-portal input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
body.rf2 .calypso-reg-form select, body.rf2 .calypso-med-form select, body.rf2 .calypso-doc-form select, body.rf2 .calypso-portal select,
body.rf2 .calypso-reg-form textarea, body.rf2 .calypso-med-form textarea, body.rf2 .calypso-doc-form textarea, body.rf2 .calypso-portal textarea {
	min-height: 40px; padding: 6px 12px;
	border: 1px solid var(--gray-200); border-radius: 10px;
	background: var(--gray-50); color: var(--text-strong);
	font-size: 16px; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
@media (pointer: fine) {
	body.rf2 .calypso-reg-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
	body.rf2 .calypso-med-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
	body.rf2 .calypso-doc-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
	body.rf2 .calypso-reg-form select, body.rf2 .calypso-med-form select, body.rf2 .calypso-doc-form select,
	body.rf2 .calypso-reg-form textarea, body.rf2 .calypso-med-form textarea { font-size: 15px; }
}
html.dark body.rf2 .calypso-reg-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark body.rf2 .calypso-med-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark body.rf2 .calypso-doc-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark body.rf2 .calypso-reg-form select, html.dark body.rf2 .calypso-med-form select, html.dark body.rf2 .calypso-doc-form select,
html.dark body.rf2 .calypso-reg-form textarea, html.dark body.rf2 .calypso-med-form textarea { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
html body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]):focus-visible {
	background: var(--surface); border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--ring);
}
html.dark body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):focus-visible { background: rgba(255, 255, 255, .08); }
body.rf2 .calypso-reg-form select, body.rf2 .calypso-med-form select, body.rf2 .calypso-doc-form select, body.rf2 .calypso-portal select { background-position: right 12px center; }
body.rf2 .calypso-reg-form textarea, body.rf2 .calypso-med-form textarea { min-height: 96px; }
body.rf2 .calypso-field-error { font-size: 13px; margin-top: 5px; }
/* liczby bez strzałek (uwaga 22) */
body.rf2 input[type=number] { -moz-appearance: textfield; }
body.rf2 input[type=number]::-webkit-outer-spin-button, body.rf2 input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Pastylki wyboru: mniejsze, wypełniają rząd, zaznaczenie morskie z ptaszkiem ── */
body.rf2 .calypso-chips, html.dark body.rf2 .calypso-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2px; }
body.rf2 .calypso-chips label, body.rf2 .calypso-med-opts label, body.rf2 .calypso-descent .calypso-med-opts label,
html.dark body.rf2 .calypso-chips label, html.dark body.rf2 .calypso-med-opts label, html.dark body.rf2 .calypso-descent .calypso-med-opts label {
	display: inline-flex; align-items: center; justify-content: center; margin: 0;
	flex: 0 0 auto; min-height: 36px; padding: 0 13px; gap: 7px; /* KAL1 28.10: 13 zamiast 14, zapas na rząd „Who are you travelling with” */
	border: 1px solid var(--gray-200); border-radius: 999px;
	background: var(--surface); color: var(--text);
	font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1);
}
@media (pointer: coarse) {
	body.rf2 .calypso-chips label, body.rf2 .calypso-med-opts label, body.rf2 .calypso-descent .calypso-med-opts label { min-height: 44px; }
}
html.dark body.rf2 .calypso-chips label, html.dark body.rf2 .calypso-med-opts label, html.dark body.rf2 .calypso-descent .calypso-med-opts label { background: transparent; border-color: rgba(255, 255, 255, .18); }
@media (hover: hover) and (pointer: fine) {
	body.rf2 .calypso-chips label:hover, body.rf2 .calypso-med-opts label:hover, body.rf2 .calypso-descent .calypso-med-opts label:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--text-strong); }
	html.dark body.rf2 .calypso-chips label:hover, html.dark body.rf2 .calypso-med-opts label:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
}
body.rf2 .calypso-chips label:active, body.rf2 .calypso-med-opts label:active { transform: scale(.97); }
body.rf2 .calypso-chips label:has(input:checked), body.rf2 .calypso-med-opts label:has(input:checked), body.rf2 .calypso-descent .calypso-med-opts label:has(input:checked),
html.dark body.rf2 .calypso-chips label:has(input:checked), html.dark body.rf2 .calypso-med-opts label:has(input:checked), html.dark body.rf2 .calypso-descent .calypso-med-opts label:has(input:checked) {
	background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600;
}
html.dark body.rf2 .calypso-chips label:has(input:checked), html.dark body.rf2 .calypso-med-opts label:has(input:checked) { background: var(--brand-400); border-color: var(--brand-400); color: var(--gray-950); }
/* ptaszek z CSS (bez ikon-emoji): pojawia się przy zaznaczeniu */
body.rf2 .calypso-chips label::before, body.rf2 .calypso-med-opts label::before {
	content: ""; width: 0; height: 14px; flex: 0 0 auto; opacity: 0;
	background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	margin-left: -7px; transition: width .15s cubic-bezier(.23, 1, .32, 1), opacity .15s, margin .15s;
}
body.rf2 .calypso-chips label:has(input:checked)::before, body.rf2 .calypso-med-opts label:has(input:checked)::before { width: 14px; opacity: 1; margin-left: 0; }
body.rf2 .calypso-chips label span { white-space: normal; }
body.rf2 .calypso-chips[aria-invalid="true"] label { border-color: var(--error-400); }
/* siatka w medycznym (Tak / Nie) i daty urodzenia */
body.rf2 .calypso-med-opts { gap: 8px; }
body.rf2 .calypso-dob { gap: 8px; }
body.rf2 .calypso-dob label { margin: 0; }

/* ── Przyciski: 40 px, 10 px promień, lekkie wciśnięcie ───────────── */
body.rf2 .calypso-reg-form button[type=submit], body.rf2 .calypso-med-form button[type=submit], body.rf2 .calypso-doc-form button[type=submit],
body.rf2 .calypso-btn, body.rf2 .calypso-descent-next,
html.dark body.rf2 .calypso-reg-form button[type=submit], html.dark body.rf2 .calypso-med-form button[type=submit], html.dark body.rf2 .calypso-btn, html.dark body.rf2 .calypso-descent-next {
	min-height: 40px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
	transition: background-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1);
}
body.rf2 .calypso-descent-back, body.rf2 .calypso-sigpad-clear, body.rf2 .calypso-reg-form .calypso-more > summary, body.rf2 .calypso-med-form .calypso-more > summary,
html.dark body.rf2 .calypso-descent-back, html.dark body.rf2 .calypso-sigpad-clear, html.dark body.rf2 .calypso-reg-form .calypso-more > summary {
	min-height: 40px; padding: 0 16px; border-radius: 10px; border-color: var(--gray-200); font-size: 14px; font-weight: 500;
	transition: background-color .15s, border-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1);
}
html.dark body.rf2 .calypso-descent-back, html.dark body.rf2 .calypso-reg-form .calypso-more > summary { border-color: rgba(255, 255, 255, .18); }
body.rf2 .calypso-reg-form button:active, body.rf2 .calypso-med-form button:active, body.rf2 .calypso-btn:active { transform: scale(.97); }
body.rf2 .calypso-descent-nav { gap: 10px; margin-top: 4px; }
@media (max-width: 480px) {
	body.rf2 .calypso-descent-nav { flex-wrap: nowrap; }
	body.rf2 .calypso-descent-nav .calypso-descent-next, body.rf2 .calypso-reg-form button[type=submit] { flex: 1 1 auto; min-height: 44px; }
	body.rf2 .calypso-descent-nav .calypso-descent-back { min-height: 44px; }
}

/* ── Pasek metrów: cieńszy, spokojniejszy ──────────────────────────── */
body.rf2 .calypso-gauge { margin: 0 0 22px; }
body.rf2 .calypso-gauge-label { font-size: 13px; color: var(--muted); gap: 10px; }
body.rf2 .calypso-gauge-sec { font-size: 13px; font-weight: 600; color: var(--text-strong); }
body.rf2 .calypso-gauge-track, body.rf2 .calypso-gauge-fill { height: 4px; border-radius: 999px; }
body.rf2 .calypso-gauge-track { background: var(--gray-100); }
html.dark body.rf2 .calypso-gauge-track { background: rgba(255, 255, 255, .1); }
body.rf2 .calypso-gauge-fill { background: var(--brand-500); }
body.rf2 .calypso-gauge-ends { font-size: 12px; color: var(--muted); }

/* ── Przełącznik jasno/ciemno = suwak (uwaga 8); napis „Light/Dark” schowany, kulka z ikoną ── */
body.rf2 .calypso-theme-toggle, html.dark body.rf2 .calypso-theme-toggle {
	position: relative; width: 46px; min-height: 0; height: 26px; padding: 0; margin: 0 0 14px auto;
	border: 0; border-radius: 999px; background: var(--gray-300); color: transparent; font-size: 0; overflow: hidden;
	transition: background-color .2s;
}
body.rf2 .calypso-theme-toggle > * { display: none; }
body.rf2 .calypso-theme-toggle::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E") center / 13px no-repeat;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
	transition: transform .2s cubic-bezier(.23, 1, .32, 1);
}
html.dark body.rf2 .calypso-theme-toggle { background: var(--brand-600); }
html.dark body.rf2 .calypso-theme-toggle::after {
	transform: translateX(20px);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
body.rf2 .calypso-theme-toggle:hover { background: var(--gray-400); }
html.dark body.rf2 .calypso-theme-toggle:hover { background: var(--brand-500); }
body.rf2 .calypso-theme-toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ── Zgody, podsumowanie, komunikaty: ten sam rozmiar ─────────────── */
body.rf2 .calypso-reg-form .calypso-consent label, body.rf2 .calypso-med-form .calypso-med-consent label, body.rf2 .calypso-reg-form .calypso-consent-marketing label { font-size: 14.5px; margin: 10px 0; }
body.rf2 .calypso-summary { font-size: 14.5px; }
body.rf2 .calypso-reg-errors, body.rf2 .calypso-med-errors, body.rf2 .calypso-doc-errors { font-size: 14px; border-radius: 12px; }
body.rf2 .calypso-reg-form .calypso-more { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
	body.rf2 .calypso-chips label, body.rf2 .calypso-theme-toggle, body.rf2 .calypso-theme-toggle::after, body.rf2 .calypso-chips label::before, body.rf2 button { transition: none; }
}

/* Telefon: TEL3 (telefon-karty.css w. 405) stawia od trzech pastylek kolumnę, żeby nie było sieroty w rzędzie.
   Tu pastylki rozciągają się i domykają rząd, więc wracają rzędy (tylko w ?rf=2). Długie napisy mogą się łamać. */
html body.rf2:not(#x) .calypso-chips:has(>:nth-child(3)) { flex-direction: row; align-items: flex-start; }
@media (max-width: 640px) {
	body.rf2 .calypso-chips label { white-space: normal; text-align: center; padding: 6px 14px; max-width: 100%; }
	body.rf2 .calypso-chips label span { white-space: normal; }
}

/* Formularz medyczny: nagłówki ramek były w IBM Plex Mono 11 px (DESIGN.md: bez pisma maszynowego, etykiety min. 11 px, tu 12,5). */
body.rf2 .calypso-med-form h3, body.rf2 .calypso-med-form .calypso-med-box-title, body.rf2 .calypso-med-form .calypso-med-docref {
	font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--text-2);
}

/* ══ OPCJE (panel „Opcje” z inc/formularze-proba-rf.php; klasy o-<grupa>-<wartość> na <html>) ══ */
/* panel opcji */
.rf3-opcje { position: fixed; left: 56px; bottom: 20px; z-index: 9999; font-family: var(--font-sans, "Mulish", sans-serif); font-size: 13px; color: #1d2939; }
.rf3-opcje > button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #0a1220; color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.rf3-opcje > div { display: none; position: absolute; left: 0; bottom: 44px; width: 300px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px 14px 10px; background: #fff; border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }
.rf3-opcje.on > div { display: block; }
.rf3-opcje p { margin: 8px 0 4px; font-weight: 600; font-size: 12px; color: #475467; }
.rf3-opcje .r { display: flex; flex-wrap: wrap; gap: 6px; }
.rf3-opcje .r button { min-height: 30px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #1d2939; font: inherit; font-size: 12.5px; cursor: pointer; }
.rf3-opcje .r button.on { background: #218172; border-color: #218172; color: #fff; }
.rf3-opcje .w { margin: 12px 0 0; padding: 8px 10px; background: #f2f4f7; border-radius: 8px; font-size: 11.5px; color: #475467; word-break: break-all; }
@media (max-width: 640px) { .rf3-opcje { left: 12px; bottom: 12px; } .rf3-opcje > div { width: min(300px, calc(100vw - 24px)); } }

/* Karta */
html.o-karta-czysta body.rf2 :is(.calypso-reg-form, .calypso-med-form) { background: transparent; box-shadow: none; padding: 8px 0 0; }
html.o-karta-czysta body.rf2 { background: #fff !important; }
html.o-karta-gradient body.rf2 { background: linear-gradient(180deg, #e6f7f3 0%, #f9fafb 38%, #f9fafb 100%) fixed !important; }
html.o-karta-szara body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset { background: var(--gray-50); border-radius: 14px; padding: 18px 20px 22px; margin: 0 0 14px; }
html.o-karta-szara body.rf2 legend { padding: 0 8px; }
/* Pola */
html.o-pola-pelne body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]) { background: var(--gray-100); border-color: transparent; border-radius: 12px; }
html.o-pola-linia body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]) { background: transparent; border: 0; border-bottom: 1.5px solid var(--gray-300); border-radius: 0; padding-left: 2px; padding-right: 2px; }
html.o-pola-linia body.rf2 :is(.calypso-reg-form, .calypso-med-form) :is(input, select, textarea):focus-visible { box-shadow: none; border-bottom-color: var(--brand-500); background: transparent; }
html.o-pola-linia body.rf2 :is(.calypso-reg-form, .calypso-med-form) select { background-position: right 2px center; }
html.o-pola-biale body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]) { background: #fff; border-color: var(--gray-300); }
/* Wybór odpowiedzi */
html.o-wybor-kafelki body.rf2 .calypso-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
html.o-wybor-kafelki body.rf2 .calypso-chips label { display: flex; justify-content: flex-start; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--gray-200); white-space: normal; text-align: left; }
html.o-wybor-kafelki body.rf2 .calypso-chips label:has(input:checked) { background: var(--brand-25); border-color: var(--brand-500); color: var(--brand-800); font-weight: 600; }
html.o-wybor-kafelki body.rf2 .calypso-chips label::before { order: 2; margin-left: auto; width: 14px; opacity: 0; }
html.o-wybor-kafelki body.rf2 .calypso-chips label:has(input:checked)::before { opacity: 1; }
html.o-wybor-kafelki body.rf2 .calypso-chips label span { flex: 1 1 auto; }
html.o-wybor-kafelki body.rf2 .calypso-med-opts label { border-radius: 12px; border-width: 1.5px; min-height: 48px; }
html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) { display: inline-flex; gap: 0; padding: 3px; background: var(--gray-100); border-radius: 11px; max-width: 100%; }
html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) label { flex: 1 1 auto; border: 0; border-radius: 8px; background: transparent; min-height: 34px; }
html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) label:has(input:checked) { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(16, 24, 40, .12), 0 1px 2px rgba(16, 24, 40, .06); }
html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) label::before { display: none; }
html.o-wybor-segment body.rf2 .calypso-med-opts { display: inline-flex; gap: 0; padding: 3px; background: var(--gray-100); border-radius: 11px; }
html.o-wybor-segment body.rf2 .calypso-med-opts label { border: 0; border-radius: 8px; background: transparent; min-width: 90px; }
html.o-wybor-segment body.rf2 .calypso-med-opts label:has(input:checked) { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
@media (max-width: 640px) { html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) { display: flex; } html.o-wybor-segment body.rf2 .calypso-chips:not(:has(> :nth-child(5))) label { min-height: 40px; padding: 4px 8px; } }
/* Zaznaczenie */
html.o-zazn-jasne body.rf2 :is(.calypso-chips, .calypso-med-opts) label:has(input:checked) { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-800); }
html.o-zazn-ciemne body.rf2 :is(.calypso-chips, .calypso-med-opts) label:has(input:checked) { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }
/* Tytuł kroku */
html.o-tytul-serif body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) legend { font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; font-size: 28px; letter-spacing: -.01em; }
html.o-tytul-maly body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) legend { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
/* Gęstość */
html.o-gest-ciasno body.rf2 :is(.calypso-reg-form, .calypso-med-form) label:not(.calypso-chips label):not(.calypso-med-opts label), html.o-gest-ciasno body.rf2 .calypso-label { margin: 11px 0 4px; }
html.o-gest-ciasno body.rf2 :is(.calypso-reg-form, .calypso-med-form) :is(input, select):not([type=checkbox]):not([type=radio]) { min-height: 36px; }
html.o-gest-ciasno body.rf2 .calypso-chips label { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
html.o-gest-luzno body.rf2 :is(.calypso-reg-form, .calypso-med-form) label:not(.calypso-chips label):not(.calypso-med-opts label), html.o-gest-luzno body.rf2 .calypso-label { margin: 22px 0 8px; }
html.o-gest-luzno body.rf2 :is(.calypso-reg-form, .calypso-med-form) :is(input, select):not([type=checkbox]):not([type=radio]) { min-height: 46px; }
html.o-gest-luzno body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset { padding-bottom: 32px; }

/* 16:32 krytyka (zrzut Oli): <legend> siedzi na krawędzi pudełka i zostawia dziurę. Tytuł kroku staje się zwykłym nagłówkiem w środku. */
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) fieldset > legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) fieldset::after { content: ""; display: table; clear: both; }
html.o-karta-szara body.rf2 :is(.calypso-reg-form, .calypso-med-form) legend { font-size: 19px; margin: 0 0 12px; padding: 0; }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) fieldset > legend + * { clear: both; }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) fieldset > legend + label, body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset > legend + .calypso-label { margin-top: 0; }
/* 16:37: po kliknięciu myszą pastylka dostawała gruby pierścień fokusu (podwójna obwódka). Miękki pierścień, czytelny też z klawiatury. */
body.rf2 :is(.calypso-chips, .calypso-med-opts) label:has(input:focus-visible), body.rf2 .calypso-descent .calypso-med-opts label:has(input:focus-visible) { outline: 0; box-shadow: 0 0 0 3px var(--ring); }
/* 16:39 Ola wybiera ?rf=2; oddech etykiet przeniesiony z rf3 („za ciasno”): 8 px nad polem, 20 px pod poprzednim */
body.rf2 .calypso-reg-form label:not(.calypso-chips label):not(.calypso-med-opts label), body.rf2 .calypso-med-form label:not(.calypso-med-opts label), body.rf2 .calypso-doc-form label, body.rf2 .calypso-portal label, body.rf2 .calypso-label,
body.rf2 .calypso-reg-form .calypso-chips legend, body.rf2 .calypso-med-form .calypso-chips legend { margin: 20px 0 8px; }
body.rf2 .calypso-sublabel, body.rf2 .calypso-hint { margin: -2px 0 10px; }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) fieldset > legend + label, body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset > legend + .calypso-label { margin-top: 0; }
body.rf2 .calypso-dob label { margin: 0; }
html.o-gest-ciasno body.rf2 :is(.calypso-reg-form, .calypso-med-form) label:not(.calypso-chips label):not(.calypso-med-opts label), html.o-gest-ciasno body.rf2 .calypso-label { margin: 13px 0 5px; }
html.o-gest-luzno body.rf2 :is(.calypso-reg-form, .calypso-med-form) label:not(.calypso-chips label):not(.calypso-med-opts label), html.o-gest-luzno body.rf2 .calypso-label { margin: 26px 0 10px; }

/* ── Telefon z flagą (intl-tel-input, REJ3): dopasowanie do pól ── */
body.rf2 .iti { width: 100%; display: block; }
body.rf2 .iti__selected-country { border-radius: 10px 0 0 10px; }
body.rf2 .iti--separate-dial-code .iti__selected-country { background: transparent; }
body.rf2 .iti__selected-dial-code { font-size: 15px; color: var(--text); }
body.rf2 .iti__dropdown-content { border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(16, 24, 40, .18); font-family: var(--font-sans); font-size: 14px; overflow: hidden; }
body.rf2 .iti__search-input { padding: 10px 12px; padding-left: 36px !important; /* ogólna reguła pól ma silniejszy selektor; lupka stoi po lewej */ font-size: 15px; border-bottom: 1px solid var(--gray-200); }
body.rf2 .iti__country { padding: 8px 12px; }
body.rf2 .iti__country.iti__highlight { background: var(--gray-50); }
body.rf2 .iti__dial-code { color: var(--muted); }
html.dark body.rf2 .iti__dropdown-content { background: var(--navy-800); border-color: rgba(255, 255, 255, .14); color: #fff; }
html.dark body.rf2 .iti__country.iti__highlight { background: rgba(255, 255, 255, .08); }

/* ══ OSTATECZNE (Ola 16:45: „do wyglądu zatwierdzam te ustawienia”): karta=szara, pola=białe, tytuł=mały. Te same reguły co opcje, bez prefiksu. ══ */
body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset { background: var(--gray-50); border-radius: 14px; padding: 18px 20px 22px; margin: 0 0 14px; }
html.dark body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset { background: rgba(255, 255, 255, .04); }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form) legend { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .01em; padding: 0; }
body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]) { background: #fff; border-color: var(--gray-300); }
html.dark body.rf2 :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
body.rf2 :is(.calypso-chips, .calypso-med-opts) label { background: #fff; }
html.dark body.rf2 :is(.calypso-chips, .calypso-med-opts) label { background: transparent; }
body.rf2 :is(.calypso-chips, .calypso-med-opts) label:has(input:checked) { background: var(--brand-600); }
html.dark body.rf2 :is(.calypso-chips, .calypso-med-opts) label:has(input:checked) { background: var(--brand-400); }
@media (max-width: 640px) { body.rf2 :is(.calypso-reg-form, .calypso-med-form) fieldset { padding: 16px 14px 18px; } }

/* CZY1 28.10: formularze gościa krojem strony (Mulish); panel załogi zostaje przy Work Sans z tokens.css */
html body:has(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal), html body :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal, .calypso-reg-success, .calypso-reg-errors, .calypso-med-success, .calypso-med-doctor, .calypso-med-errors, .calypso-doc-success, .calypso-doc-errors, .calypso-lang, .calypso-theme-toggle) { --font-sans: "Mulish", ui-sans-serif, system-ui, sans-serif; } /* te same kontenery co tokens.css wtyczki, mocniejszy selektor */
