﻿/*
  Keep original feedback_module select/submit behavior.
  Only protect it from Bootstrap overrides â€” no redesign.
*/

/* Hide native control; custom UI is the next sibling div */
#bssk-feedback-app input.peer.sr-only,
#bssk-feedback-app input.sr-only.peer,
#bssk-feedback-app input.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

#bssk-feedback-app label:has(> input:checked) {
  border-color: #00336f !important;
}

/* Original rule from their HTML <style> */
#bssk-feedback-app input:checked + div {
  background-color: #00336f !important;
  border-color: #00336f !important;
}

#bssk-feedback-app input:checked + div svg {
  opacity: 1 !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Visitor radio: keep inner white-dot hidden so checked = solid navy circle (original) */
#bssk-feedback-app input[type="radio"]:checked + div > div {
  opacity: 0 !important;
}

/* Pill options: overlay + white text (Very Easy / Yes / No) */
#bssk-feedback-app .peer:checked ~ .absolute.inset-0,
#bssk-feedback-app input.peer:checked ~ div.absolute.inset-0 {
  opacity: 1 !important;
  background-color: #00336f !important;
}

#bssk-feedback-app .peer:checked ~ .peer-checked\:text-white,
#bssk-feedback-app input.peer:checked ~ span.z-10 {
  color: #ffffff !important;
  font-weight: 700 !important;
  position: relative;
  z-index: 10;
}

/* Scale buttons â€” same as their frontend.css */
#bssk-feedback-app .scale-btn.selected {
  background-color: #E46461 !important;
  color: #ffffff !important;
  border-color: #E46461 !important;
  box-shadow: 0 4px 12px rgba(253, 119, 115, 0.35) !important;
  transform: scale(1.05);
}

/* Submit â€” exact original: bg-primary, hover primary-container */
#bssk-feedback-app button[type="submit"] {
  background-color: #00336f !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  text-transform: none !important;
}

#bssk-feedback-app button[type="submit"]:hover {
  background-color: #1e4a8c !important;
  color: #ffffff !important;
}

#bssk-feedback-app button[type="submit"] .material-symbols-outlined {
  color: #ffffff !important;
}
