/*
 * Kontakt B (STAGE): contact page in the homepage B style. Loaded only on the page with body class
 * .hk-page, after home-b.css (tokens, header, footer, buttons, FAQ come from there).
 * Every rule targets hk-* classes set on core blocks, or the WPForms form .hk-form.
 */

/* ---------- Shared ---------- */
.hk-page .hk-sec { padding: clamp(72px, 8vw, 120px) var(--hb-pad); }
.hk-page .hk-sec + .hk-sec { padding-top: 0; }
.hk-page .hb-sec-head { margin-bottom: 40px; }
/* the play icon belongs to "Film z pracowni" on the homepage only */
.hk-page .hb-btn-ghost .wp-block-button__link::before { content: none; }
.hk-page .entry-content a:focus-visible, .hk-page .wp-block-button__link:focus-visible { outline: 2px solid var(--hb-gold-2); outline-offset: 3px; }

/* ---------- 1. Hero: arched photo left, copy right ---------- */
.hk-page .hk-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(130px, 13vw, 170px) var(--hb-pad) clamp(56px, 6vw, 90px); }
.hk-page .hk-hero-film { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); aspect-ratio: 4 / 5; border-radius: 28px; }
.hk-page .hk-hero-film::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,176,72,.22), rgba(255,150,50,.06) 55%, transparent 75%); pointer-events: none; }
.hk-page .hk-hero-film video { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 45%; border-radius: 28px; border: 1px solid var(--hb-line); background: #1d150e; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(240,170,60,.12); }
.hk-page .hk-hero-copy { max-width: 600px; }
.hk-page .hk-hero-title { font-size: clamp(44px, 5.6vw, 84px) !important; line-height: 1 !important; margin-top: 20px !important; }
.hk-page .hk-hero-sub { margin-top: 24px !important; font-size: 18px; line-height: 1.65; color: var(--hb-ink-2); max-width: 500px; }
.hk-page .hk-hero .hb-btns { margin-top: 36px; }

/* ---------- 2. Ways to reach us ---------- */
.hk-page .hk-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hk-page .hk-way { position: relative; padding: 32px 30px 30px !important; border: 1px solid var(--hb-line); border-radius: 22px; background: linear-gradient(180deg, rgba(35,24,15,.92), rgba(24,17,11,.7)); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.hk-page .hk-way:hover { border-color: rgba(217,164,65,.5); box-shadow: 0 0 50px rgba(240,170,60,.12); }
.hk-page .hk-way::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,176,72,.14), transparent); pointer-events: none; }
.hk-page .hk-way-icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hb-gold); display: grid; place-items: center; color: var(--hb-gold-2); font-size: 0; }
.hk-page .hk-way-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hk-page .hk-way-title { font: 400 26px/1.15 var(--hb-serif) !important; margin-top: 10px !important; }
.hk-page .hk-way-value { font: 600 18px/1.6 var(--hb-sans); color: var(--hb-ink); }
.hk-page .hk-way-value a { color: var(--hb-ink); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.hk-page .hk-way-value a:hover { color: var(--hb-gold-2); border-color: var(--hb-gold); }
.hk-page .hk-way-note { margin-top: auto !important; padding-top: 6px !important; font-size: 14px; line-height: 1.6; color: var(--hb-muted); }

/* ---------- 3. Write to us (copy + WPForms form) ---------- */
.hk-page .hk-write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.hk-page .hk-write-intro .hb-lead { max-width: 440px; }
.hk-page .hk-promise { list-style: none; margin: 30px 0 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.hk-page .hk-promise li { position: relative; padding-left: 28px !important; color: var(--hb-ink-2); font-size: 15px; line-height: 1.6; }
.hk-page .hk-promise li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-gold-2); box-shadow: 0 0 12px var(--hb-gold-2); }
.hk-page .hk-quote { margin-top: 38px !important; padding-top: 26px !important; border-top: 1px solid var(--hb-line); font: italic 300 22px/1.4 var(--hb-serif); color: var(--hb-ink); max-width: 420px; }

.hk-page .hk-form-card { padding: clamp(24px, 3vw, 40px) !important; border: 1px solid var(--hb-line); border-radius: 26px; background: linear-gradient(180deg, rgba(31,22,14,.95), rgba(22,16,10,.9)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hk-page .hk-form-card .wpforms-container { margin: 0 !important; }
.hk-page .hk-form .wpforms-field-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.hk-page .hk-form .wpforms-field { padding: 0 !important; grid-column: 1 / -1; }
.hk-page .hk-form .wpforms-field.hk-f-half { grid-column: auto; }
.hk-page .hk-form .wpforms-field-label { display: block; margin: 0 0 9px !important; font: 600 12px/1.2 var(--hb-sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--hb-ink-2) !important; }
.hk-page .hk-form .wpforms-required-label { color: var(--hb-gold) !important; }
.hk-page .hk-form :is(input[type=text], input[type=email], textarea) { width: 100% !important; max-width: none !important; height: auto; padding: 14px 16px !important; font: 400 16px/1.45 var(--hb-sans) !important; color: var(--hb-ink) !important; background: #120d09 !important; border: 1px solid var(--hb-line) !important; border-radius: 14px !important; box-shadow: none !important; transition: border-color .3s, box-shadow .3s; }
.hk-page .hk-form textarea { min-height: 150px; resize: vertical; }
.hk-page .hk-form :is(input, textarea)::placeholder { color: var(--hb-muted); opacity: 1; }
.hk-page .hk-form :is(input[type=text], input[type=email], textarea):focus { outline: none; border-color: var(--hb-gold) !important; box-shadow: 0 0 0 3px rgba(217,164,65,.18) !important; }
/* topic as chips */
.hk-page .hk-form .hk-f-chips ul { display: flex !important; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.hk-page .hk-form .hk-f-chips li { position: relative; margin: 0 !important; padding: 0 !important; }
.hk-page .hk-form .hk-f-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hk-page .hk-form .hk-f-chips label.wpforms-field-label-inline { display: inline-block; margin: 0 !important; padding: 11px 17px; border: 1px solid var(--hb-line); border-radius: 99px; font: 600 14px/1 var(--hb-sans); color: var(--hb-ink-2) !important; cursor: pointer; transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.hk-page .hk-form .hk-f-chips label.wpforms-field-label-inline:hover { border-color: rgba(217,164,65,.55); color: var(--hb-ink) !important; }
.hk-page .hk-form .hk-f-chips input:checked + label { border-color: var(--hb-gold); color: var(--hb-gold-2) !important; background: rgba(217,164,65,.12); box-shadow: 0 0 22px rgba(240,170,60,.15); }
.hk-page .hk-form .hk-f-chips input:focus-visible + label { outline: 2px solid var(--hb-gold-2); outline-offset: 2px; }
/* consent */
.hk-page .hk-form .hk-f-consent ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.hk-page .hk-form .hk-f-consent li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; }
.hk-page .hk-form .hk-f-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0 !important; accent-color: var(--hb-gold); }
.hk-page .hk-form .hk-f-consent label { margin: 0 !important; font: 400 14px/1.55 var(--hb-sans) !important; color: var(--hb-muted) !important; }
.hk-page .hk-form .hk-f-consent a { color: var(--hb-ink-2); border-bottom: 1px solid var(--hb-line); }
/* errors and confirmation */
.hk-page .hk-form label.wpforms-error, .hk-page .hk-form em.wpforms-error { display: block; margin-top: 8px; font: 500 13px/1.4 var(--hb-sans) !important; color: #f0a48a !important; }
.hk-page .hk-form .wpforms-error:is(input, textarea) { border-color: #e2725b !important; }
.hk-page .hk-form-card .wpforms-confirmation-container-full { margin: 0; padding: 22px 24px; border: 1px solid var(--hb-gold); border-radius: 16px; background: rgba(217,164,65,.08); color: var(--hb-ink); font-size: 16px; }
.hk-page .hk-form-card .wpforms-confirmation-container-full p { margin: 0; color: var(--hb-ink); }
/* submit */
.hk-page .hk-form .wpforms-submit-container { padding: 0 !important; margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.hk-page .hk-form button.hk-submit { height: 56px; padding: 0 34px !important; border: 0 !important; border-radius: 99px !important; background: var(--hb-gold-grad) !important; color: #1a0f05 !important; font: 700 13px/1 var(--hb-sans) !important; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 40px var(--hb-glow); cursor: pointer; transition: transform .3s, box-shadow .3s; }
.hk-page .hk-form button.hk-submit:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(240,170,60,.7); }
.hk-page .hk-form button.hk-submit:focus-visible { outline: 2px solid var(--hb-gold-2); outline-offset: 3px; }

/* ---------- 4. Custom order steps ---------- */
.hk-page .hk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); border-top: 1px solid var(--hb-line); counter-reset: hk; }
.hk-page .hk-step { position: relative; padding-top: 34px !important; }
.hk-page .hk-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--hb-gold-2); box-shadow: 0 0 16px var(--hb-gold-2); }
.hk-page .hk-step-no { font: 300 52px/1 var(--hb-serif); background: var(--hb-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hk-page .hk-step-title { font: 400 24px/1.2 var(--hb-serif) !important; margin-top: 14px !important; }
.hk-page .hk-step p:not(.hk-step-no) { margin-top: 10px !important; color: var(--hb-ink-2); font-size: 15px; line-height: 1.65; max-width: 340px; }
.hk-page .hk-steps-cta { margin-top: 44px; }
.hk-page .hk-steps-cta .hb-btns { margin-top: 0; }

/* ---------- 5. Map ---------- */
.hk-page .hk-map { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1px solid var(--hb-line); border-radius: 26px; overflow: hidden; background: #160f0a; }
.hk-page .hk-map-info { padding: clamp(28px, 4vw, 52px) !important; display: flex; flex-direction: column; justify-content: center; }
.hk-page .hk-map-info .hb-sec-title { font-size: clamp(30px, 3vw, 44px) !important; }
.hk-page .hk-address { margin-top: 22px !important; font: 400 20px/1.55 var(--hb-serif); color: var(--hb-ink); }
.hk-page .hk-map-info .hb-link { margin-top: 28px !important; }
.hk-page .hk-map-frame { position: relative; min-height: 440px; margin: 0 !important; background: #1d150e; }
.hk-page .hk-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.9) sepia(.55) hue-rotate(-12deg) saturate(1.6) brightness(.82) contrast(1.05); }
.hk-page .hk-map-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 60px 0 60px -30px #160f0a; }
/* Complianz placeholder while consent is missing */
.hk-page .hk-map-frame .cmplz-placeholder-element, .hk-page .hk-map-frame .cmplz-iframe-styles { position: absolute; inset: 0; }
.hk-page .hk-map-frame .cmplz-blocked-content-notice { background: rgba(18,13,9,.88) !important; color: var(--hb-ink) !important; border: 1px solid var(--hb-gold) !important; border-radius: 99px !important; font: 600 13px/1.4 var(--hb-sans) !important; padding: 12px 22px !important; }

/* ---------- 6. Instagram strip ---------- */
.hk-page .hk-ig { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hk-page .hk-ig figure { margin: 0; overflow: hidden; border-radius: 14px; }
.hk-page .hk-ig img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; filter: brightness(.88); }
.hk-page .hk-ig figure:hover img { transform: scale(1.05); filter: brightness(1); }

/* ---------- 7. FAQ: home-b.css .hb-faq, closer to the strip above ---------- */
.hk-page .hb-faq { padding-top: clamp(40px, 5vw, 72px); }

/* Complianz "Zarządzaj zgodą" pill: dark and gold instead of a white slab */
.hk-page .cmplz-btn.cmplz-manage-consent { background: rgba(18,13,9,.9) !important; color: var(--hb-ink-2) !important; border: 1px solid var(--hb-line) !important; box-shadow: none !important; font: 600 12px/1 var(--hb-sans) !important; letter-spacing: .08em; backdrop-filter: blur(10px); }

/* ---------- Tablet (≤1000 px) ---------- */
@media (max-width: 1000px) {
	.hk-page .hk-hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	.hk-page .hk-ways { grid-template-columns: 1fr; }
	.hk-page .hk-write { grid-template-columns: 1fr; }
	.hk-page .hk-steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--hb-line); gap: 34px; padding-left: 28px !important; }
	.hk-page .hk-step { padding-top: 0 !important; }
	.hk-page .hk-step::before { top: 18px; left: -33px; }
	.hk-page .hk-map { grid-template-columns: 1fr; }
	.hk-page .hk-map-frame { min-height: 380px; }
	.hk-page .hk-map-frame::after { box-shadow: inset 0 60px 60px -30px #160f0a; }
	.hk-page .hk-ig { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phone (≤600 px) ---------- */
@media (max-width: 600px) {
	.hk-page .hk-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
	.hk-page .hk-hero-film { width: min(66%, 260px); }
	.hk-page .hk-hero-film, .hk-page .hk-hero-film video { border-radius: 22px; }
	.hk-page .hk-hero-title { font-size: 40px !important; margin-top: 14px !important; }
	.hk-page .hk-hero-sub { font-size: 16px; margin-top: 16px !important; }
	.hk-page .hb-btns { flex-direction: column; gap: 12px; }
	.hk-page .hb-btns .wp-block-button, .hk-page .hb-btns .wp-block-button__link { width: 100%; justify-content: center; }
	.hk-page .hk-way { padding: 26px 22px 24px !important; }
	.hk-page .hk-form .wpforms-field-container { grid-template-columns: 1fr; }
	.hk-page .hk-form .wpforms-submit-container { flex-direction: column; align-items: stretch; }
	.hk-page .hk-form button.hk-submit { width: 100%; }
	.hk-page .hk-map-frame { min-height: 320px; }
	.hk-page .hk-ig { gap: 6px; }
	.hk-page .hk-ig figure { border-radius: 10px; }
	/* consent pill: compact, so it does not cover the hero buttons */
	.hk-page .cmplz-btn.cmplz-manage-consent { padding: 8px 12px !important; font-size: 10px !important; min-height: 0 !important; height: auto !important; }
}
