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 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-weight: bold;
}

.wide-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

/* Stylowanie sekcji produktów */
#products-list {
  width: 100%;
}

.product-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fafafa;
  align-items: end;
}

.product-row .wide-row {
  grid-column: 1;
  width: 100%;
  margin-bottom: 0;
}

.product-row .input-box {
  width: 100%;
  margin-bottom: 0;
}

.product-actions {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.remove-product {
  padding: 8px 16px !important;
  font-size: 14px !important;
  white-space: nowrap;
  background-color: #dc3545 !important;
  border: 2px solid #dc3545 !important;
}

.remove-product:hover {
  background-color: #c82333 !important;
  border-color: #c82333 !important;
}

#add-product {
  width: 100%;
  padding: 12px 24px;
  background-color: #007acc !important;
  border: 2px solid #007acc !important;
  margin-top: 10px;
}

#add-product:hover {
  background-color: #007acc !important;
  border-color: #007acc !important;
}

.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;
  }

  /* Responsive design dla sekcji produktów */
  .product-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-row .wide-row {
    grid-column: 1;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .product-row {
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
  }

  .product-row .wide-row {
    grid-column: 1 / -2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
  }
}

.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;
}