/**
 * RobotCover inquiry form ([robotcover_form]) — scoped stylesheet.
 *
 * Everything is prefixed with `.rcf` / `.rcf-*` and all values come from the
 * `--rcf-*` custom properties declared on `.rcf`, so the module does not
 * depend on any theme class, colour or font and can never leak outside its own
 * container.
 *
 * FULL DARK (R1, 2026-10-06): the panel speaks the language of the page
 * (theme.json presets copied literally into `--rcf-*`, mapping table in the
 * token block below). Light prototype values (#fafcfc, #e9f7ee, #ff641f…)
 * are gone. No `var(--wp-…)` / `.wp-block-*` references anywhere.
 *
 * State classes and data hooks expected from assets/js/inquiry-form.js (T2b):
 *   .rcf--enhanced            container once the controller script took over
 *   .rcf-step.is-active       the current step (others stay in the DOM)
 *   .rcf-stepper__item.is-active | .is-done | .is-locked
 *   .rcf-chip:has(input:checked) selected chip
 *   .rcf-req--conditional      asterisk hidden until a condition holds; the
 *                              script drops the class when it does (NIP for
 *                              country=PL, per data-required-when)
 *   [hidden]                  always wins (success screen, summary, file lists)
 *
 * Theme isolation (fix round 1 T2b, kept in R1): a block theme styles h1-h6
 * globally and the browser supplies the rest (placeholder grey, UA border on
 * the honeypot). Everything the module renders is therefore reset explicitly
 * on .rcf and on the heading classes below so no computed value inside .rcf
 * depends on the theme or on the UA. R1 opts the headings back INTO the
 * page language (Chivo, uppercase) via own tokens — still zero inheritance.
 */

/* -------------------------------------------------------------------------
 * Design tokens — FULL DARK, 1:1 from theme.json presets.
 *
 *   --rcf-ink            #E5E2E1  text-body
 *   --rcf-heading        #FFFFFF   text-heading (new: prominent titles/labels)
 *   --rcf-orange         #FF4D00   primary (replaces prototype #ff641f)
 *   --rcf-orange-dark    #FF4D00   primary (collapsed: #E04400 as TEXT is 4.38:1,
 *                                 fails AA, so text accents use primary 5.54:1)
 *   --rcf-orange-hover   #E04400   primary-hover (new: hover FILLS only, never text)
 *   --rcf-orange-soft    rgba(255,77,0,.12)   primary 12% tint (stepper active)
 *   --rcf-orange-chip    rgba(255,77,0,.14)   primary 14% tint (checked chips)
 *   --rcf-orange-tint    rgba(255,77,0,.40)   primary 40% (tint borders)
 *   --rcf-orange-ink     #E04400   primary-hover (primary button hover fill)
 *   --rcf-muted          #A1A1A1   text-muted (also placeholder, see below)
 *   --rcf-muted-strong   #E5E2E1   text-body ("strong" = brighter on dark)
 *   --rcf-line           #282828   border
 *   --rcf-line-strong    #383838   border-strong
 *   --rcf-panel          #141414   surface (main panel, stepper)
 *   --rcf-panel-soft     #181818   surface-card (disabled fields, summary)
 *   --rcf-upload-bg      #181818   surface-card (robot cards, upload boxes)
 *   --rcf-upload-line    #383838   border-strong (dashed upload frame)
 *   --rcf-raised         #1F1F1F   surface-hover (new: chips, file rows)
 *   --rcf-btn-ghost      #1F1F1F   surface-hover (ghost button)
 *   --rcf-btn-ink        #E5E2E1   text-body (ghost button text)
 *   --rcf-outline-line   #383838   border-strong (robot remove frame)
 *   --rcf-outline-ink    #FFFFFF   text-heading (outline button text)
 *   --rcf-btn-outline-line rgba(255,255,255,.25)  dark outline button frame
 *   --rcf-btn-outline-bg   rgba(0,0,0,.40)       dark outline button fill
 *   --rcf-btn-outline-hover-bg rgba(255,77,0,.10)  dark outline hover tint
 *   --rcf-done-bg        rgba(123,216,143,.12)  dark-adapted green tint *
 *   --rcf-done-ink       #7BD88F   dark-adapted green text (10.58:1) *
 *   --rcf-done-line      rgba(123,216,143,.40)  dark-adapted green frame *
 *   --rcf-error          #FF7B6B   dark-adapted red text (7.28:1; old #b42d12
 *                                 is 2.92:1 on dark — unreadable) *
 *   --rcf-error-bg       rgba(255,123,107,.12)  dark-adapted red tint *
 *   --rcf-error-ring     rgba(255,123,107,.32)  field error ring
 *   --rcf-success-bg     rgba(123,216,143,.12)  dark green tint (replaces #e9f7ee) *
 *   --rcf-success-ink    #7BD88F   dark-adapted green text (10.58:1) *
 *   --rcf-progress-track #282828   border (progress rail)
 *   --rcf-focus-ring     rgba(255,77,0,.35)  primary focus-ring colour
 *   --rcf-edge           rgba(255,255,255,.08)  subtle inset highlight
 *   --rcf-edge-strong    rgba(255,255,255,.22)  button inset highlight
 *   --rcf-ink-on-primary #0F0F0F   primary fill text (5.76:1; hover 4.56:1)
 *   --rcf-ease           cubic-bezier(0.16,1,0.3,1)  theme motion curve
 *   --rcf-dur            0.25s     theme motion duration
 *   --rcf-dur-fast       0.15s     compact control motion
 *   --rcf-placeholder    #A1A1A1   text-muted (explicit placeholder token)
 *   --rcf-white          #ffffff   white text for headings/outline controls
 *   --rcf-radius-sm/-/-/--lg  4px  CF7 language (inputs, buttons, cards)
 *   --rcf-radius-card    10px      robot/file/summary/success cards
 *   --rcf-radius-pill    999px     chip and progress pill
 *   --rcf-font-sans      Inter stack (theme.json body family, literal copy)
 *   --rcf-font-heading   Chivo stack (theme.json heading family, literal copy)
 *   --rcf-font-mono      JetBrains Mono/Fira Code/Consolas stack (theme.json)
 *   --rcf-btn-font-size  13.5px    theme filled CTA size
 *   --rcf-btn-font-weight 700      theme filled CTA weight
 *   --rcf-success-max-width 680px  success card width cap
 *
 * (*) No green/red preset exists in theme.json; the semantic hues are kept
 * but re-tuned for dark surfaces. Full contrast table in the R1 report.
 * ---------------------------------------------------------------------- */

.rcf {
	--rcf-ink: #e5e2e1;
	--rcf-heading: #ffffff;
	--rcf-orange: #ff4d00;
	--rcf-orange-dark: #ff4d00;
	--rcf-orange-hover: #e04400;
	--rcf-orange-soft: rgba(255, 77, 0, 0.12);
	--rcf-orange-chip: rgba(255, 77, 0, 0.14);
	--rcf-orange-tint: rgba(255, 77, 0, 0.4);
	--rcf-orange-ink: #e04400;
	--rcf-muted: #a1a1a1;
	--rcf-muted-strong: #e5e2e1;
	--rcf-line: #282828;
	--rcf-line-strong: #383838;
	--rcf-panel: #141414;
	--rcf-panel-soft: #181818;
	--rcf-upload-bg: #181818;
	--rcf-upload-line: #383838;
	--rcf-raised: #1f1f1f;
	--rcf-btn-ghost: #1f1f1f;
	--rcf-btn-ink: #e5e2e1;
	--rcf-outline-line: #383838;
	--rcf-outline-ink: #ffffff;
	--rcf-btn-outline-line: rgba(255, 255, 255, 0.25);
	--rcf-btn-outline-bg: rgba(0, 0, 0, 0.4);
	--rcf-btn-outline-hover-bg: rgba(255, 77, 0, 0.1);
	--rcf-done-bg: rgba(123, 216, 143, 0.12);
	--rcf-done-ink: #7bd88f;
	--rcf-done-line: rgba(123, 216, 143, 0.4);
	--rcf-error: #ff7b6b;
	--rcf-error-bg: rgba(255, 123, 107, 0.12);
	--rcf-error-ring: rgba(255, 123, 107, 0.32);
	--rcf-success-bg: rgba(123, 216, 143, 0.12);
	--rcf-success-ink: #7bd88f;
	--rcf-progress-track: #282828;
	--rcf-focus-ring: rgba(255, 77, 0, 0.35);
	--rcf-edge: rgba(255, 255, 255, 0.08);
	--rcf-edge-strong: rgba(255, 255, 255, 0.22);
	--rcf-ink-on-primary: #0f0f0f;
	--rcf-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--rcf-dur: 0.25s;
	--rcf-dur-fast: 0.15s;
	--rcf-placeholder: #a1a1a1;
	--rcf-white: #ffffff;

	--rcf-space-2: 8px;
	--rcf-space-3: 13px;
	--rcf-space-4: 18px;
	--rcf-space-5: 24px;
	--rcf-space-6: 32px;

	--rcf-radius-sm: 4px;
	--rcf-radius: 4px;
	--rcf-radius-lg: 4px;
	--rcf-radius-card: 10px;
	--rcf-radius-pill: 999px;

	--rcf-font-size: 15px;
	--rcf-line-height: 1.5;
	--rcf-btn-font-size: 13.5px;
	--rcf-btn-font-weight: 700;
	--rcf-success-max-width: 680px;

	/*
	 * Own font stacks (literal copies of the theme.json families, so the
	 * panel speaks the page language without inheriting it): Inter for the
	 * body/fields, Chivo for headings and buttons.
	 */
	--rcf-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--rcf-font-heading: Chivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--rcf-font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

	box-sizing: border-box;
	margin: 0 0 var(--rcf-space-5);
	color: var(--rcf-ink);
	color-scheme: dark;
	font-family: var(--rcf-font-sans);
	font-size: var(--rcf-font-size);
	font-weight: 400;
	line-height: var(--rcf-line-height);
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
}

.rcf *,
.rcf *::before,
.rcf *::after {
	box-sizing: inherit;
}

/* The hidden attribute must beat every state class below. */
.rcf [hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Theme isolation: headings
 *
 * R1 speaks the page language on purpose: Chivo, uppercase, -0.3px
 * letter-spacing (the theme.json heading preset, copied literally into own
 * declarations — still zero inheritance, the reset below pins every value).
 * ---------------------------------------------------------------------- */

.rcf-step__title,
.rcf-robot__title,
.rcf-success__title {
	color: var(--rcf-heading);
	font-family: var(--rcf-font-heading);
	font-style: normal;
	font-variant: normal;
	font-weight: 800;
	letter-spacing: -0.3px;
	text-align: inherit;
	text-decoration: none;
	text-transform: uppercase;
	word-break: normal;
}

/* -------------------------------------------------------------------------
 * Layout: stepper + panel (unchanged in R1 — colours only below)
 * ---------------------------------------------------------------------- */

.rcf__layout {
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr);
	gap: var(--rcf-space-5);
	align-items: start;
}

.rcf__main {
	background: var(--rcf-panel);
	border: 1px solid var(--rcf-line);
	border-radius: var(--rcf-radius-lg);
	padding: var(--rcf-space-6) 35px;
	min-width: 0;
	box-shadow: inset 0 1px 0 var(--rcf-edge);
}

.rcf__form {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Stepper
 * ---------------------------------------------------------------------- */

.rcf-stepper {
	background: var(--rcf-panel);
	border: 1px solid var(--rcf-line);
	border-radius: var(--rcf-radius-lg);
	padding: var(--rcf-space-4);
	position: sticky;
	top: 20px;
	box-shadow: inset 0 1px 0 var(--rcf-edge);
}

.rcf-stepper__title {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--rcf-muted);
	font-family: var(--rcf-font-mono);
	text-transform: uppercase;
}

/* Visible only on narrow viewports (see the media queries). */
.rcf-stepper__counter {
	display: none;
	margin: var(--rcf-space-2) 0 0;
	font-size: 13px;
	font-weight: 800;
	color: var(--rcf-orange-dark);
	font-family: var(--rcf-font-mono);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.rcf-stepper__list {
	list-style: none;
	margin: var(--rcf-space-2) 0 0;
	padding: 0;
}

.rcf-stepper__row {
	margin: 0;
	position: relative;
}

.rcf-stepper__item {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 12px 7px;
	border: 0;
	border-radius: var(--rcf-radius);
	background: transparent;
	color: var(--rcf-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rcf-stepper__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 29px;
	height: 29px;
	border: 1px solid var(--rcf-line-strong);
	border-radius: 50%;
	font-family: var(--rcf-font-mono);
	font-size: 11px;
}

.rcf-stepper__label {
	min-width: 0;
}

.rcf-stepper__item.is-active {
	background: var(--rcf-orange-soft);
	color: var(--rcf-orange-dark);
}

.rcf-stepper__item.is-active .rcf-stepper__num {
	background: var(--rcf-orange);
	border-color: var(--rcf-orange);
	color: var(--rcf-ink-on-primary);
	box-shadow: 0 0 0 4px var(--rcf-orange-tint);
}

.rcf-stepper__item.is-done {
	color: var(--rcf-done-ink);
}

.rcf-stepper__item.is-done .rcf-stepper__num {
	background: var(--rcf-done-bg);
	border-color: var(--rcf-done-line);
	color: var(--rcf-done-ink);
}

.rcf-stepper__item.is-locked {
	cursor: default;
}

.rcf-stepper__item.is-locked .rcf-stepper__num {
	border-color: var(--rcf-line);
	color: var(--rcf-muted);
}

.rcf-stepper__row + .rcf-stepper__row::before {
	content: '';
	position: absolute;
	left: 21px;
	top: -6px;
	width: 1px;
	height: 12px;
	background: var(--rcf-line);
}

.rcf-stepper__note {
	margin: 15px 0 0;
	padding-top: 17px;
	border-top: 1px solid var(--rcf-line);
	color: var(--rcf-muted);
	font-size: 12px;
}

/* -------------------------------------------------------------------------
 * Progress bar
 * ---------------------------------------------------------------------- */

.rcf-progress {
	height: 5px;
	margin-bottom: var(--rcf-space-5);
	border-radius: var(--rcf-radius-pill);
	background: var(--rcf-progress-track);
	overflow: hidden;
	box-shadow: inset 0 1px 0 var(--rcf-edge);
}

.rcf-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--rcf-orange-ink), var(--rcf-orange));
	transition: width var(--rcf-dur) var(--rcf-ease);
}

/* -------------------------------------------------------------------------
 * Steps
 * ---------------------------------------------------------------------- */

.rcf-step__head {
	margin-bottom: var(--rcf-space-5);
}

/*
 * Progressive enhancement: every step is visible in a browser without the
 * controller script; once it adds .rcf--enhanced to the container, only the
 * active step is displayed (all steps stay in the DOM, so no data is lost).
 */
.rcf--enhanced .rcf-step {
	display: none;
}

.rcf--enhanced .rcf-step.is-active {
	display: block;
}

.rcf-step__title {
	margin: 0 0 6px;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 800;
}

.rcf-step__desc {
	margin: 0;
	color: var(--rcf-muted);
	font-size: 13px;
}

.rcf-subtitle {
	margin: var(--rcf-space-5) 0 var(--rcf-space-3);
	padding-top: 20px;
	border-top: 1px solid var(--rcf-line);
	color: var(--rcf-heading);
	font-family: var(--rcf-font-heading);
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.3px;
}

.rcf-preview-note {
	margin: 0 0 var(--rcf-space-4);
	padding: 11px var(--rcf-space-3);
	border: 1px solid var(--rcf-orange-tint);
	border-left: 3px solid var(--rcf-orange);
	border-radius: var(--rcf-radius-sm);
	background: var(--rcf-orange-chip);
	color: var(--rcf-orange-dark);
	font-size: 12px;
}

/* -------------------------------------------------------------------------
 * Fields (CF7 language: Inter 14px, 12px 14px, radius 4px, dark surfaces)
 * ---------------------------------------------------------------------- */

.rcf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rcf-space-4);
}

.rcf-grid--spaced {
	margin-top: var(--rcf-space-4);
}

.rcf-field--full {
	grid-column: 1 / -1;
}

.rcf-field {
	min-width: 0;
}

.rcf-field__label {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 800;
}

.rcf-req {
	margin-left: 2px;
	color: var(--rcf-orange);
}

/*
 * Conditional requirement marker (NIP for country=PL). Hidden by default: the
 * control itself carries data-required-when and is not `required` in the HTML,
 * so the asterisk may only appear once the script confirms the condition (T2b
 * drops the .rcf-req--conditional class).
 */
.rcf-req--conditional {
	display: none;
}

.rcf-field input,
.rcf-field select,
.rcf-field textarea {
	display: block;
	width: 100%;
	min-height: 47px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--rcf-line-strong);
	border-radius: var(--rcf-radius);
	background: var(--rcf-upload-bg);
	color: var(--rcf-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.rcf-field textarea {
	min-height: 95px;
	resize: vertical;
}

.rcf-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--rcf-muted) 50%),
		linear-gradient(135deg, var(--rcf-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

.rcf-field input:not(:disabled):hover,
.rcf-field select:not(:disabled):hover,
.rcf-field textarea:not(:disabled):hover {
	background-color: var(--rcf-raised);
}

/*
 * CF7 language: orange border + outline:none on focus. The box-shadow ring
 * keeps mouse focus visible; keyboard users get the stronger :focus-visible
 * outline below (never removed).
 */
.rcf-field input:focus,
.rcf-field select:focus,
.rcf-field textarea:focus {
	border-color: var(--rcf-orange);
	box-shadow: 0 0 0 3px var(--rcf-focus-ring);
	outline: none;
}

/*
 * Placeholder in the page muted tone (#A1A1A1 via --rcf-placeholder).
 * opacity is spelled out because Firefox dims ::placeholder by default.
 */
.rcf-field input::placeholder,
.rcf-field textarea::placeholder {
	color: var(--rcf-placeholder);
	opacity: 1;
}

.rcf-field input:disabled,
.rcf-field select:disabled,
.rcf-field textarea:disabled {
	border-color: var(--rcf-line);
	background: var(--rcf-panel-soft);
	color: var(--rcf-muted);
	cursor: not-allowed;
}

.rcf-field input[aria-invalid="true"],
.rcf-field select[aria-invalid="true"],
.rcf-field textarea[aria-invalid="true"] {
	border-color: var(--rcf-error);
	box-shadow: 0 0 0 3px var(--rcf-error-ring);
}

.rcf-field input[aria-invalid="true"]:focus,
.rcf-field select[aria-invalid="true"]:focus,
.rcf-field textarea[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px var(--rcf-error-ring), 0 0 0 6px var(--rcf-focus-ring);
}

.rcf-field__hint,
.rcf-hint {
	margin: 5px 0 0;
	color: var(--rcf-muted);
	font-size: 11px;
}

.rcf-hint {
	margin: var(--rcf-space-2) 0 0;
	font-size: 12px;
}

/* Field errors stay invisible until the script fills them in. */
.rcf-field__error {
	display: none;
	margin: 5px 0 0;
	color: var(--rcf-error);
	font-size: 12px;
	font-weight: 700;
}

.rcf-field__error:not(:empty) {
	display: block;
}

/*
 * Teach Pendant question (TP1): a plain fieldset must not paint the UA
 * group box (light border + offsets) inside the dark panel.
 */
.rcf-teach-pendant {
	border: 0;
	margin: 0;
	padding: 0;
}

.rcf-teach-pendant legend {
	padding: 0;
}

/* Single checkbox (RODO consent). */
.rcf-check {
	display: flex;
	align-items: flex-start;
	gap: var(--rcf-space-3);
}

/* Wins over the generic `.rcf-field input` box styling above. */
.rcf-check input[type="checkbox"].rcf-check__input {
	flex: none;
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--rcf-orange);
}

.rcf-check__label {
	font-size: 12px;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * Chips
 * ---------------------------------------------------------------------- */

.rcf-chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rcf-space-2);
}

.rcf-chip {
	display: flex;
	align-items: center;
	gap: var(--rcf-space-2);
	padding: 12px;
	border: 1px solid var(--rcf-line-strong);
	border-radius: var(--rcf-radius-pill);
	background: var(--rcf-raised);
	color: var(--rcf-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color var(--rcf-dur-fast) var(--rcf-ease), background-color var(--rcf-dur-fast) var(--rcf-ease), transform var(--rcf-dur) var(--rcf-ease);
}

/* Wins over the generic `.rcf-field input` box styling above. */
.rcf-chip input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	min-height: 0;
	margin: 0;
	padding: 0;
	accent-color: var(--rcf-orange);
}

.rcf-chip:has(input:checked) {
	border-color: var(--rcf-orange);
	background: var(--rcf-orange-chip);
	color: var(--rcf-white);
}

/* -------------------------------------------------------------------------
 * Robots
 * ---------------------------------------------------------------------- */

.rcf-robots {
	display: grid;
	gap: var(--rcf-space-3);
}

.rcf-robots + .rcf-btn[data-add-robot] {
	margin-top: var(--rcf-space-3);
}

.rcf-robot {
	padding: var(--rcf-space-4);
	border: 1px solid var(--rcf-line);
	border-radius: var(--rcf-radius-card);
	background: var(--rcf-upload-bg);
}

.rcf-robot__title {
	margin: 0 0 var(--rcf-space-4);
	font-size: 15px;
	font-weight: 800;
}

.rcf-robot__remove {
	margin-top: var(--rcf-space-3);
	padding: 6px 12px;
	border: 1px solid var(--rcf-outline-line);
	border-radius: var(--rcf-radius-sm);
	background: transparent;
	color: var(--rcf-muted-strong);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.rcf-robot__remove:hover {
	border-color: var(--rcf-error);
	color: var(--rcf-error);
}

/* -------------------------------------------------------------------------
 * Attachments
 * ---------------------------------------------------------------------- */

.rcf-upload {
	margin-bottom: var(--rcf-space-3);
	padding: var(--rcf-space-4);
	border: 1.5px dashed var(--rcf-upload-line);
	border-radius: var(--rcf-radius);
	background: var(--rcf-upload-bg);
}

.rcf-field__desc {
	margin: 0;
	color: var(--rcf-muted);
	font-size: 12px;
}

/* Native file control inside the dashed box (no extra field chrome). */
.rcf-field input[type="file"].rcf-upload__input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	margin-top: var(--rcf-space-3);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--rcf-ink);
	font-size: 12px;
}

.rcf-files {
	list-style: none;
	margin: var(--rcf-space-3) 0 0;
	padding: 0;
	font-size: 12px;
}

.rcf-files li {
	display: flex;
	justify-content: space-between;
	gap: var(--rcf-space-3);
	padding: 6px 10px;
	border-radius: var(--rcf-radius-card);
	background: var(--rcf-raised);
	color: var(--rcf-ink);
	font-family: var(--rcf-font-mono);
	font-variant-numeric: tabular-nums;
}

.rcf-files li + li {
	margin-top: 4px;
}

/* -------------------------------------------------------------------------
 * Buttons (theme CTA language: Chivo, uppercase, 13.5px/700, 13px 26px,
 * 1.5px frame, radius 4px, primary fill + primary-hover)
 * ---------------------------------------------------------------------- */

.rcf-btn {
	display: inline-block;
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--rcf-radius);
	font-family: var(--rcf-font-heading);
	font-size: var(--rcf-btn-font-size);
	font-weight: var(--rcf-btn-font-weight);
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: background-color var(--rcf-dur) var(--rcf-ease), border-color var(--rcf-dur) var(--rcf-ease), color var(--rcf-dur) var(--rcf-ease), transform var(--rcf-dur) var(--rcf-ease);
}

.rcf-btn--primary {
	background: var(--rcf-orange);
	border-color: transparent;
	color: var(--rcf-white);
}

.rcf-btn--primary:not([disabled]):not([aria-disabled="true"]):hover {
	background: var(--rcf-orange-hover);
	border-color: transparent;
	transform: translateY(-1px);
}

.rcf-btn--primary:not([disabled]):not([aria-disabled="true"]):active {
	transform: translateY(0);
}

.rcf-btn--outline {
	border-color: var(--rcf-btn-outline-line);
	background: var(--rcf-btn-outline-bg);
	color: var(--rcf-outline-ink);
}

.rcf-btn--outline:not([disabled]):not([aria-disabled="true"]):hover {
	border-color: var(--rcf-orange);
	background: var(--rcf-btn-outline-hover-bg);
	color: var(--rcf-orange);
	transform: translateY(-1px);
}

.rcf-btn--ghost {
	background: var(--rcf-btn-ghost);
	border-color: transparent;
	color: var(--rcf-btn-ink);
}

.rcf-btn--ghost:not([disabled]):not([aria-disabled="true"]):hover {
	background: var(--rcf-line);
	border-color: transparent;
	transform: translateY(-1px);
}

.rcf-btn[disabled],
.rcf-btn[aria-disabled="true"] {
	transform: none;
	background: var(--rcf-panel-soft);
	color: var(--rcf-muted);
	border-color: var(--rcf-line);
	box-shadow: none;
	cursor: not-allowed;
}

.rcf-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: var(--rcf-space-6);
	padding-top: 23px;
	padding-bottom: 16px;
	border-top: 1px solid var(--rcf-line);
	position: sticky;
	bottom: 0;
	z-index: 2;
	background: var(--rcf-panel);
}

.rcf-field input,
.rcf-field select,
.rcf-field textarea {
	scroll-margin-bottom: 140px;
}

.rcf-btn--submit {
	margin-top: var(--rcf-space-4);
}

.rcf-field--rodo {
	margin-top: var(--rcf-space-4);
}

/* -------------------------------------------------------------------------
 * Summary, success and error regions
 * ---------------------------------------------------------------------- */

.rcf-summary {
	padding: var(--rcf-space-4);
	border-radius: var(--rcf-radius-card);
	background: var(--rcf-panel-soft);
	color: var(--rcf-ink);
	font-size: 13px;
	line-height: 1.6;
}

.rcf-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--rcf-line);
	background: transparent;
	color: var(--rcf-ink);
	font: inherit;
	text-align: left;
	padding: 9px 0;
	cursor: pointer;
}

.rcf-summary__label {
	color: var(--rcf-muted);
}

.rcf-summary__value {
	min-width: 0;
	text-align: right;
	overflow-wrap: anywhere;
}

.rcf-summary__row:hover .rcf-summary__value {
	color: var(--rcf-white);
}

.rcf-summary__section {
	margin-top: var(--rcf-space-4);
	padding-top: var(--rcf-space-2);
	border-top: 1px solid var(--rcf-line);
	color: var(--rcf-muted);
	font-family: var(--rcf-font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rcf-summary__section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rcf-success {
	display: flex;
	flex-direction: column;
	gap: var(--rcf-space-3);
	width: 100%;
	max-width: var(--rcf-success-max-width);
	box-sizing: border-box;
	margin: var(--rcf-space-3) auto 0;
	padding: var(--rcf-space-5);
	border: 1px solid var(--rcf-done-line);
	border-left: 4px solid var(--rcf-done-ink);
	border-radius: var(--rcf-radius-card);
	background: var(--rcf-success-bg);
	color: var(--rcf-ink);
}

.rcf-success__title {
	margin: 0;
	color: var(--rcf-white);
	font-size: 19px;
	font-weight: 800;
}

.rcf-success__number {
	margin: 0;
	color: var(--rcf-success-ink);
	font-family: var(--rcf-font-mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--rcf-font-size);
	font-weight: 700;
}

.rcf-success p {
	margin: 0;
	font-size: var(--rcf-font-size);
}

.rcf-success__note {
	color: var(--rcf-ink);
}

.rcf:has([data-success]:not([hidden])) .rcf__layout {
	grid-template-columns: minmax(0, 1fr);
}

.rcf:has([data-success]:not([hidden])) .rcf-progress {
	display: none;
}

.rcf:has([data-success]:not([hidden])) .rcf__main {
	width: 100%;
}

.rcf-alert {
	margin: 0 0 var(--rcf-space-3);
}

.rcf-alert button.rcf-alert__item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.rcf-alert button.rcf-alert__item:hover {
	color: var(--rcf-white);
}

.rcf-alert__lead {
	display: block;
	margin-bottom: 4px;
}

.rcf-alert__plain {
	display: block;
}

@media (hover: hover) {
	.rcf-robot:hover {
		background: var(--rcf-raised);
		border-color: var(--rcf-orange);
		transform: translateY(-2px);
		transition: var(--rcf-dur) var(--rcf-ease);
	}

	.rcf-chip:hover {
		border-color: var(--rcf-orange);
		transform: translateY(-1px);
	}
}

.rcf-alert:empty {
	display: none;
}

.rcf-alert--error {
	padding: 11px var(--rcf-space-3);
	border-left: 3px solid var(--rcf-error);
	border-radius: var(--rcf-radius-sm);
	background: var(--rcf-error-bg);
	color: var(--rcf-error);
	font-size: 12px;
	font-weight: 700;
}

/* Honeypot: positioned off-screen, never display:none. */
.rcf-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*
 * The trap is off-screen but still an input: without these values the UA
 * paints its 2px inset border, Arial 13.33px and black text. Bots that scan
 * computed styles must see the same empty, unstyled-looking box as a human
 * sees nothing at all.
 */
.rcf-hp input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--rcf-ink);
	font-family: var(--rcf-font-sans);
	font-size: var(--rcf-font-size);
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: var(--rcf-line-height);
	text-transform: none;
}

/* -------------------------------------------------------------------------
 * Accessibility
 *
 * Mouse/touch focus gets the CF7 treatment (orange border, no outline, soft
 * ring via box-shadow above); keyboard focus always keeps a solid outline
 * below, so :focus-visible is never invisible.
 * ---------------------------------------------------------------------- */

.rcf a:focus-visible,
.rcf button:focus-visible,
.rcf input:focus-visible,
.rcf select:focus-visible,
.rcf textarea:focus-visible,
.rcf .rcf-chip:has(input:focus-visible) {
	outline: 2px solid var(--rcf-orange);
	outline-offset: 2px;
}

.rcf-field input:focus-visible,
.rcf-field select:focus-visible,
.rcf-field textarea:focus-visible {
	outline: 2px solid var(--rcf-orange);
	outline-offset: 1px;
}

/* -------------------------------------------------------------------------
 * Responsive: 900px (tablet) and 390px (phone) — unchanged in R1
 * ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.rcf__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.rcf__main {
		padding: var(--rcf-space-5);
	}

	/* Załącznik A: on mobile the stepper collapses to the step counter. */
	.rcf-stepper {
		position: static;
		padding: var(--rcf-space-3) var(--rcf-space-4);
	}

	.rcf-stepper__list,
	.rcf-stepper__note {
		display: none;
	}

	.rcf-stepper__counter {
		display: block;
	}

	.rcf-chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rcf {
		--rcf-space-6: var(--rcf-space-5);
	}

	.rcf__main {
		padding: var(--rcf-space-4);
	}

	.rcf-success {
		padding: var(--rcf-space-4);
	}

	.rcf-grid,
	.rcf-chips {
		grid-template-columns: minmax(0, 1fr);
	}

	.rcf-step__title {
		font-size: 21px;
	}

	.rcf-chip {
		padding: 10px;
		font-size: 11px;
	}

	.rcf-nav {
		flex-direction: column-reverse;
	}

	.rcf-nav .rcf-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes rcf-step-in {
		from {
			opacity: 0;
			transform: translateY(8px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}

	.rcf--enhanced .rcf-step.is-active {
		animation: rcf-step-in var(--rcf-dur) var(--rcf-ease);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcf *,
	.rcf *::before,
	.rcf *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}
