.vpm-voting {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.vpm-voting h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.vpm-candidates {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2rem;
    justify-content: space-around;
}

.vpm-candidate {
  background: #f9fafb;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  justify-items: center;
  width: 33%;
}

.vpm-candidate:hover {
  border-color: #0073aa;
  background: #f0f8ff;
}

.vpm-candidate input[type="radio"] {
  margin-bottom: 0.5rem;
  margin-right: 0;
}

.vpm-photo {
    width: 100%;
    max-width: none !important;
}

.vpm-party {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

.vpm-voting p {
  margin-bottom: 1rem;
}

.vpm-voting label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.vpm-voting input[type="text"],
.vpm-voting input[type="email"],
.vpm-voting input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.vpm-voting input:focus {
  border-color: #0073aa;
  outline: none;
}

.vpm-submit {
  display: block;
  width: 100%;
  background: #0073aa;
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vpm-submit:hover {
  background: #005f87;
}

.vpm-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.8;
}

.vpm-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: normal;
}

.vpm-message[style="color:red"] {
  background-color: #fbeaea;
  border: 1px solid #f5aca6;
  color: #e02b27;
}

.vpm-message[style="color:green"] {
  background-color: #eaf7ea;
  border: 1px solid #a1d3a1;
  color: #2a872a;
}




.vpm-candidates br {
    display: none;
}

.vpm-candidate:has(input:checked) {
  background: #def;
  font-weight: bold;
  color: blue;
}

label.vpm-candidate {
    height: 40vh !important;
    min-height: 260px;
    padding: 5px;
    min-width: 180px;
    
}

img.vpm-photo {
    border: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    height: auto;
    max-width: none !important;
    aspect-ratio: 4 / 6;
}

.vpm-candidate {
    font-size: 0;
}

.vpm-candidate strong {
    display: none !important;
}

.vpm-candidate .vpm-party {
    display: none !important;
}

@media (max-width: 768px) {
  .responsive-img {
    aspect-ratio: 16 / 9;
    object-fit: contain; 
  }
}

