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));
}
