body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f9; /* Jasne tło */
  color: #333; /* Kolor tekstu */
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.main {
  margin: auto;
  width: 90%;
  max-width: 800px;
  text-align: center;
  padding: 40px 20px;
  background-color: #fff; /* Białe tło dla głównego kontenera */
  border: 1px solid #e0e0e0; /* Delikatne obramowanie */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtelny cień */
  margin-top: 40px;
}

h1, h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #444; /* Kolor nagłówka */
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
}

ul li a {
  text-decoration: none;
  color: #007acc; /* Kolor linków */
  font-weight: bold;
  transition: color 0.3s;
}

ul li a:hover {
  color: #005f99; /* Kolor linków po najechaniu */
}

a {
  text-decoration: none;
  color: #cc4949; /* Kolor linków */
  font-weight: bold;
  transition: color 0.3s;
}

a:hover {
  color: #992d2d; /* Kolor linków po najechaniu */
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.contact-info,
.wide-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-weight: bold;

}

.contact-info canvas {
  width: 100%;
  height: 150px;
  border: 1px solid #ccc; /* Kolor obramowania */
  border-radius: 8px;
  display: block;
  cursor: crosshair;
  box-sizing: border-box;
  background-color: #fafafa; /* Kolor tła canvasa */
  color: #333; /* Kolor tekstu canvasa */
}

.signature-container {
  width: 100%;
  margin-bottom: 20px;
}

.signature-container button {
  float: right;
  padding: 8px 16px;
  background-color: #007acc;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.signature-container button:hover {
  background-color: #005f99;
}

.input-box,#account-number-box {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-box label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333; /* Kolor etykiet */
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc; /* Kolor obramowania */
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #fff; /* Kolor tła inputów */
  color: #333; /* Kolor tekstu inputów */
}

input[type="date"] {
  padding: 10px 12px;
}

textarea {
  height: 100px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

button[type="submit"] {
  padding: 12px 30px;
  border: 2px solid #007acc;
  border-radius: 8px;
  background-color: #007acc;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

button[type="submit"]:hover {
  background-color: #005f99;
}

button[type="button"] {
  margin-top: 10px;
  padding: 6px 14px;
  border: 2px solid #cc4949;
  border-radius: 8px;
  background-color: #cc4949;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

button[type="button"]:hover {
  background-color: #992d2d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main {
    width: 95%;
  }

  .input-box {
    width: 100%;
  }

  form {
    gap: 10px;
  }
}

.signature-container label {
  text-align: left;
  color: #333; /* Kolor tekstu w podpisie */
}

/* Domyślne ukrycie pola Numer Umowy */
#contract-number-box {
  display: none;
}
#payment-method{
  display: block;
}
#account-number-box{
  
  text-align: left;
}

input[type="checkbox"] {
  margin-top: -10px; /* Przesuń checkbox w górę */
}

input[type="checkbox"] + label {
  margin-top: 10px; /* Przesuń etykietę checkboxa w górę */
}

/* Stylizacja kontenera numeru umowy */
#contract-number-box {
  margin-top: 10px; /* Przesunięcie pola numeru umowy */
}

#loading-spinner {
  display: none;
  font-size: 14px;
  color: #007acc; /* Spinner color */
  margin-top: 10px;
  text-align: center;
}

#submit-button:disabled {
  background-color: #ccc; /* Gray out the button */
  cursor: not-allowed;
}

.alert {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Fullscreen overlay – DOMYŚLNIE UKRYTY */
#loading-overlay{
  position: fixed;
  inset: 0;
  display: none;              /* ukryty, JS niech tylko dodaje/usuwa klasę */
  background: rgba(0,0,0,.55);
  z-index: 9999;
  backdrop-filter: blur(1px);
}

/* POKAŻ po dodaniu klasy */
#loading-overlay.is-open{
  display: flex;              /* dopiero teraz widoczny */
  flex-direction: column;     /* jedno pod drugim */
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* biały box */
#loading-overlay .loading-box{
  background:#fff;
  border-radius:12px;
  padding:22px 28px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  gap:14px;
}

/* spinner */
#loading-overlay .spinner{
  width:26px;height:26px;
  border:3px solid #ddd;
  border-top-color:#111;
  border-radius:50%;
  animation:spin .9s linear infinite;
}
#loading-overlay .loading-text{ font-weight:600; letter-spacing:.2px; }
@keyframes spin{ to{ transform:rotate(360deg) } }

#loading-overlay .loading-box {
  background:#fff;
  border-radius:12px;
  padding:22px 28px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;   /* <-- jedno pod drugim */
  align-items:center;
  gap:14px;                /* odstępy między elementami */
}


/* blokada klików podczas ładowania (opcjonalnie) */
body.loading{ pointer-events:none; user-select:none; }

/* PASEK POSTĘPU */
.progress-wrap{
  width:320px;height:10px; border-radius:999px;
  background:#e9e9e9; overflow:hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.progress-bar{ width:0%; height:100%; background:#111; transition:width .2s ease; }
.progress-label{ text-align:center; font-size:12px; color:#222; font-weight:600; }

.checkboxes-container {
  margin: 15px 0;
  text-align: left;
}

.checkbox-group {
  margin-bottom: 10px;
}

.checkbox-group label {
  display: inline-flex;     /* tekst i checkbox w jednej linii */
  align-items: center;      /* pionowe wyrównanie */
  gap: 6px;                 /* odstęp */
  cursor: pointer;
  font-weight: normal;
  white-space: nowrap;      /* bez zawijania */
}

.checkbox-group input[type="checkbox"] {
  margin: 0;                /* zero marginesu */
  width: 16px;              /* stały rozmiar kwadracika */
  height: 16px;
  vertical-align: middle;   /* dodatkowe wyrównanie */
  position: relative;
  top: -1px;                /* 👈 lekkie podbicie żeby idealnie zrównać */
}

.checkbox-group.bold label {
  font-weight: bold;
}










