.home-skipta-poll-form input[type="file"],
.skipta-poll-form input[type="file"],
.home-skipta-poll-form input[data-drupal-selector="edit-poll-files-remove-button"],
.skipta-poll-form input[data-drupal-selector="edit-poll-files-remove-button"],
.home-skipta-poll-form button[data-drupal-selector="edit-poll-files-remove-button"],
.skipta-poll-form button[data-drupal-selector="edit-poll-files-remove-button"],
.home-skipta-poll-form .form-group input[type="checkbox"],
.skipta-poll-form .form-group input[type="checkbox"] {
    display: none !important;
}

.home-skipta-poll-form .file,
.skipta-poll-form .file {
    background-image: none !important;
    position: relative;
    display: inline;
}

.home-skipta-poll-form .file span,
.skipta-poll-form .file span {
    width: 100% !important;
    position: relative;
    display: inline;
}

.home-skipta-poll-form .post-file-container,
.skipta-poll-form .post-file-container {
    float: left;
    width: 90%;
}

.home-skipta-poll-form .post-remove-item,
.skipta-poll-form .post-remove-item {
    float: right;
    width: 10%;
}

.home-skipta-poll-form .post-remove-item:hover,
.skipta-poll-form .post-remove-item:hover {
    cursor: pointer;
}

.quick-poll .form-group {
    margin-bottom: 0px;
}

.home-skipta-poll-form .form-group .js-form-type-checkbox,
.skipta-poll-form .form-group .js-form-type-checkbox {
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    padding: .5em;
    overflow: hidden;
    text-align: center !important;
    min-height: 1px;
}

.home-skipta-poll-form .form-group .js-form-type-checkbox:last-of-type,
.skipta-poll-form .form-group .js-form-type-checkbox:last-of-type {
    border-bottom: 1px solid #cccccc;
}

.home-skipta-poll-form .stream__panel,
.skipta-poll-form .stream__panel {
    display: block !important;
}

.home-skipta-poll-form .panel-body .btn,
.skipta-poll-form .panel-body .btn {
    margin-top: 10px;
}

.home-skipta-poll-form .js-form-managed-file .control-label,
.skipta-poll-form .js-form-managed-file .control-label {
    width: 100%;
    cursor: default;
}
.stream__wrapper .stream__content .quick-poll .poll_sponsored_text {
  width: auto !important;
}

.poll-view-form .vote-form .form-check,
.poll-view-form .form-check {
  margin-bottom: 5px !important;
}

.poll-view-form .vote-form .form-check-label,
.poll-view-form .form-check-label {
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 16px;
  color: #0B0B0B;
  line-height: 22px;
  user-select: none;
  display: inline-block;
  text-transform: none;
}

.poll-view-form .vote-form .form-check-label::before,
.poll-view-form .form-check-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #636466;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
}

.poll-view-form .vote-form .form-check-label::after,
.poll-view-form .form-check-label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0B0B0B;
  transition: all 0.3s ease;
  opacity: 0;
}

/* When checked - change colors */
.poll .vote-form input[type="radio"]:checked + .form-check-label::before,
.stream__wrapper .poll-view-form input[type="radio"]:checked + .form-check-label::before {
  border-color: #0B0B0B;
  background-color: #eaf3ff;
}

/* Show the inner filled dot */
.poll .vote-form input[type="radio"]:checked + .form-check-label::after,
.stream__wrapper .poll-view-form input[type="radio"]:checked + .form-check-label::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Add hover effect */
.poll-view-form .vote-form .form-check-label:hover::before,
.poll-view-form .form-check-label:hover::before {
  border-color: #0B0B0B;
}

.poll-view-form .vote-form .form-actions {
  margin-top: 15px !important;
}

.poll-view-form .form-actions .btn-primary {
  color: #636466;
  border-radius: 30px;
  border: solid 2px #636466;
  background: none;
  font-size: 14px;
  padding: 5px 16px;
  margin-top: 5px;
  background-color: transparent !important;
}
.poll-view-form .form-actions .btn-primary:hover,
.poll-view-form .form-actions .btn-primary[id^="vote--"]:hover,
.poll-view-form .form-actions .btn-primary[id^="edit-vote--"]:hover,
.poll-view-form .form-actions .btn-primary[id^="vote--"],
.poll-view-form .form-actions .btn-primary[id^="edit-vote--"] {
  color: #1369E9 !important;
  border-color: #1369E9;
}
.poll-view-form .form-actions .btn-primary.is-disabled,
.poll-view-form .form-actions .btn-primary:disabled {
  color: #BDBDBD !important;
  border-color: #BDBDBD !important;
  background-color: #f5f5f5 !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}


/* Ensure radio buttons are visible in all contexts */
.poll .vote-form input[type="radio"],
.stream__wrapper .poll-view-form input[type="radio"] {
    margin-left: 0;
    position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Fix fieldset styling */
.poll-view-form .vote-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.poll-view-form .vote-form .fieldset-wrapper {
    padding: 0 !important;
}

/* Poll State Messages */
.poll-state-message {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

.poll-ended-notice,
.poll-scheduled-notice {
    margin: 15px 0;
    padding: 10px 0;
}

.poll-ended-notice .btn,
.poll-scheduled-notice .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.poll-ended-notice .btn-primary {
    background-color: #000000;
    color: #fff;
    border: 1px solid #000000;
}

.poll-ended-notice .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.poll-scheduled-notice .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.poll-scheduled-notice .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Responsive Design for Poll Cards */
@media (max-width: 767px) {
    .poll-state-message {
        font-size: 13px;
        padding: 10px 15px;
    }

    .poll-ended-notice .btn,
    .poll-scheduled-notice .btn {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility Improvements */
.poll-view-form input[type="radio"]:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.poll-view-form label:focus-within {
    background-color: #f0f0f0;
    padding: 5px;
    margin: 0 -5px 10px -5px;
    border-radius: 3px;
}

/* ARIA labels and accessibility */
.poll-question[role="heading"] {
    font-weight: bold;
}

/* Keyboard navigation focus styles */
.poll-ended-notice .btn:focus,
.poll-scheduled-notice .btn:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

.poll .total {
  text-align: left !important;
  margin-block: 10px;
}


.poll-results-barchart .poll-choice-item .poll-choice-label {
  position: relative;
  padding-left: 25px;
  text-transform: none;
}
.poll-results-barchart .poll-choice-item .poll-choice-label:before {
  content: '';
  width: 16px;
  height: 16px;
  border: solid 2px #0B0B0B;
  display: inline-block;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 2px;
}
.poll-results-barchart .poll-choice-item.poll-choice-active .poll-choice-label:after {
  content: '';
  width: 8px;
  height: 8px;
  position: absolute;
  left: 4px;
  top: 10px;
  background-color: #0B0B0B;
  border-radius: 50%;
  transform: translateY(-50%) scale(1);
}
