.contact-form2 {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Układ domyślny / Mobile: etykieta nad polem */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Desktop: 2 kolumny (lewa etykieta, prawa pole) */
@media (min-width: 768px) {
  .form-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 16px;
  }

  .form-group label {
    padding-top: 10px; /* Wyrównanie tekstu etykiety do środka pola */
    font-weight: 500;
  }

  .form-actions {
    text-align: center;
  }
}

.submit-btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.5s;
  background-color: #eee;
}

.submit-btn:hover {
  background-color: #fff;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Kółko loadera (spinner) */
.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.small-desc {font-size:0.7em;margin:5px;font-style:italic;}

.file-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.file-list li {
  background-color: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.file-size {
  color: #71717a;
  font-size: 12px;
  flex-shrink: 0;
}

/* Przycisk usuwania */
.remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.remove-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#contact-form2 {min-height: 200px;}
#contact-form2 table, #contact-form2 tr, #contact-form2 td {border: 0px;text-align: right;padding:5px;}
#contact-form2 input[type="text"] {width: 80%; padding:10px 0;}
#contact-form2 input[type="submit"] {font-size: 1.1em; margin: 0 auto;display: block;}
#contact-form2 select {width: 80%;}
#contact-form2 textarea {width: 80%; height: 100px;}