.rekrutacja-logo {
  text-align: center;
  margin-top: 20px;
}
.rekrutacja-logo img {
  filter: none !important;
}
#nav-rekrutacja {
  /*  font-size: 0.9em */
}
#nav-rekrutacja ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
  gap: 3px;
  border-bottom: 3px solid #666;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
#nav-rekrutacja ul > li:last-child {
  flex: 1;
}
#nav-rekrutacja li {
  /* Zmiana z flex: 0 0 calc(20% - 3px); na: */
  flex: 1;
  min-width: calc(20% - 3px); /* Zachowuje bazowy rozmiar, ale pozwala rosnąć */
  background-color: #4caf50;
  border-radius: 5px;
}
#nav-rekrutacja li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: whitesmoke;
  background-color: #4caf50;
  border-radius: 5px;
  height: 40px;
}
.dokument-rekrutacja table {
  font-size: 0.9em;
}
.form-section {
  margin-bottom: 20px;
}

.form-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-section input {
  width: calc(100% - 12px);
  padding: 5px;
  border: none;
  border-bottom: 1px dashed #000;
  box-sizing: border-box;
  outline: none;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.form-section input:hover {
  background-color: #f0f0f0;
}

.print-button,
.print-pdf-link {
  all: unset; /* Resetowanie wszystkich styli */
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none; /* Usuń domyślne podkreślenie linku */
  display: inline-block;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 5px;
}

.print-pdf-link {
  text-decoration: none; /* Usuń domyślne podkreślenie linku */
}

.btn-rekrutacja {
  /*  display: inline-flex; */
  align-items: center;
  justify-content: center;
  background-color: #c62828; /* Czerwień szkolna */
  color: #ffffff !important;
  /*   padding: 10px 20px; */
  border-radius: 15px;
  font-weight: bold;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 16px; /* Optymalny rozmiar */
  border: 2px solid #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-top: -10px;
  padding: 3px 10px;
  /*   width: 100% */
}

.btn-rekrutacja i {
  margin-right: 10px; /* Odstęp ikony od tekstu */
  font-size: 18px;
}

.btn-rekrutacja:hover {
  background-color: #b71c1c;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-chat-widoczny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ); /* Białe tło z lekkim prześwitem */
  color: #c62828 !important; /* Czerwony tekst */
  padding: 3px 18px;
  border: 2px solid #c62828; /* Czerwona ramka */
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-chat-widoczny i {
  margin-right: 8px;
  font-size: 13px;
}

.btn-chat-widoczny:hover {
  background-color: #c62828; /* Odwrócenie kolorów po najechaniu */
  color: #ffffff !important;
  transform: scale(1.03);
}

/* Ostateczne czyszczenie druku */
@media print {
  /* 1. Ukryj wszystko, co nie jest formularzem */
  body > *:not(.print-container) {
    display: none !important;
  }

  /* 2. Zadbaj o formularz */
  .print-container {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
  }

  /* 3. Wybij wszystko co nie jest do druku */
  .print-button,
  .print-pdf-link,
  img,
  .rekrutacja-logo,
  #nav-rekrutacja {
    display: none !important;
  }

  /* 4. Brutalne nadpisanie nagłówków (ważne dla $rek8 i $rek5) */
  .print-container h1,
  .print-container h2,
  .print-container h3,
  h1,
  h2,
  h3 {
    font-size: 16px !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    color: #000 !important;
    text-transform: uppercase !important;
  }

  /* 5. Czytelność pól */
  .input-box,
  .form-section input {
    border: 1px solid #000 !important;
    background-color: #fff !important;
  }
}
/* Style dla wersji do druku */
@media screen and (max-width: 480px) {
  .dokument-rekrutacja {
    font-size: 2.5vw;
  }
}
@media screen and (max-width: 768px) {
  .dokument-rekrutacja {
    font-size: 2.5w;
  }
}
