/* Audyt „Czy Twoja strona przyjmuje sprawy?” — style podstrony.
   Osobny plik (bez inline), zeby nie ruszac hashy CSP w .htaccess. */

.audyt-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.audyt-trust {
  color: var(--muted);
  font-size: 0.95rem;
}
.audyt-form {
  display: grid;
  gap: 1.25rem;
}
.audyt-q {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--soft-shadow);
}
.audyt-q legend {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.35rem;
}
.audyt-q .hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}
.audyt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.audyt-choices label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}
.audyt-choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.audyt-choices input:checked + span {
  color: var(--teal-dark);
}
.audyt-choices label:has(input:checked) {
  border-color: var(--teal);
  background: #e6f6f3;
}
.audyt-choices label:has(input:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.audyt-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.audyt-fields .field {
  display: grid;
  gap: 0.35rem;
}
.audyt-fields label,
.audyt-consents label {
  font-weight: 600;
  color: var(--ink);
}
.audyt-fields input[type="email"],
.audyt-fields input[type="url"],
.audyt-fields select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
.audyt-fields input:focus-visible,
.audyt-fields select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--teal);
}
.audyt-consents {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.audyt-consents label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.4;
}
.audyt-consents input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
}
.audyt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.audyt-result {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.audyt-result[hidden] {
  display: none !important;
}
.audyt-score {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.audyt-score strong {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal-dark);
}
.audyt-score span {
  color: var(--muted);
}
.audyt-meter {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.audyt-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: width 0.3s;
}
/* Strona wynikowa z PHP: pasek bez inline style (CSP style-src-attr 'none'). */
.audyt-meter-static {
  position: relative;
}
.audyt-meter-static::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}
.audyt-meter-static[data-score="1"]::after { width: 12.5%; }
.audyt-meter-static[data-score="2"]::after { width: 25%; }
.audyt-meter-static[data-score="3"]::after { width: 37.5%; }
.audyt-meter-static[data-score="4"]::after { width: 50%; }
.audyt-meter-static[data-score="5"]::after { width: 62.5%; }
.audyt-meter-static[data-score="6"]::after { width: 75%; }
.audyt-meter-static[data-score="7"]::after { width: 87.5%; }
.audyt-meter-static[data-score="8"]::after { width: 100%; }
.audyt-cta {
  margin-top: 1.5rem;
}
.audyt-result h3 {
  font-family: var(--display);
  margin: 0.25rem 0 0.5rem;
}
.audyt-fix {
  border-left: 4px solid var(--amber);
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
}
.audyt-fix strong {
  display: block;
  margin-bottom: 0.2rem;
}
.audyt-pack {
  color: var(--muted);
}
.audyt-answers {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}
.audyt-answers li::before {
  content: "•";
  color: var(--teal);
  margin-right: 0.5rem;
}
.audyt-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.audyt-error {
  border: 2px solid #b53c2e;
  background: #fff5f3;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: var(--ink);
}
.audyt-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.audyt-submit .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 640px) {
  .audyt-q {
    padding: 1rem;
  }
  .audyt-score strong {
    font-size: 2rem;
  }
}
