/* Styl p�ywaj�cego przycisku */
.floating-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #007bff; /* Kolor przycisku */
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  z-index: 1000; /* �eby by� zawsze na wierzchu */
}

.floating-btn:hover {
  transform: scale(1.1);
  background-color: #0056b3;
}

/* Styl t�a okna modalnego (overlay) */
.modal {
  display: none; /* Domy�lnie ukryte */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

/* Styl zawarto�ci okna modalnego */
.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 450px; /* Maksymalna szerokość */
  
  /* Poniższe linijki naprawią problem z wysokością: */
  height: auto;        /* Okno dostosuje się do zawartości */
  max-height: 85vh;    /* Maksymalnie 85% wysokości ekranu, żeby nie wystawało */
  overflow-y: auto;    /* Jeśli treść byłaby za długa, pojawi się wewnętrzny suwak */
  
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
  font-family: 'Open Sans', sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Przycisk zamkni�cia (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #333;
}

/* Formularz wewn�trz modala */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.submit-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.submit-btn:hover {
  background-color: #218838;
}