/*
 * ============================================================================
 *  WYGLĄD BRIEFU myEvent
 * ============================================================================
 *  Samodzielny arkusz stylów briefu - nie zależy od stylów strony głównej.
 *  Fonty i grafiki są w katalogu assets/media/.
 *
 *  Kolejność sekcji ma znaczenie (późniejsze reguły nadpisują wcześniejsze):
 *    1. Fonty
 *    2. Podstawy i elementy formularzy (na bazie Bootstrap 5.1.3, MIT)
 *    3. Reset (meyerweb.com, domena publiczna)
 *    4. Kolory i układ strony
 *    5. Karta briefu i pytania
 *    6. Formularz kontaktowy, wysyłka, komunikaty
 *    7. Animacje
 *    8. Telefony
 * ============================================================================
 */

/* ----------------------------------------------------------------------------
   1. Fonty
---------------------------------------------------------------------------- */

@font-face {
  font-family: "Gilroy";
  src: url("media/gilroy-medium.woff2") format("woff2"), url("media/gilroy-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("media/gilroy-semibold.woff2") format("woff2"), url("media/gilroy-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("media/gilroy-bold.woff2") format("woff2"), url("media/gilroy-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------------------
   2. Podstawy i elementy formularzy (Bootstrap 5.1.3)
---------------------------------------------------------------------------- */

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

body {
  margin: 0;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol,
ul {
  padding-left: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #0d6efd;
  text-decoration: underline;
}

a:hover {
  color: #0a58ca;
}

img,
svg {
  vertical-align: middle;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  border: 0 solid;
  border-color: inherit;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

button,
input,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  text-transform: none;
}

[type="button"],
[type="submit"],
button {
  -webkit-appearance: button;
}

[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  line-height: inherit;
}

legend + * {
  clear: left;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

summary {
  display: list-item;
  cursor: pointer;
}

.container,
.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::-webkit-date-and-time-value {
  height: 1.5em;
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

textarea.form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check .form-check-input {
  float: left;
  margin-left: -1.5em;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  -webkit-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:active {
  filter: brightness(90%);
}

.form-check-input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3E%3C/svg%3E");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2' fill='%23fff'/%3E%3C/svg%3E");
}

.form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}

.form-check-input:disabled ~ .form-check-label {
  opacity: 0.5;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid {
  border-color: #dc3545;
}

.form-check-input.is-invalid:checked {
  background-color: #dc3545;
}

.form-check-input.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid ~ .form-check-label {
  color: #dc3545;
}

.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  color: #212529;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.65;
}

.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.btn-primary:active {
  color: #fff;
  background-color: #0a58ca;
  border-color: #0a53be;
}

.btn-primary:active:focus {
  box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.btn-link {
  font-weight: 400;
  color: #0d6efd;
  text-decoration: underline;
}

.btn-link:hover {
  color: #0a58ca;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.d-flex { display: flex !important; }
.w-100 { width: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.mb-3 { margin-bottom: 1rem !important; }

/* ----------------------------------------------------------------------------
   3. Reset
---------------------------------------------------------------------------- */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, small, strong, b, i,
ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, details, summary, footer, header, main, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

details, footer, header, main, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ----------------------------------------------------------------------------
   4. Kolory i układ strony
   Kolory myEvent: niebieski #2154ff, zielony #02d5aa, tło #09080c
---------------------------------------------------------------------------- */

html {
  font-size: 62.5%;
  font-family: "Gilroy", sans-serif;
  scroll-behavior: smooth;
  height: 100%;
  max-height: 100%;
  background: #09080c url("media/tlo.jpg") center center no-repeat;
}

body {
  max-height: 100%;
  font-size: 1.6rem;
  line-height: 1.2;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

a,
button {
  transition: 0.3s;
}

@media screen and (min-width: 1560px) {
  .container {
    max-width: 1300px;
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media screen and (min-width: 1799px) {
  .container {
    max-width: 1400px;
  }
}

.container-fluid {
  max-width: 1920px;
}

@media screen and (min-width: 1299px) {
  .container-fluid {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.4rem 5rem 1.2rem 2.8rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn--icon svg {
  position: absolute;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  display: inline-block;
  width: 10px;
  height: 10px;
  transition: 0.3s;
}

.btn--icon:hover {
  background-color: #2154ff;
}

.btn--icon:hover svg {
  right: 2rem;
}

.logo img {
  height: 3.2rem;
}

/* Nagłówek */

.top-header {
  z-index: 3;
  padding-top: 2rem;
}

.top-header .logo {
  display: none;
  align-items: center;
}

.top-header__navigation {
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  display: block;
}

.top-header h1 {
  padding: 0;
  font-weight: 600;
  font-size: 26px;
  color: #fff;
  position: relative;
  top: 18px;
  text-align: center;
}

.top-header .btn-desktop {
  display: none;
}

.top-header .btn-desktop svg path {
  fill: #fff;
}

@media (min-width: 992px) {
  .top-header {
    padding-top: 0;
  }

  .top-header .logo {
    display: flex;
  }

  .top-header__navigation {
    display: flex;
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .top-header h1 {
    padding: 5.6rem 2rem;
    top: 60px;
  }

  .top-header .btn-desktop {
    display: flex;
  }
}

/* Stopka */

.footer {
  margin-bottom: 50px;
  width: 100%;
}

.footer .copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #878490;
}

.footer .copyright a {
  position: relative;
  color: #02d5aa;
  text-decoration: none;
}

.footer .copyright span.right {
  color: #fff;
}

.footer .copyright span span {
  display: inline !important;
  margin: 0 !important;
}

.footer .copyright span {
  display: block;
  margin: 1rem 0;
}

@media (min-width: 992px) {
  .footer .copyright span {
    display: inline-block;
    margin: 0;
  }
}

@media screen and (max-height: 750px) {
  .footer {
    padding-top: 20px;
    padding-bottom: 40px;
    position: inherit;
  }
}

/* ----------------------------------------------------------------------------
   5. Karta briefu i pytania
---------------------------------------------------------------------------- */

.container-form {
  overflow: hidden;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
}

.container-form .content-page {
  padding-top: 5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background: none !important;
}

@media (min-width: 992px) {
  .container-form .content-page {
    padding-top: 7rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.container-form .content-page .card {
  padding: 5rem 8rem;
  border-radius: 1.5rem;
}

.container-form .content-page .card form .form-control {
  font-size: 1.8rem;
  padding: 0.9rem 1.4rem;
}

/* Wielkość tekstów w karcie briefu (odpowiedzi, przyciski) */
.container-form .card {
  font-size: 1.9rem;
}

.container-form .card .btn {
  font-size: 1.7rem;
}

/* Pasek postępu */

.brief-postep {
  margin-bottom: 3.5rem;
}

.brief-postep__naglowek {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 10px;
}

.brief-postep__opis {
  font-size: 20px;
  font-weight: 500;
  color: #2154ff;
}

.brief-postep__motywacja {
  font-size: 15px;
  font-weight: 600;
  color: #02a383;
}

.brief-postep__tor {
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background-color: #e6e8f4;
}

.brief-postep__wypelnienie {
  height: 100%;
  min-width: 10px;
  border-radius: 5px;
  background-color: #02d5aa;
  transition: width 0.5s ease-out;
}

/* Ekran startowy */

.brief-start__tekst {
  margin-bottom: 2rem;
  font-size: 2.1rem;
  line-height: 1.5;
  color: #0e0d13;
}

.brief-start__punkty {
  margin-bottom: 3rem;
}

.brief-start__punkty li {
  position: relative;
  margin-bottom: 1.4rem;
  padding-left: 3.8rem;
  font-size: 1.9rem;
  line-height: 1.5;
  color: #0e0d13;
}

.brief-start__punkty li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #02d5aa url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
}

/* Pytanie i odpowiedzi */

.container-form .wrap-brief h2 {
  font-size: 30px;
  line-height: 1.25;
  color: #2154ff;
  margin: 20px 0;
}

.container-form .wrap-brief h2:focus {
  outline: none;
}

.container-form .wrap-brief .form-check {
  margin-top: 15px;
  line-height: 1.3;
}

.container-form .wrap-brief .form-check-input {
  margin-top: 0.15em;
}

.brief-podpowiedz {
  display: block;
  margin-top: 3px;
  font-size: 1.5rem;
  color: #878490;
}

.brief-opis {
  margin: -8px 0 16px;
  font-size: 1.6rem;
  color: #878490;
}

.container-form .wrap-brief .error {
  width: 100%;
  height: 20px;
  font-size: 1.6rem;
  color: red;
  text-align: left;
  padding-top: 10px;
}

.container-form .wrap-brief .error:empty {
  height: 0;
  padding-top: 0;
}

/* Odpowiedzi i przycisk "Dalej" wcięte o 30 px względem pytania;
   "Dalej" zaczyna się w tej samej linii co przyciski wyboru, 30 px pod ostatnią odpowiedzią */
.brief-pytanie .wrap-fields,
.brief-pytanie .buttons-bottom {
  margin-left: 30px;
}

.brief-pytanie .wrap-fields fieldset > .mb-3:last-child {
  margin-bottom: 0 !important;
}

.brief-pytanie .wrap-fields fieldset > .mb-3:last-child .form-check {
  margin-bottom: 0;
}

.container-form .brief-pytanie .wrap-brief .buttons-bottom {
  margin-top: 30px;
}

/* Przyciski Dalej / Wstecz / Wyślij */

.container-form .wrap-brief .buttons-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 14px;
}

/* "Dalej" stoi pierwszy, tuż pod odpowiedziami; "Wstecz" obok jako link */
.container-form .wrap-brief .buttons-bottom .btn-next {
  order: -1;
  background: #02d5aa;
  border-color: #02d5aa;
}

.container-form .wrap-brief .buttons-bottom .btn-next.btn--icon img {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

.container-form .wrap-brief .buttons-bottom .btn-prev {
  color: #9a9eb8;
  text-decoration: none;
  padding: 1.4rem 1.6rem 1.2rem 3.6rem;
}

.container-form .wrap-brief .buttons-bottom .btn-prev.btn--icon img {
  position: absolute;
  top: 50%;
  left: 1.4rem;
  transform: translateY(-50%);
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

.container-form .wrap-brief .buttons-bottom .btn-prev:hover {
  background: none;
}

.container-form .content-page .card form .btn-send {
  background: #02d5aa;
  border-color: #02d5aa;
}

.container-form .content-page .card form .btn-send.btn--icon img {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

/* ----------------------------------------------------------------------------
   6. Formularz kontaktowy, wysyłka, komunikaty
---------------------------------------------------------------------------- */

.container-form .content-page .card form .form-label {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.container-form .content-page .card form .invalid-feedback {
  font-size: 1.5rem;
}

/* Pułapka na boty - pole poza ekranem, niewidoczne dla ludzi */
.brief-pulapka {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ekran "Witaj ponownie" */
.brief-wznowienie strong {
  color: #2154ff;
  font-weight: 700;
}

.container-form .wrap-brief .buttons-bottom .brief-od-nowa {
  color: #9a9eb8;
  text-decoration: underline;
  padding: 1.4rem 1.6rem 1.2rem;
}

/* "Wolisz porozmawiać? Zadzwoń" na ekranie startowym */
.container-form .wrap-brief .brief-telefon {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e8f4;
  font-size: 1.7rem;
  line-height: 1.6;
  color: #6b6878;
}

.container-form .wrap-brief .brief-telefon a {
  color: #2154ff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Obietnica pod przyciskiem "Wyślij" */
.container-form .wrap-brief .brief-obietnica {
  margin: 1.4rem 0 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #02a383;
}

.brief-wymagane {
  color: #ed604d;
  font-weight: 700;
}

.brief-zgoda {
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.45;
}

.brief-kontakt .buttons-bottom {
  margin-top: 10px;
}

.container-form .wrap-brief .brief-blad-wysylki {
  height: auto;
  margin-bottom: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
  text-align: left;
}

/* Wysyłanie */

.loading-content {
  margin-left: -10px;
  position: relative;
  left: 50%;
  padding: 15px 0 50px;
}

.loading-content .text {
  position: absolute;
  min-width: 300px;
  left: -70px;
  top: 100px;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: #00b384;
}

.brief-wysylanie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  left: auto;
  margin: 0;
  padding: 40px 0;
}

.brief-wysylanie .text {
  position: static;
  min-width: 0;
}

.brief-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #00b384;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 0.8s linear infinite;
}

.brief-podziekowanie {
  text-align: center;
}

/* Błędy w pliku pytania.js */

.brief-bledy ul {
  padding-left: 2rem;
  font-size: 1.4rem;
  color: #c0392b;
}

.brief-bledy li {
  margin-bottom: 6px;
}

.brief-bledy summary {
  cursor: pointer;
  font-weight: 600;
  margin: 10px 0;
}

/* Tryb testowy (?test) */

.brief-tryb-testowy .top-header h1::after {
  content: " – tryb testowy";
  color: #ed604d;
}

.brief-podglad table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: anywhere;
  font-size: 1.4rem;
}

.brief-podglad th,
.brief-podglad td {
  padding: 6px 10px;
  border: 1px solid #f0f0f5;
  vertical-align: top;
}

.brief-podglad th {
  width: 45%;
  background: #f0f0f5;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
   7. Animacje
---------------------------------------------------------------------------- */

/*
 * SZYBKOŚĆ PRZEJŚCIA MIĘDZY PYTANIAMI
 * Czas wyjazdu karty i osobno czas wjazdu kolejnej, np. 0.3s albo 300ms.
 * Mniej = szybciej. 0s wyłącza animację. (Pierwotnie: ok. 0.45s + 0.8s.)
 */
:root {
  --brief-czas-wyjazdu: 0.125s;
  --brief-czas-wjazdu: 0.175s;
}

.animated_out {
  position: relative;
  right: 0;
  animation: animated_out var(--brief-czas-wyjazdu) ease-in forwards;
}

.animated_in {
  position: relative;
  left: -800px;
  animation: animated_in var(--brief-czas-wjazdu) ease-out forwards;
}

@keyframes animated_in {
  100% { left: 0; }
}

@keyframes animated_out {
  100% { right: -1000px; }
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(359deg); }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-control,
  .btn,
  .brief-postep__wypelnienie {
    transition: none;
  }

  .animated_in,
  .animated_out {
    animation: none !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ----------------------------------------------------------------------------
   8. Telefony
---------------------------------------------------------------------------- */

/* Telefony i tablety: logo jako link do strony głównej (przycisk "Strona główna"
   jest widoczny dopiero na komputerze) */
@media (max-width: 991px) {
  .top-header {
    padding-top: 1.6rem;
  }

  .top-header .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .top-header .logo img {
    height: 2.6rem;
  }
}

/* Tablety (np. iPad w pionie) */
@media (min-width: 768px) and (max-width: 991px) {
  .container-form .content-page .card {
    padding: 4rem 5rem;
  }
}

@media (max-width: 768px) {
  .container-form .wrap-brief h2 {
    margin: 10px 0 20px;
    font-size: 22px;
  }

  .container-form .card {
    font-size: 1.7rem;
  }

  .brief-start__tekst {
    font-size: 1.9rem;
  }

  .brief-start__punkty li {
    font-size: 1.7rem;
  }
}

/* Telefony */
@media (max-width: 767px) {
  .container-form .content-page {
    padding-top: 2.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .container-form .content-page .card {
    padding: 2.4rem 2rem;
  }

  .top-header h1 {
    top: 0;
    font-size: 20px;
  }

  /* Odpowiedzi bez wcięcia - na wąskim ekranie liczy się każdy piksel */
  .brief-pytanie .wrap-fields,
  .brief-pytanie .buttons-bottom {
    margin-left: 0;
  }

  .brief-postep {
    margin-bottom: 2.4rem;
  }

  .brief-postep__opis {
    font-size: 18px;
  }

  .brief-postep__motywacja {
    font-size: 14px;
  }
}

/* Telefony, tablety i każdy ekran dotykowy: większe pole dotyku -
   każda odpowiedź ma co najmniej ok. 44 px wysokości */
@media (max-width: 991px), (pointer: coarse) {
  .brief-pytanie fieldset > .mb-3 {
    margin-bottom: 0 !important;
  }

  .container-form .brief-pytanie .form-check {
    margin-top: 0;
  }

  .container-form .brief-pytanie .form-check-label {
    display: block;
    padding: 11px 0;
  }

  .container-form .brief-pytanie .form-check-input {
    margin-top: calc(11px + 0.15em);
  }
}
