/* ==========================================================================
   ZIGPOLL CUSTOM SURVEY / POLL SECTION STYLING (PERFECTED BORDER & ANIMATIONS)
   ========================================================================== */

.section-zigpoll {
  position: relative;
  width: 100%;
  padding: 0 0 48px;
  background-color: var(--zigpoll-bg-color, #f9f9f9);
  transition: opacity 0.8s ease;
}

.zigpoll__container {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Card Container & Clean Rounded Border */
.zigpoll-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e2e2;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  display: block;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Header & Copy */
.zigpoll__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  margin: 0 0 8px 0;
}

.zigpoll__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #555555;
  margin: 0 0 20px 0;
}

/* Multi-step Slides Wrapper */
.zigpoll-slides {
  position: relative;
  width: 100%;
}

.zigpoll-slide {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
  box-sizing: border-box;
}

.zigpoll-slide.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Inputs & Forms */
.zigpoll-input-wrapper {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.zigpoll-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e2e2;
  background: #fdfdfd;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #111111;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.zigpoll-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.zigpoll-message {
  font-size: 0.82rem;
  color: #e53935;
  margin-top: 6px;
  display: none;
}

.zigpoll-input-wrapper.has-error .zigpoll-message {
  display: block;
}

.zigpoll-input-wrapper.has-error .zigpoll-input {
  border-color: #e53935;
}

/* Actions & Buttons */
.zigpoll-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.zigpoll-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  background-color: #111111;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.zigpoll-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.zigpoll-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Success Screen & Fixed Checkmark Progress Circle */
.zigpoll-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
  width: 100%;
}

.zigpoll-success.is-active {
  display: flex;
}

.zigpoll-progress-circle {
  width: 64px;
  height: 64px;
  position: relative;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.zigpoll-progress-circle svg.progress {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
  display: block;
}

.zigpoll-progress-circle .meter {
  stroke: rgba(46, 125, 50, 0.2);
  fill: none;
}

.zigpoll-progress-circle .value {
  stroke: #2e7d32;
  fill: none;
  stroke-dasharray: 62.83;
  stroke-dashoffset: 0;
}

.zigpoll-checkmark-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  color: #2e7d32;
  stroke: #2e7d32;
  z-index: 2;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 767px) {
  .zigpoll-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .zigpoll__title {
    font-size: 1.1rem;
  }

  .zigpoll-submit {
    width: 100%;
  }
}