/* Poll Container */
.poll-container,
.mdp-poll-block .poll-container {
  background: linear-gradient(to right, #fef9f9, #f0f4ff);
  border: 3px solid #d8e2f1;
  border-radius: 10px;
  padding: 30px;
  width: 80%;
  min-width: 240px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  display: inline-block;
  vertical-align: top;
}

/* Override for container inside .mdp-poll-block */
.mdp-poll-block .poll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: linear-gradient(to right, #fef9f9, #f0f4ff);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 400px; /* Or your preferred max */
  margin: 30px auto;
}

/* Question Section */
.mdp-poll-block .poll-question {
  margin-bottom: 25px;
}

.mdp-poll-block .poll-question h3,
.mdp-poll-block .poll-title,
.mdp-poll-block h3 {
  font-size: 1.2em;
  color: #1f2e4d;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

/* Option Styling */
.mdp-poll-block .poll-question label,
.mdp-poll-block .poll-options label,
.poll-question label {
  display: block;
  position: relative;
/*  padding-left: 35px; */
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  color: #444;
  line-height: 1.1;
}

/* Submit Button */
.mdp-poll-block .poll-submit-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.mdp-poll-block .poll-container .poll-submit {
  display: inline-block;
  margin: 0;
  padding: 12px 25px;
  border-radius: 25px;
  background-color: #4a90e2;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.mdp-poll-block .poll-submit:hover {
  background-color: #357ab8;
}
.mdp-poll-block .poll-submit {
  display: inline-block;
  margin: 0;
}
/* Result Message */
.mdp-poll-block .poll-result {
  margin-top: 25px;
  text-align: center;
  font-size: 1em;
  color: #2a3f66;
  font-weight: bold;
}
.mdp-poll-block .poll-result.error-message {
  display: block;
  background-color: #fff !important;
  color: red !important;
  border: 2px solid red;
}

/* Poll Chart */
.mdp-poll-block .poll-container .poll-chart {
  display: block;
  margin: 30px auto 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Block/Section Layout */
.mdp-poll-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mdp-poll-block .poll-qa {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Form Layout */
.mdp-poll-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

/* Options layout */
.mdp-poll-block .poll-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 1em 0;
  align-items: flex-start;
}
.poll-options-outer {
  display: flex;
  justify-content: center;
  width: 100%;
}
.poll-align-left {
  float: left;
  width: 50%;
  margin-right: 40px;
  margin-bottom: 20px;
  clear: none;
}
.poll-align-right {
  float: right;
  width: 50%;
  margin-left: 40px;
  margin-bottom: 20px;
  clear: none;
}
.poll-align-center {
  margin-left: auto;
  margin-right: auto;
  float: none;
  width: 60%;
  display: block;
  clear: both;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .poll-align-left,
  .poll-align-right,
  .poll-align-center {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    display: block;
    clear: both;
  }
}
@media (max-width: 768px) {
  .poll-container {
    max-width: 100%;
    padding: 16px;   /* Less padding for small screens */
    margin: 16px 0;
  }
}
