/* =========================================================================
   Techrunners — strona zgłoszeniowa (klient). Motyw ciemny wg techrunners.pl.
   ========================================================================= */
:root {
  --bg: #0a0b0e;
  --bg-2: #101216;
  --bg-elev: #14171c;
  --bg-elev-2: #1a1d23;
  --bright: #f6f7f4;
  --ink: #f1efe8;
  --ink-2: #b8b6ad;
  --ink-3: #7e7c74;
  --muted: #5a5853;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ff5a1f;
  --accent-2: #ff7a3d;
  --accent-deep: #e84a10;
  --accent-soft: rgba(255, 90, 31, 0.1);
  --accent-glow: rgba(255, 90, 31, 0.35);
  --accent-text: #ff8a4d;
  --signal: #36c48f;
  --signal-soft: rgba(54, 196, 143, 0.14);
  --maxw: 780px;
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Twardy fix: atrybut hidden ZAWSZE ukrywa (żeby żadna reguła display go nie nadpisała). */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 560px at 78% -12%, rgba(255, 90, 31, 0.1), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 32px); }
a { color: var(--accent-text); }

/* --- Topbar ----------------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--line-soft); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1080px; }
.brand { display: flex; align-items: center; }
.logo { height: 18px; width: auto; filter: invert(1); display: block; }
.topbar-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
@media (max-width: 560px) { .topbar-tag { display: none; } }

/* --- Hero ------------------------------------------------------------- */
.hero { padding: clamp(44px, 8vw, 84px) 0 clamp(28px, 4vw, 40px); }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-text); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(32px, 6.4vw, 58px); line-height: 1.02; letter-spacing: -0.022em;
  margin: 0 0 20px; text-transform: uppercase;
}
.lead { color: var(--ink-2); font-size: 17px; max-width: 620px; margin: 0 0 26px; }

.hero-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; }
.hero-steps li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.hero-steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(255, 90, 31, 0.35);
  color: var(--accent-text); font-family: var(--f-mono); font-size: 11px; font-weight: 600;
}

/* --- Formularz (pełna szerokość, jedna kolumna) ----------------------- */
.form-wrap { padding-bottom: 72px; }
.form-section {
  padding: clamp(18px, 3vw, 26px);
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--r); margin-bottom: 16px;
}
.section-head { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 700; font-size: 17px; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before { content: ""; width: 16px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 5px; padding-left: 26px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field .req { color: var(--accent); margin-left: 3px; }
/* Pole opcjonalne, ale warte wypełnienia — inaczej agent dopyta o nie w rozmowie. */
.field .rec { color: var(--muted); margin-left: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.field.hero label { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; font-family: var(--f-body); font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 64px; line-height: 1.55; }
.field.hero textarea { min-height: 130px; font-size: 15.5px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
input.invalid, textarea.invalid { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(232, 74, 16, 0.18); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select {
  appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237e7c74' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.field.checkbox { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; }
.field.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.field.checkbox label { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* --- Akcje ------------------------------------------------------------ */
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-family: var(--f-display); font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 8px; transition: all .2s var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 0 0 4px var(--accent-glow); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.form-note { color: var(--ink-3); font-size: 12.5px; font-family: var(--f-mono); }

/* stan wysyłania: spinner zamiast strzałki, przycisk zablokowany */
.btn-spin {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-sending { pointer-events: none; opacity: .85; }
.btn.is-sending .arrow { display: none; }
.btn.is-sending .btn-spin { display: inline-block; }

.demo-link {
  display: inline-block; margin-top: 16px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; text-decoration: underline;
  padding: 0;
}
.demo-link:hover { color: var(--ink-3); }

.form-errors {
  margin: 4px 0 0; background: rgba(232, 74, 16, 0.1); border: 1px solid rgba(232, 74, 16, 0.4);
  border-radius: 8px; padding: 12px 16px; font-size: 13.5px; color: #ffb694;
}
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.loading-form { color: var(--ink-3); font-family: var(--f-mono); font-size: 13px; }

/* --- Podziękowanie ---------------------------------------------------- */
.thanks { padding: clamp(60px, 12vw, 130px) 0; }
.thanks-card {
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.06), transparent);
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: clamp(28px, 5vw, 52px); text-align: center;
}
.thanks-mark {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: var(--signal-soft); border: 1px solid rgba(54, 196, 143, 0.45); color: var(--signal);
}
.thanks-card h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 4vw, 32px); margin: 0 0 14px; }
.thanks-card p { color: var(--ink-2); max-width: 520px; margin: 0 auto 12px; font-size: 16px; }
.thanks-sub { color: var(--ink-3) !important; font-size: 14px !important; }
.thanks-card .btn-ghost { margin-top: 22px; }

/* --- Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft); padding: 22px 0; color: var(--muted);
  font-family: var(--f-mono); font-size: 11.5px;
}
