/* === БАЗОВІ СТИЛІ === */
@font-face {
  font-family: 'SilpoFontReg';
  src: url('fonts/Silpo-Regular.otf') format('otf');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SilpoFontReg', sans-serif;
  background: linear-gradient(135deg, #d4f3ff, #fffecf, #d4ffd8);
  background-size: 300% 300%;
  animation: flow 20s ease infinite;
  color: #222;
}

/* Анімація градієнта */
@keyframes flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px;
  /* background: #ffffffd9; */
  border-radius: 30px;
  display: flex;
  gap: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* === ЛІВА ЧАСТИНА (ОПИС) === */
.description {
  flex: 1 1 45%;
}

.description .badge {
  background: #dcedc8;
  color: #33691e;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.description h1 {
  font-size: 32px;
  color: #2e7d32;
  margin-top: 10px;
}

.description h1 span {
  color: #1976d2;
}

.description p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

/* === ПРАВА ЧАСТИНА (ФОРМА) === */
.form-box {
  flex: 1 1 55%;
  background: #fafafa;
  text-align: center;
  height: fit-content;
  padding: 16px 30px 8px;
  border-radius: 20px;
  padding-bottom: 24px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.form-box h2 {
  text-align: center;
  color: #1976d2;
  font-size: 24px;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ПОЛЯ */
form input[type="text"],
form input[type="number"],
form input[type="file"],
form input[type="tel"] {
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #ccc;
  transition: border 0.3s;
}

form input:focus {
  border-color: #4caf50;
  outline: none;
}

/* КНОПКА */
button {
  background: linear-gradient(135deg, #7be495, #30c67c);
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(48, 198, 124, 0.4);
}

button:hover {
  background: linear-gradient(135deg, #5ed184, #28b26b);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 198, 124, 0.6);
}


/* ЗГОДА */
.label {
  font-weight: 600;
  font-size: 14px;
}
butt
.consent {
  font-size: 14px;
  color: #444;
}

.consent input {
  margin-right: 8px;
}

/* ПОВІДОМЛЕННЯ */
.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
}

/* МОБІЛЬНА АДАПТАЦІЯ */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }
  .description,
  .form-box {
    flex: 1 1 100%;
    padding: 0;
  }
  /* .form-box {
    margin-top: 30px;
  } */
}

form input + input {
    margin-top: 4px;
  }

.participants-box {
    display: flex;
    align-items: center;
    background: #f0fff4;
    padding: 10px 20px;
    border-radius: 30px;
    margin: 24px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    width: fit-content;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #2e7d32;
  }
  
  .avatars {
    display: flex;
    flex-direction: row;
    position: relative;
  }
  
  .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ebdf89;
    border: 2px solid #c0f0dd;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
  }
  
  .avatar:first-child {
    margin-left: 0;
  }
  
  .avatar:hover {
    transform: scale(1.1);
  }
  
  
  .participants-text strong {
    color: #1e88e5;
  }
  
  .preview-image {
    display: block;
    max-width: 100%;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .preview-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
  }

  .input-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .input-row > div {
    flex: 1;
    min-width: 200px; /* або адаптивно */
  }
  
  .error {
    background-color: #ffe5e5;
    border: 1px solid #ff5f5f;
    color: #b60000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
  }
  
.vote-button.voted {
  background-color: #4CAF50; /* зелений */
  color: #fff;
  cursor: default;
  border: none;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0.9;
  transition: background-color 0.3s;
}

.vote-button.voted:hover {
  background-color: #43a047;
}

.vote-button.voted::before {
  content: "✅ ";
  margin-right: 5px;
}

.button-vote-now {
  display: inline-block;
  padding: 14px 28px;
  background-color: #ff8c00;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.button-vote-now:hover {
  background-color: #e67600;
}

