@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #000000, #004d00);
  margin: 0;
  padding: 4rem 2rem;
  min-height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-self: center;         /* ↩️ klíčová změna: zarovnání uprostřed rodiče */
  width: 100%;
  max-width: 800px;           /* nebo jiná šířka dle vkusu */
}

.logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* FORMULÁŘ */
form {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  color: #333;
}

form h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #bfa145;
}

label {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #bfa145;
  outline: none;
}

button {
  background-color: #bfa145;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 2rem auto 0 auto;
}

button:hover {
  background-color: #a68d3c;
}

/* ANIMOVANÉ DÍKY */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.thankyou-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0;
  animation:
    fadeIn 1.2s ease-out forwards,
    pulse 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .logo-wrapper {
    max-width: 200px;
    margin-bottom: 1rem;
  }

  .logo {
    max-height: 140px;
  }

  .thankyou-logo {
    max-width: 240px;
  }

  form h1 {
    font-size: 1.6rem;
  }
}
