/* ===== KINGWAY – Service / Warranty claim site =====================
   Kolory marki:
   --orange  #ef7f22   (akcent KINGWAY)
   --black   #111111
   --steel   #2b2f36 / #3a4049 (stalowy)
=================================================================== */

:root {
  --orange:        #ef7f22;
  --orange-dark:   #d96d12;
  --black:         #111315;
  --steel-900:     #1b1e22;
  --steel-800:     #23272d;
  --steel-700:     #2b3037;
  --steel-600:     #3a414a;
  --steel-400:     #6b7480;
  --text:          #f2f4f6;
  --text-dim:      #aeb6c0;
  --radius:        14px;
  --shadow:        0 18px 50px rgba(0,0,0,.45);
  --maxw:          1100px;
  font-synthesis:  none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--steel-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Tło z teksturą stali + delikatny akcent --------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(239,127,34,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(58,65,74,.6), transparent 60%),
    linear-gradient(160deg, var(--steel-900) 0%, var(--black) 100%);
}
.bg::after {            /* subtelna siatka / blacha */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- Pasek górny ------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.topbar img.logo { height: 52px; width: auto; display: block; }
.topbar .tag {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 2px solid var(--orange);
  padding-left: 12px;
}

/* ---------- Główny kontener --------------------------------------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 28px 60px;
  display: flex;
  flex-direction: column;
}

/* ---------- HERO / nagłówek strony głównej ------------------------ */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}
.hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: saturate(1.05) contrast(1.02);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,19,21,.45) 0%, rgba(17,19,21,.78) 65%, rgba(17,19,21,.95) 100%),
    linear-gradient(90deg, rgba(239,127,34,.20), transparent 55%);
}
.hero__body {
  position: relative;
  padding: 64px 40px 48px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.hero h1 .hl { color: var(--orange); }
.hero p.lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.55;
}
.hero .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.hero .step::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
}

/* ---------- Siatka wyboru języka ---------------------------------- */
.langs {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--steel-700), var(--steel-800));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  position: relative;
  overflow: hidden;
}
.lang::after {           /* pasek akcentu z lewej */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .18s ease;
}
.lang:hover {
  transform: translateY(-3px);
  border-color: rgba(239,127,34,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  background: linear-gradient(180deg, var(--steel-600), var(--steel-700));
}
.lang:hover::after { transform: scaleY(1); }
.lang .flag {
  width: 46px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
}

/* flaga w nagłówku strony formularza */
.form-head .flag {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: -3px;
  margin-right: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.18);
}
.lang .meta { display: flex; flex-direction: column; }
.lang .name { font-size: 1.18rem; font-weight: 700; }
.lang .native { font-size: .82rem; color: var(--text-dim); margin-top: 2px; }
.lang .arrow {
  margin-left: auto;
  color: var(--steel-400);
  transition: transform .15s ease, color .15s ease;
  font-size: 1.2rem;
}
.lang:hover .arrow { color: var(--orange); transform: translateX(4px); }

/* ---------- Strona formularza ------------------------------------- */
.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 6px 0 22px;
}
.form-head h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}
.form-head h1 .hl { color: var(--orange); }
.form-head .sub { color: var(--text-dim); margin-top: 6px; font-size: .98rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: var(--steel-700);
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.back:hover { border-color: var(--orange); background: var(--steel-600); transform: translateX(-3px); }

/* informacja nad formularzem (czas odpowiedzi + 1 zgłoszenie) */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(239,127,34,.15), rgba(239,127,34,.05));
  border: 1px solid rgba(239,127,34,.40);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.55;
}
.notice .ico { font-size: 1.35rem; line-height: 1.35; flex: 0 0 auto; }
.notice strong { color: var(--orange); }
.notice .second { color: var(--text-dim); display: block; margin-top: 4px; }

.form-card {
  background: #fff;            /* formularz ClickUp lubi jasne tło */
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

/* spinner widoczny do czasu załadowania formularza */
.form-loader {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  color: #8a8f96;
  font-size: .95rem;
  z-index: 2;
}
.form-loader .spin {
  width: 42px;
  height: 42px;
  border: 4px solid #ececec;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: form-spin .8s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }
.form-card iframe {
  width: 100%;
  min-height: 640px;     /* skrypt ClickUp (dynamic-height) sam ustawi właściwą wysokość */
  border: 0;
  border-radius: 12px;
  display: block;
  background: #fff;
}

/* placeholder gdy formularz nie jest jeszcze wklejony */
.embed-placeholder {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: #555;
  background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 14px, #efefef 14px, #efefef 28px);
  border: 2px dashed #cfcfcf;
  border-radius: 12px;
  padding: 40px;
}
.embed-placeholder strong { color: var(--orange-dark); font-size: 1.1rem; }
.embed-placeholder code {
  background: #222; color: #ffb06b; padding: 3px 8px; border-radius: 5px; font-size: .85rem;
}

/* ---------- Stopka ------------------------------------------------ */
.footer {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 22px 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer a:hover { color: var(--orange); }
.footer .brand { display: flex; align-items: center; gap: 10px; }
.footer .brand img { height: 26px; }

/* ---------- Responsywność ---------------------------------------- */
@media (max-width: 640px) {
  .topbar { padding: 14px 18px; }
  .topbar img.logo { height: 40px; }
  .topbar .tag { display: none; }
  .wrap { padding: 16px 18px 50px; }
  .hero__body { padding: 44px 22px 34px; }
  .form-card iframe { min-height: 760px; }
}
