/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

  /* Pasek postępu */
    #progress {
      display: none;
      width: 100%;
      background: #f3f3f3;
      border: 1px solid #ddd;
      border-radius: 4px;
      height: 25px;
      margin-top: 10px;
      position: relative;
      overflow: hidden;
    }
    #progress .bar {
      width: 0%;
      height: 100%;
      background: #4caf50;
      transition: width 0.2s ease;
    }
    #progress .percent {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      line-height: 25px;
      font-weight: bold;
      color: #333;
    }
    /* Popup błędu – wyśrodkowany i tekst wyjustowany */
    .error-popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      max-width: 300px;
      width: 80%;
      background: #e74c3c;
      color: #fff;
      padding: 20px 20px 20px 20px;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      z-index: 1000;
      cursor: default;
      min-width: 600px;
      text-align: center;
    }
    .error-popup .close-btn {
      position: absolute;
      top: 8px;
      right: 12px;
      font-weight: bold;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    /* Dodaj do istniejącego <style> */

/* Kontener‐overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

/* Popup z progres barem */
.progress-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 320px;
  width: 80%;
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
}

/* Sam pasek */
.progress-popup .bar-container {
  background: #f3f3f3;
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
  margin: 15px 0;
}
.progress-popup .bar {
  width: 0%;
  height: 100%;
  background: #2196F3; /* najczęściej spotykany niebieski pasek */
  transition: width 0.2s ease;
}
.progress-popup .percent {
  font-weight: bold;
}

.sendbtn, .resendbtn {
    margin-top: 20px;
    text-align: center;
}