/* OSI Vouchers – formularz zakupu vouchera
   Kolory i typografia zgodne z motywem strony (Elementor kit). */
.osiv {
  --osiv-navy: #394169;
  --osiv-navy-dark: #2c3354;
  --osiv-grey: #e6e6e8;
  --osiv-light: #f5f5f5;
  --osiv-white: #fff;
  --osiv-text: #4a4a4a;
  --osiv-muted: #7b7f95;
  --osiv-line: #d5d6dc;
  --osiv-error: #b3261e;
  --osiv-ok: #2e7d5b;
  --osiv-font: "Montserrat", sans-serif;
  --osiv-font-btn: "DM Sans", "Montserrat", sans-serif;
  --osiv-font-title: "Playfair Display", "Times New Roman", serif;
  --osiv-font-wide: "Lexend Zetta", "Montserrat", sans-serif;
  font-family: var(--osiv-font);
  color: var(--osiv-text);
  font-size: 15px;
  line-height: 1.6;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
  box-sizing: border-box;
}
.osiv *, .osiv *::before, .osiv *::after { box-sizing: border-box; }
.osiv [hidden] { display: none !important; }

/* ---------- Nagłówek sekcji ---------- */
.osiv-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.osiv-eyebrow {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: 5px;
  text-transform: uppercase; color: var(--osiv-navy); margin-bottom: 14px;
}
.osiv-intro h2 {
  font-family: var(--osiv-font); font-weight: 400; color: var(--osiv-navy);
  font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 18px;
}
.osiv-intro hr { width: 100px; border: 0; border-top: 1px solid var(--osiv-line); margin: 0 auto 20px; }
.osiv-intro p { margin: 0; }

/* ---------- Kroki (jak to działa) ---------- */
.osiv-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 48px; padding: 0; list-style: none; counter-reset: how; }
.osiv-how li { background: var(--osiv-light); padding: 18px 18px 16px; font-size: 13px; color: var(--osiv-navy); counter-increment: how; }
.osiv-how li::before { content: "0" counter(how); display: block; font-size: 22px; font-weight: 300; letter-spacing: 2px; margin-bottom: 4px; }

/* ---------- Układ ---------- */
.osiv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "form preview" "pay preview";
  column-gap: 56px;
  align-items: start;
}
.osiv-form { grid-area: form; }
.osiv-aside { grid-area: preview; position: sticky; top: var(--osiv-sticky-top, 130px); }
.osiv-payblock { grid-area: pay; }

/* ---------- Karty kroków ---------- */
.osiv-step { border-top: 1px solid var(--osiv-line); padding: 28px 0 32px; }
.osiv-step:first-child { border-top: 0; padding-top: 0; }
.osiv-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.osiv-step-num { font-size: 13px; letter-spacing: 3px; color: var(--osiv-muted); }
.osiv-step-title {
  margin: 0; font-family: var(--osiv-font); font-size: 15px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--osiv-navy);
}

/* Przełącznik typu vouchera */
.osiv-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.osiv-tile {
  position: relative; display: block; cursor: pointer; background: var(--osiv-white);
  border: 1px solid var(--osiv-line); padding: 18px 18px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.osiv-tile input { position: absolute; opacity: 0; pointer-events: none; }
.osiv-tile:hover { border-color: var(--osiv-navy); }
.osiv-tile.is-active { border-color: var(--osiv-navy); box-shadow: inset 0 0 0 1px var(--osiv-navy); background: var(--osiv-light); }
.osiv-tile-title { display: block; color: var(--osiv-navy); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.osiv-tile-desc { display: block; font-size: 13px; color: var(--osiv-muted); margin-top: 4px; line-height: 1.45; }
.osiv-tile-icon { display: block; width: 26px; height: 26px; margin-bottom: 10px; color: var(--osiv-navy); }
.osiv-tile:focus-within { outline: 2px solid var(--osiv-navy); outline-offset: 2px; }

.osiv-sub { margin-top: 22px; }
.osiv-sub[hidden] { display: none; }

/* Kwoty */
.osiv-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.osiv .osiv-chip {
  font-family: var(--osiv-font-btn); cursor: pointer; border: 1px solid var(--osiv-line); background: var(--osiv-white);
  color: var(--osiv-navy); padding: 12px 20px; font-size: 14px; font-weight: 500; letter-spacing: 1px; min-width: 88px; text-align: center;
  transition: all .2s; border-radius: 0; line-height: 1.2;
}
.osiv .osiv-chip:hover { border-color: var(--osiv-navy); }
.osiv .osiv-chip.is-active { background: var(--osiv-navy); border-color: var(--osiv-navy); color: var(--osiv-white); }
.osiv-custom-amount { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.osiv-custom-amount .osiv-input-wrap { position: relative; width: 180px; }
.osiv-custom-amount .osiv-input-wrap::after { content: "zł"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--osiv-muted); font-size: 14px; }
.osiv-custom-amount input { padding-right: 36px !important; }

/* Kategorie i zabiegi */
.osiv-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.osiv .osiv-cats .osiv-chip { padding: 9px 14px; font-size: 12px; min-width: 0; letter-spacing: 1.2px; text-transform: uppercase; }
.osiv-search { margin-bottom: 10px; }
.osiv-services { border: 1px solid var(--osiv-line); background: var(--osiv-white); max-height: 340px; overflow-y: auto; }
.osiv-service {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; border-top: 1px solid var(--osiv-grey);
  transition: background .15s;
}
.osiv-service:first-child { border-top: 0; }
.osiv-service:hover { background: var(--osiv-light); }
.osiv-service input { accent-color: var(--osiv-navy); width: 16px; height: 16px; margin: 0; flex: none; }
.osiv-service-name { flex: 1; color: var(--osiv-navy); font-size: 14px; line-height: 1.4; }
.osiv-service-cat { display: block; font-size: 11px; color: var(--osiv-muted); letter-spacing: 1px; text-transform: uppercase; }
.osiv-service-price { white-space: nowrap; font-weight: 600; color: var(--osiv-navy); font-size: 14px; }
.osiv-service-price small { font-weight: 400; color: var(--osiv-muted); font-size: 12px; margin-right: 3px; }
.osiv-service.is-active { background: var(--osiv-light); box-shadow: inset 3px 0 0 var(--osiv-navy); }
.osiv-empty { padding: 18px 16px; color: var(--osiv-muted); font-size: 14px; }
.osiv-note { font-size: 12.5px; color: var(--osiv-muted); margin: 10px 0 0; line-height: 1.5; }

/* Pola formularza */
.osiv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.osiv-grid .osiv-full { grid-column: 1 / -1; }
.osiv-field label, .osiv-label {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--osiv-navy); margin-bottom: 7px;
}
.osiv-field label .osiv-opt { font-weight: 400; color: var(--osiv-muted); letter-spacing: .5px; text-transform: none; }
.osiv input[type="text"], .osiv input[type="email"], .osiv input[type="tel"], .osiv input[type="number"], .osiv input[type="date"], .osiv input[type="search"], .osiv textarea {
  width: 100%; font-family: var(--osiv-font); font-size: 15px; color: var(--osiv-navy); background: var(--osiv-white);
  border: 1px solid var(--osiv-line); border-radius: 0; padding: 12px 14px; line-height: 1.4; outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none; min-height: 46px;
}
.osiv input:focus, .osiv textarea:focus { border-color: var(--osiv-navy); box-shadow: 0 0 0 1px var(--osiv-navy); }
.osiv input::placeholder { color: #a9abb8; }
.osiv-hint { display: block; font-size: 12px; color: var(--osiv-muted); margin-top: 5px; }
.osiv-field.has-error input { border-color: var(--osiv-error); }
.osiv-error-msg { display: none; color: var(--osiv-error); font-size: 12px; margin-top: 5px; }
.osiv-field.has-error .osiv-error-msg { display: block; }
.osiv-counter { float: right; font-weight: 400; color: var(--osiv-muted); letter-spacing: 0; }

/* Radio w liniach */
.osiv-radios { display: grid; gap: 10px; margin-bottom: 18px; }
.osiv-radio {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px 16px; border: 1px solid var(--osiv-line); background: var(--osiv-white);
  transition: border-color .2s, background .2s;
}
.osiv-radio input { accent-color: var(--osiv-navy); margin: 3px 0 0; width: 16px; height: 16px; flex: none; }
.osiv-radio strong { display: block; color: var(--osiv-navy); font-weight: 600; font-size: 14px; }
.osiv-radio span { font-size: 13px; color: var(--osiv-muted); }
.osiv-radio.is-active { border-color: var(--osiv-navy); background: var(--osiv-light); }

/* ---------- Podgląd vouchera ---------- */
.osiv-aside-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.osiv-aside-title .osiv-label { margin: 0; }
.osiv-flip { display: inline-flex; border: 1px solid var(--osiv-line); }
.osiv .osiv-flip button {
  font-family: var(--osiv-font-btn); background: none; border: 0; padding: 6px 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--osiv-muted); cursor: pointer; border-radius: 0; line-height: 1.4;
}
.osiv .osiv-flip button.is-active { background: var(--osiv-navy); color: var(--osiv-white); }

.osiv-card-wrap { perspective: 1600px; }
.osiv-card {
  position: relative; width: 100%; aspect-ratio: 855 / 1490; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.osiv-card.is-flipped { transform: rotateY(180deg); }
.osiv-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--osiv-grey);
  container-type: inline-size; box-shadow: 0 18px 40px -18px rgba(57, 65, 105, .45); overflow: hidden;
}
.osiv-face-cover { transform: rotateY(180deg); }

/* Przód: logo + kontakt (jak strona 1 projektu) */
.osiv-v-cover { display: flex; flex-direction: column; height: 100%; padding: 0 7cqw 8cqw; }
.osiv-v-cover .osiv-v-logo { margin: auto; width: 62cqw; }
.osiv-v-cover .osiv-v-logo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.osiv-v-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw 4cqw; font-family: var(--osiv-font-title); color: var(--osiv-navy); font-size: 3.3cqw; line-height: 1.2; }
.osiv-v-contact span { display: flex; align-items: center; gap: 1.6cqw; white-space: nowrap; }
.osiv-v-contact svg { width: 3.8cqw; height: 3.8cqw; flex: none; }

/* Tył: szczegóły (jak strony 2–5 projektu) */
.osiv-v-details { display: flex; flex-direction: column; height: 100%; padding: 22cqw 9cqw 6cqw; }
.osiv-v-title {
  font-family: var(--osiv-font-title); color: var(--osiv-navy); text-align: center; font-weight: 400; text-transform: uppercase;
  font-size: 10.5cqw; line-height: .95; letter-spacing: -.02em; margin: 0 0 6.5cqw;
}
.osiv-v-box {
  background: var(--osiv-white); color: var(--osiv-navy); font-family: var(--osiv-font-wide); font-weight: 300;
  font-size: 3.7cqw; line-height: 1.35; padding: 3.6cqw 2.6cqw; margin-bottom: 5.4cqw; min-height: 12cqw;
  display: flex; align-items: center; gap: 3cqw; word-break: break-word;
}
.osiv-v-box b { font-weight: 500; letter-spacing: .05em; white-space: nowrap; }
.osiv-v-box.is-stack { flex-direction: column; align-items: flex-start; gap: 1.6cqw; min-height: 22cqw; justify-content: center; }
.osiv-v-box.is-center { justify-content: center; text-align: center; }
.osiv-v-box .is-placeholder { opacity: .35; }
.osiv-v-box[hidden] { display: none; }
.osiv-v-code { font-family: var(--osiv-font-wide); color: var(--osiv-navy); font-size: 2.3cqw; text-align: center; letter-spacing: .1em; margin-top: auto; margin-bottom: 2.4cqw; }
.osiv-v-terms { font-family: var(--osiv-font-wide); font-weight: 300; color: var(--osiv-navy); text-align: center; font-size: 2.1cqw; line-height: 1.55; }

/* Podsumowanie pod podglądem */
.osiv-summary { margin-top: 22px; background: var(--osiv-light); padding: 18px 20px; }
.osiv-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding: 4px 0; }
.osiv-summary-row span:first-child { color: var(--osiv-muted); }
.osiv-summary-row span:last-child { color: var(--osiv-navy); text-align: right; font-weight: 500; }
.osiv-summary-total { border-top: 1px solid var(--osiv-line); margin-top: 8px; padding-top: 12px; font-size: 15px; }
.osiv-summary-total span:last-child { font-size: 20px; font-weight: 600; }

/* ---------- Płatność ---------- */
.osiv-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.osiv-method {
  position: relative; cursor: pointer; border: 1px solid var(--osiv-line); background: var(--osiv-white); padding: 16px 10px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 96px; transition: all .2s;
}
.osiv-method input { position: absolute; opacity: 0; pointer-events: none; }
.osiv-method:hover { border-color: var(--osiv-navy); }
.osiv-method.is-active { border-color: var(--osiv-navy); box-shadow: inset 0 0 0 1px var(--osiv-navy); background: var(--osiv-light); }
.osiv-method.is-disabled { opacity: .45; cursor: not-allowed; }
.osiv-method:focus-within { outline: 2px solid var(--osiv-navy); outline-offset: 2px; }
.osiv-method-logo { height: 26px; display: flex; align-items: center; color: #000; }
.osiv-method-logo svg { height: 100%; width: auto; }
.osiv-method-name { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--osiv-navy); font-weight: 500; line-height: 1.3; }
.osiv-method-note { font-size: 10.5px; color: var(--osiv-muted); line-height: 1.3; }

.osiv-transfer-info { margin-top: 14px; padding: 14px 16px; background: var(--osiv-light); font-size: 13px; color: var(--osiv-navy); }
.osiv-transfer-info[hidden] { display: none; }

.osiv-consents { margin: 22px 0 6px; display: grid; gap: 10px; }
.osiv-check { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.osiv-check input { accent-color: var(--osiv-navy); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.osiv-check a { color: var(--osiv-navy); text-decoration: underline; }
.osiv-check.has-error { color: var(--osiv-error); }

.osiv .osiv-btn {
  font-family: var(--osiv-font-btn); display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  background: var(--osiv-navy); color: var(--osiv-white); border: 1px solid var(--osiv-navy); border-radius: 6px; cursor: pointer;
  padding: 18px 24px; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-top: 18px; transition: background .2s;
  line-height: 1.2;
}
.osiv .osiv-btn:hover { background: var(--osiv-navy-dark); }
.osiv .osiv-btn[disabled] { opacity: .6; cursor: progress; }
.osiv .osiv-btn svg { width: 16px; height: 16px; }
.osiv .osiv-btn-ghost { background: transparent; color: var(--osiv-navy); }
.osiv .osiv-btn-ghost:hover { background: var(--osiv-light); }
.osiv-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--osiv-muted); margin-top: 12px; text-align: center; }
.osiv-secure svg { width: 14px; height: 14px; flex: none; }
.osiv-gateway { display: flex; justify-content: center; margin-top: 8px; }
.osiv-gateway svg { height: 16px; width: auto; }
.osiv-form-error { display: none; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--osiv-error); background: #fbeeed; color: var(--osiv-error); font-size: 13px; }
.osiv-form-error.is-visible { display: block; }

/* ---------- Ekran po zamówieniu ---------- */
.osiv-done { max-width: 640px; margin: 0 auto; text-align: center; padding: 20px 0 10px; }
.osiv-done-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--osiv-light); display: grid; place-items: center; color: var(--osiv-navy); }
.osiv-done-icon svg { width: 30px; height: 30px; }
.osiv-done h3 { font-family: var(--osiv-font); font-weight: 400; color: var(--osiv-navy); font-size: 30px; margin: 0 0 12px; }
.osiv-done p { margin: 0 auto 10px; }
.osiv-bank { text-align: left; background: var(--osiv-light); padding: 20px 22px; margin: 22px 0; display: grid; gap: 10px; }
.osiv-bank div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px solid var(--osiv-grey); padding-bottom: 8px; }
.osiv-bank div:last-child { border-bottom: 0; padding-bottom: 0; }
.osiv-bank span:first-child { color: var(--osiv-muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.osiv-bank span:last-child { color: var(--osiv-navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.osiv-preview-badge {
  display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; background: #fff4d6; color: #7a5b00; padding: 4px 10px; margin-bottom: 14px;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .osiv-layout { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 36px; }
  .osiv-methods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .osiv { padding: 0 16px 56px; font-size: 14px; }
  .osiv-intro { margin-bottom: 32px; }
  .osiv-eyebrow { letter-spacing: 3px; font-size: 11px; }
  .osiv-how { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
  .osiv-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "preview" "pay"; }
  .osiv-aside { position: static; max-width: 340px; width: 100%; margin: 0 auto 8px; padding: 28px 0 8px; border-top: 1px solid var(--osiv-line); }
  .osiv-payblock { border-top: 1px solid var(--osiv-line); padding-top: 28px; margin-top: 20px; }
  .osiv-grid { grid-template-columns: 1fr; }
  .osiv-choice { gap: 10px; }
  .osiv-tile { padding: 14px 14px 12px; }
  .osiv .osiv-amounts .osiv-chip { min-width: 0; flex: 1 1 calc(33% - 10px); padding: 12px 8px; }
  .osiv-services { max-height: 300px; }
  .osiv-radios[style] { grid-template-columns: 1fr !important; }
  .osiv-bank div { flex-direction: column; gap: 2px; }
  .osiv-bank span:last-child { text-align: left; }
  .osiv-done h3 { font-size: 26px; }
}
@media (max-width: 380px) {
  .osiv-choice { grid-template-columns: 1fr; }
}

/* ---------- Ekran „Już wkrótce” ---------- */
.osiv-soon { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; }
.osiv-soon .osiv-eyebrow { margin-bottom: 16px; }
.osiv-soon h2 { font-family: var(--osiv-font); font-weight: 400; color: var(--osiv-navy); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 18px; }
.osiv-soon hr { width: 100px; border: 0; border-top: 1px solid var(--osiv-line); margin: 0 0 22px; }
.osiv-soon p { margin: 0 0 14px; max-width: 560px; }
.osiv-soon-contact { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.osiv-soon-contact li { display: flex; gap: 12px; align-items: baseline; color: var(--osiv-navy); }
.osiv-soon-contact span { min-width: 76px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--osiv-muted); }
.osiv-soon-contact a { color: var(--osiv-navy); text-decoration: none; font-weight: 500; }
.osiv-soon-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.osiv .osiv-soon-actions .osiv-btn { width: auto; margin-top: 0; padding: 16px 24px; text-decoration: none; }
.osiv-soon-card { position: relative; width: 100%; aspect-ratio: 855 / 1490; transform: rotate(3deg); }
.osiv-soon-card .osiv-face { position: absolute; inset: 0; }
.osiv-soon-card .osiv-face + .osiv-face { transform: rotate(-7deg) translate(-14%, 3%); z-index: -1; opacity: .9; }
.osiv-soon-badge { position: absolute; top: 18px; left: -14px; z-index: 2; background: var(--osiv-navy); color: var(--osiv-white); font-family: var(--osiv-font-btn); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 8px 14px; }
.osiv-admin-note { max-width: 1140px; margin: 0 auto 28px; padding: 12px 16px; background: #fff4d6; color: #6b5200; font-family: var(--osiv-font, sans-serif); font-size: 13px; line-height: 1.5; }
.osiv-admin-note a { color: inherit; }
@media (max-width: 820px) {
  .osiv-soon { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .osiv-soon hr { margin-left: auto; margin-right: auto; }
  .osiv-soon p { margin-left: auto; margin-right: auto; }
  .osiv-soon-contact { justify-items: center; }
  .osiv-soon-contact li { flex-direction: column; gap: 2px; align-items: center; }
  .osiv-soon-actions { justify-content: center; }
  .osiv-soon-card { max-width: 240px; margin: 0 auto 10px; }
}
