/* ─── Wspólny styl formularzy — przeniesiony 1:1 z formularza opinii /r/{token}
   (ciemny nagłówek ze złotą kreską, biała karta 22 px, miękkie cienie, pola 14 px,
   przycisk-pigułka). Włącza się flagą $fcardGlass. */

html:has(body.fcard-glass) { background: #f2f2f4; }
body.fcard-glass {
  background: #f2f2f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
}
body.fcard-glass .fcard--glass,
body.fcard-glass .fcard--glass input,
body.fcard-glass .fcard--glass select,
body.fcard-glass .fcard--glass textarea,
body.fcard-glass .fcard--glass button,
body.fcard-glass .fcard--glass label { font-family: inherit; }

.fcard--glass {
  padding: 0;
  border: 1px solid #eef0f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
body.fcard-hasbar .fcard--glass { padding: 0; }
body.fcard-glass .fcard-wrap {
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 12px 16px 18px;
}
.fglass-foot { text-align: center; font-size: 11.5px; color: #6b7280; margin-top: 10px; }

.fcard-in { padding: 18px clamp(1rem, 3.5vw, 1.5rem) 22px; }

/* ── nagłówek: logo z lewej, złoty eyebrow, tytuł, podpis ── */
.fglass-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1826 0%, #111113 52%, #181320 100%);
  padding: 15px 16px 16px;
}
.fglass-hero::before {
  content: ""; position: absolute; top: -70px; right: -40px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.30) 0%, rgba(201,169,110,0) 70%); pointer-events: none;
}
.fglass-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(201,169,110,0), #c9a96e 45%, rgba(201,169,110,.25));
}
.fglass-hero-ico {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.28);
}
.fglass-hero-ico img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.fglass-hero-tx { min-width: 0; flex: 1; position: relative; }
.fglass-hero-e {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: rgba(201,169,110,.95); margin-bottom: 3px;
}
.fglass-hero-t { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.01em; }
.fglass-hero-m { margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.35; }

/* ── tytuł nad formularzem ── */
.fglass-head { text-align: center; margin-bottom: 14px; }
.fglass-head h1 {
  font-family: inherit;
  font-size: 30px; font-weight: 600; letter-spacing: -.3px; line-height: 1.2;
  color: #1d1d1f; margin: 0 0 3px;
}
.fglass-head p { font-size: 12.5px; color: #8b909a; margin: 0; line-height: 1.5; }

/* ── sekcje i pola ── */
.fcard--glass .fblock {
  border: 1px solid #f0f1f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,24,40,.06);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
}
.fcard--glass .fblock-title {
  border-bottom: none; padding-bottom: 0; margin-bottom: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #1d1d1f;
}
/* etykiety jak w formularzu opinii — zwykły tekst, nie wersaliki */
.fcard--glass .flabel {
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #374151;
}
.fcard--glass .freq { color: #d92d20; font-weight: 700; }
.fcard--glass .finput,
.fcard--glass .fselect,
.fcard--glass textarea { font-size: 16px; color: #1d1d1f; padding: 12px 13px; height: auto; }
.fcard--glass .finput::placeholder,
.fcard--glass textarea::placeholder { color: #b6bac1; }
.fcard--glass .finput,
.fcard--glass .fselect,
.fcard--glass textarea {
  background: #fbfbfd;
  border: 1px solid #f0f1f3;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
  transition: border-color .15s ease;
}
.fcard--glass .finput:focus,
.fcard--glass .fselect:focus,
.fcard--glass textarea:focus { outline: none; border-color: #1d1d1f; }

/* ── wiersz „dodaj plik" ── */
.fglass-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid #f0f1f3; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
  padding: 11px 13px;
}
.fglass-row-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fglass-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f7f8f9; color: #1d1d1f;
}
.fglass-row-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #1d1d1f; }
@media (max-width: 430px) {
  .fglass-row { padding: 10px; gap: .5rem; }
  .fglass-ico { width: 32px; height: 32px; }
  .fglass-row-t { font-size: 12.5px; }
  .fglass-row-s { font-size: 11px; }
  .fglass-add { height: 32px; padding: 0 12px; font-size: 12.5px; }
}
.fglass-row-s { font-size: 11.5px; color: #8b909a; line-height: 1.3; margin-top: 1px; }
.fglass-add {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .375rem;
  height: 36px; padding: 0 14px;
  border: 1px solid #f0f1f3; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
  font-family: inherit; font-size: 13px; font-weight: 600; color: #1d1d1f; cursor: pointer;
  transition: background .15s ease;
}
.fglass-add:hover { background: #f7f8f9; }

/* ── przycisk wysyłki: pigułka z cieniem, jak „Wyślij opinię" ── */
.fglass-submit { margin-top: 14px; }
.fcard--glass .btn-black {
  width: 100%; height: 50px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #1d1d1f; color: #fff; border: none; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 8px 22px rgba(16,24,40,.25);
  transition: background .15s ease, box-shadow .18s ease, transform .12s ease;
}
.fcard--glass .btn-black:hover { background: #1a1a1a; color: #fff; box-shadow: 0 7px 20px rgba(0,0,0,.16); transform: translateY(-1px); }
.fcard--glass .btn-black:active { transform: translateY(0) scale(.99); }
.fg-spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; display: inline-block; animation: fgSpin .7s linear infinite;
}
@keyframes fgSpin { to { transform: rotate(360deg); } }

/* ── wejście: delikatny fade-up ── */
@media (prefers-reduced-motion: no-preference) {
  .fcard--glass .fglass-head,
  .fcard--glass .fblock,
  .fcard--glass .fglass-submit { animation: fgUp .5s cubic-bezier(.22,1,.36,1) both; }
  .fcard--glass .fglass-head { animation-delay: .05s; }
  .fcard--glass .fblock:nth-of-type(1) { animation-delay: .1s; }
  .fcard--glass .fblock:nth-of-type(2) { animation-delay: .16s; }
  .fcard--glass .fblock:nth-of-type(3) { animation-delay: .22s; }
  .fcard--glass .fblock:nth-of-type(4) { animation-delay: .28s; }
  .fcard--glass .fglass-submit { animation-delay: .34s; }
}
@keyframes fgUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── telefon: karta na cały ekran, tak jak w formularzu opinii ── */
@media (max-width: 640px) {
  body.fcard-glass .fcard-wrap { padding: 20px 16px 18px; align-items: center; }
  .fcard--glass,
  .fcard--glass.fcard--wide {
    padding: 0; border: 1px solid #eef0f3; border-radius: 22px; min-height: 0;
    background: #fff;
    box-shadow: none;
  }
  .fcard-in { padding: 18px 16px 22px; }
  /* karta trzyma wysokość ekranu — pod nią nie zostaje pusta biel */
  .fcard--glass,
  .fcard--glass.fcard--wide { min-height: calc(100svh - 84px); }
  .fcard--glass .finput,
  .fcard--glass .fselect,
  .fcard--glass textarea { padding: 12px 13px; }
}
