/* Kolory tylko z palety w branding/identyfikacja-wizualna.md.
   --line to grafitowy rozjaśniony bielą (obramowania pól, kontrast > 3:1 na białym). */
:root {
  --green: #36c973;
  --mint: #c2f4d7;
  --graphite: #2d343d;
  --cta: #ff7a1a;
  --white: #ffffff;
  --line: color-mix(in srgb, var(--graphite) 55%, var(--white));
  --soft: color-mix(in srgb, var(--graphite) 8%, var(--white));
  --radius: 12px;
  --shadow: 0 1px 2px rgb(45 52 61 / 6%), 0 12px 32px -8px rgb(45 52 61 / 18%);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mint);
  color: var(--graphite);
  font: 400 16px/1.6 Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--graphite);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green);
}
a:hover { text-decoration-color: var(--graphite); }

:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 3px;
  border-radius: 4px;
}

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nagłówek i stopka */

.site-header { background: var(--white); border-bottom: 1px solid var(--soft); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
.logo { display: block; width: 132px; height: auto; }

.site-footer { background: var(--graphite); color: var(--white); margin-top: 64px; }
.site-footer p { margin: 0; padding: 24px 0; font-size: 15px; }

/* Układ */

.layout {
  display: grid;
  grid-template-areas: "intro" "form" "next";
  gap: 32px;
  padding-top: 40px;
}
.intro { grid-area: intro; }
.card { grid-area: form; }
.next { grid-area: next; }

@media (min-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas: "intro form" "next form";
    grid-template-rows: auto 1fr;
    column-gap: 72px;
    row-gap: 0;
    align-items: start;
    padding-top: 72px;
  }
}

/* Lewa kolumna */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  background: var(--white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead { margin: 0 0 32px; font-size: 18px; max-width: 34em; }

.intro-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.checklist, .steps { list-style: none; margin: 0 0 32px; padding: 0; }
.intro .checklist { margin-bottom: 0; }
@media (min-width: 960px) { .intro .checklist { margin-bottom: 32px; } }

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.checklist svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: var(--white);
  border-radius: 10px;
}
.checklist span { padding-top: 7px; }

.steps { counter-reset: krok; }
.steps li {
  counter-increment: krok;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.steps li::before {
  content: counter(krok);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.alt-contact {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--graphite) 20%, var(--mint));
}

/* Karta z formularzem */

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 20px;
}
@media (min-width: 600px) { .card { padding: 40px; } }

.form-note { margin: 0 0 8px; font-size: 15px; }

fieldset {
  margin: 0;
  padding: 24px 0 8px;
  border: 0;
  border-top: 1px solid var(--soft);
}
fieldset:first-of-type { border-top: 0; padding-top: 8px; }

legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: left;
  width: 100%;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}
legend + * { clear: both; }

.num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  font-size: 14px;
}

.field { margin-bottom: 20px; }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.hint { margin: -2px 0 8px; font-size: 15px; }

input, select, textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--graphite); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--graphite);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 55%, transparent);
}

select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d343d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

.input-short { max-width: 220px; }

textarea { min-height: 150px; resize: vertical; }

/* Błędy */

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border: 2px solid var(--cta); }

.error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.error-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta);
  font-size: 13px;
  font-weight: 700;
}

.h-captcha { margin: 8px 0 0; min-height: 78px; }

.status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--cta);
  background: var(--soft);
  border-radius: 8px;
  font-weight: 600;
}

/* Przycisk */

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--cta);
  color: var(--graphite);
  font: 600 17px/1.2 Inter, Arial, Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgb(255 122 26 / 60%);
  transition: transform 0.15s, box-shadow 0.15s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgb(255 122 26 / 70%); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; transform: none; opacity: 0.75; }
@media (min-width: 600px) { button { width: auto; } }

.btn-icon { width: 20px; height: 20px; stroke-width: 2.5; transition: transform 0.15s; }
button:hover .btn-icon { transform: translateX(3px); }

button.is-loading .btn-icon { display: none; }
button.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: obrot 0.7s linear infinite;
}
@keyframes obrot { to { transform: rotate(360deg); } }

/* Strona podziękowania */

.card-center {
  max-width: 560px;
  margin: 72px auto 0;
  text-align: center;
}
.card-center .lead { margin: 0 auto 12px; }
.card-center .back { margin: 24px 0 0; }

.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--mint);
}
.success-icon svg { width: 36px; height: 36px; stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 1.5s !important; }
}
