[hidden] {
  display: none !important;
}
.footer-section {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('stopka.jpg') center center/cover no-repeat;
  z-index: 0;
  filter: brightness(0.91);
  pointer-events: none;
}

.footer-overlay {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  gap: 32px;
}

.footer-form {
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 4px 32px rgba(90, 36, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
}

.footer-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-form label {
  font-family: 'Arsenal', Arial, sans-serif;
  font-size: 1.2rem;
  color: #333;
  font-weight: 700;
}

.footer-form input {
  padding: 14px 18px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 1.5px solid #ccc;
  font-family: 'Arsenal', Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.footer-form button {
  background: #874e25;
  color: #fff;
  font-size: 1.2rem;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Arsenal', Arial, sans-serif;
  font-weight: bold;
  transition: background 0.2s;
}

.footer-form button:hover {
  background: #a35e29;
}

.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.footer-info {
  background: rgba(120, 55, 25, 0.75);
  border-radius: 38px;
  padding: 46px 38px;
  box-shadow: 0 4px 48px rgba(90, 36, 0, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
}

.footer-title {
  font-family: 'Arsenal', Arial, sans-serif;
  font-size: 2.7rem;
  font-style: italic;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-overlay {
    width: 100%;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
  }

  .footer-form {
    width: 100%;
    padding: 24px 18px;
    border-radius: 24px;
    max-width: 92%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
  }

  .footer-form input {
    font-size: 1rem;
    padding: 12px 14px;
  }

  .footer-form label {
    font-size: 1rem;
    color: #000000;
  }

  .footer-form button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .captcha-wrapper {
    transform: scale(0.95);
    transform-origin: left;
  }

  .footer-info {
    padding: 18px 12px;
    max-width: 92%;
    text-align: center;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .footer-title {
    font-size: 1.4rem;
    line-height: 1.4;
  }
}

#form-msg {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.2rem;
  background-color: #1c4c29;
  color: white;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.5;
}

.rodo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.rodo-label {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  max-width: 580px;
  width: 100%;
  gap: 12px;
  box-sizing: border-box;
}

.rodo-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #874e25;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.rodo-text {
  font-size: 0.84rem;
  font-family: 'Arsenal', Arial, sans-serif;
  color: #222;
  line-height: 1.4;
}

.rodo-text a {
  color: #874e25;
  font-weight: bold;
  text-decoration: none;
}

.rodo-text a:hover {
  text-decoration: underline;
}

.footer-section.live-mode {
  height: 100vh;
  min-height: 100vh;
  justify-content: center;
}

.event-msg {
  width: 100%;
  max-width: 900px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  color: #fff;

  /* nowe: kopiowane z .footer-info */
  background: rgba(120, 55, 25, 0.75);
  border-radius: 38px;
  padding: 46px 38px;
  box-shadow: 0 4px 48px rgba(90, 36, 0, 0.16);
  box-sizing: border-box;
}

.event-msg h2 {
  font-family: 'Arsenal', Arial, sans-serif;
  font-size: 2rem;
  font-style: italic;
  margin: 0;
  line-height: 1.3;
}

.ending-section {
  position: fixed;
  inset: 0;
  background: #000 url('170lecie/stopka.jpg') center/cover no-repeat;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}

.ending-section.show {
  display: flex;
}

.ending-overlay {
  background: rgba(0,0,0,0.68);
  padding: 40px 32px;
  border-radius: 32px;
  text-align: center;
  max-width: 700px;
}

.ending-overlay h1 {
  font-family: 'Arsenal', Arial, sans-serif;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 18px;
}

.ending-overlay p {
  font-family: 'Arsenal', Arial, sans-serif;
  font-size: 1.4rem;
  color: #f5f5f5;
  line-height: 1.4;