:root {
  --mdp-gold:      #cbb26a;
  --mdp-dark-gold: #be9e44;
  --mdp-light-gold:#d8c690;
  --mdp-black:     #000000;
  --mdp-off-black: #111111;
  --mdp-gray:      #2a2a2a;
  --mdp-white:     #fff;
}

/* Poll Container */
.poll-container,
.mdp-poll-block .poll-container {
  background: var(--mdp-black);
  border: 2px solid var(--mdp-gold);
  border-radius: 10px;
  padding: 30px;
  width: 80%;
  min-width: 240px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(203,178,106,0.13);
  font-family: 'Segoe UI', sans-serif;
  color: var(--mdp-gold);
  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: var(--mdp-black);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(203,178,106,0.13);
  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: var(--mdp-gold);
  background: var(--mdp-gray);
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  padding: 0.35em 0;
}

/* Option Styling */
.mdp-poll-block .poll-question label,
.mdp-poll-block .poll-options label,
.poll-question label {
  display: block;
  position: relative;
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  color: var(--mdp-light-gold);
  background: var(--mdp-off-black);
  border: 2px solid var(--mdp-gold);
  border-radius: 8px;
  padding: 0.6em 1em;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}

.mdp-poll-block .poll-options label:hover,
.mdp-poll-block .poll-options label:focus-within {
  background: var(--mdp-gold);
  color: var(--mdp-black);
  border-color: var(--mdp-dark-gold);
}

.mdp-poll-block .poll-options input[type="radio"] {
  display: none;
}
.mdp-poll-block .poll-options input[type="radio"]:checked + span {
  background: var(--mdp-gold);
  color: var(--mdp-black);
  border-color: var(--mdp-dark-gold);
  font-weight: bold;
  box-shadow: 0 0 0 3px var(--mdp-dark-gold);
}

/* 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: var(--mdp-gold);
  color: var(--mdp-black);
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 700;
}
.mdp-poll-block .poll-submit:hover {
  background-color: var(--mdp-dark-gold);
  color: var(--mdp-white);
}
.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: var(--mdp-light-gold);
  font-weight: bold;
  background: rgba(203,178,106,0.07);
  border-radius: 8px;
  padding: 0.6em 1em;
}
.mdp-poll-block .poll-result.error-message {
  display: block;
  background-color: var(--mdp-black) !important;
  color: #ff6b6b !important;
  border: 2px solid #ff6b6b;
}

/* Poll Chart */
.mdp-poll-block .poll-container .poll-chart {
  display: block;
  margin: 30px auto 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--mdp-off-black);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--mdp-gray);
}

/* 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;
}
.mdp-poll-block .poll-options label {
  width: 100%;          /* Full width of the parent container */
  min-width: 180px;     /* Minimum width for small layouts */
  max-width: 320px;     /* You can adjust for your sidebar */
  box-sizing: border-box;
  display: inline-block;   /* Instead of block, for padding to work better */
  text-align: left;        /* Or center if you prefer */
  margin-left: auto;
  margin-right: auto;
}
@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;
  }
}
