body.widget-custom * ,
.pa-quote-widget * {
  box-sizing: border-box;
  font-family: "Lato";
}

body.widget-custom,
.pa-quote-widget .widget-custom {
  margin: 0 auto;
  width: 472px;
}

.widget-container {
  width: 100%;
  min-height: auto;
  box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top: 8px solid #17b3e4;
  margin: 0px auto;
  position: relative;
  background-color: #ffffff;
  /* background-color:#d81671; */
}
.widget-body {
  width: 472px;
  margin: 0px auto;
}

.widget-title {
  text-align: center;
  padding: 20px;
}

.widget-main-title {
  font-size: 26px;
  line-height: 32px;
  font-weight: 400;
  padding: 5px 0;
  margin: 0;
}

.widget-sub-title {
  margin: 0;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
}

.widget-body label {
  font-weight: 600;
  padding: 10px 0px;
  display: block;
  line-height: 22px;
}

.widget-form-group {
  display: flex;
}

.widget-label {
  font-weight: 700;
  padding: 10px 0px;
  display: block;
  line-height: 24px;
  font-size: 16px;
  margin: 0;
}

.widget-column-7 {
  position: relative;
  display: inline-block;
  text-align: left;
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
  padding: 0px 15px;
}

.widget-column-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
  text-align: left;
  padding: 0px 15px;
}

.widget-footer {
  background-color: #e5faff;
  height: auto;
  align-items: center;
  padding: 15px 30px;
  max-height: none;
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
  text-align: center;
  vertical-align: middle;
  display: flex;
  justify-content: center;
}

.widget-footer .getQuotes {
  background: #d81671;
  color: #fafafb;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 25px;
  border-radius: 4px;
  line-height: 16px;
  width: 100%;
  max-width: 58.333333%;
  cursor: pointer;
  border: 0;
}

.widget-footer .getQuotes:hover {
  box-shadow: 4px 2px 35px 0 #d81671;
}

.widget-input {
  display: flex;
  min-height: 46px;
}
.h-80 {
  height: 80px;
}
.widget-input-with-error {
  flex-direction: column;
}
.widget-form-control.active-error {
  border-color: #d81671;
}
.widget-input-with-error .error {
  color: #d81671;
  margin-top: 5px;
  font-size: 12px;
  line-height: 14px;
}

.category {
  position: relative;
  display: inline-block;
  width: 50%;
  text-align: center;
  cursor: pointer;
}

.widget-body .option-select__default {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.widget-body .option-select__box {
  border: 1px solid #17b3e4;
  box-shadow: 0 0 0 1px #17b3e4;
  color: #fff;
  background: #17b3e4;
}

.option-select__default:focus-visible + label {
  outline: 2px solid #17b3e4 !important;
}

.widget-body .category .option-select__box {
  cursor: pointer;
  color: #2d2a31;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid #d5d4d6;
  box-shadow: 0 0 0 1px #d5d4d6;
  background: #fff;
  line-height: 24px;
  margin-bottom: 0;
  width: 100%;
  font-weight: 400;
}

.widget-body .category:last-of-type .option-select__box {
  border-left: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.widget-body .category:first-of-type .option-select__box {
  border-left: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.widget-body .category .option-select__default:checked ~ .option-select__box {
  border: 1px solid #17b3e4;
  box-shadow: 0 0 0 1px #17b3e4;
  color: #fff;
  background: #17b3e4;
}

.widget-form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #17b3e4;
  border: 2px solid #d5d4d6;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 4px;
  height: 46px;
  min-height: 46px;
}

.partner-coverage > .category > label {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}

.custom-select {
  position: relative;
}

.custom-select select {
  display: none;
}

.custom-select .select-selected:focus-visible,
.custom-select .select-selected:focus,
.widget-form-control:focus-visible,
.widget-form-control:focus {
  outline: 1px solid #17b3e4;
  border: 1px solid #17b3e4;
}

.select-selected {
  background-color: #fff;
  border: 1px solid #d5d4d6;
  color: #17b3e4;
  height: 46px;
  line-height: 24px;
  font-size: 16px;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 15px;
  right: 10px;
  width: 0;
  height: 0;
  border: solid #d5d4d6;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.select-selected.select-arrow-active:after {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.select-selected {
  padding: 8px 16px;
  border: 1px solid #d5d4d6;
  height: 46px;
  cursor: pointer;
  user-select: none;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  box-shadow: 0 0 0 1px #d5d4d6;
}

.select-items div {
  padding: 8px 16px;
  border: 0 solid #d5d4d6;
  line-height: 24px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  box-shadow: 0 0 0 0 #d5d4d6;
}

.select-items {
  position: absolute;
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: none;
  border: 0px solid #d5d4d6;
  max-height: 115px;
  overflow-y: scroll;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  transform: translate(0px, 0px);
}

.select-hide {
  display: none;
}

.select-items div:hover,
.select-items div:focus,
.same-as-selected {
  background-color: #fafafb;
  color: #17b3e4;
}

/* Focus styles for keyboard accessibility */
.select-selected:focus-visible {
  outline: 2px solid #17b3e4;
  border-color: #17b3e4;
}

.select-items div:focus-visible {
  outline: 2px solid #17b3e4;
  background-color: #fafafb;
  color: #17b3e4;
}

/* css for handelling custom widget for blog pages */
body.widget-custom.widget-type-blog-hero-section,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section {
  width: 482px;
  height: auto;
  max-width: fit-content;
  max-height: fit-content;
}
body.widget-custom.widget-type-blog-hero-section .widget-container,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-container {
  border-top: 0px;
  background-color: #effcff;
  max-height: fit-content;
  min-height: fit-content;
  padding: 0px 9px 98px; /* 9px lef and right padding as by default 15px is getting applied */
  box-shadow: none;
}
body.widget-custom.widget-type-blog-hero-section .widget-container .widget-body,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-container .widget-body {
  width: auto;
}

body.widget-custom.widget-type-blog-hero-section .widget-title,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-title {
  text-align: center;
  padding: 20px;
  font-weight: 700;
  font-family: lato;
  color: #273133;
  line-height: 30px;
}
body.widget-custom.widget-type-blog-hero-section .widget-title .widget-main-title,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-title .widget-main-title {
  font-weight: 700;
}
body.widget-custom.widget-type-blog-hero-section .widget-body .category:last-of-type .option-select__box,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-body .category:last-of-type .option-select__box {
  white-space: nowrap;
}
body.widget-custom.widget-type-blog-hero-section .widget-footer,
.pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-footer {
  border-top: 0px;
  background-color: transparent;
}
@media only screen and (min-width: 1024px) and (max-width: 1239px) {
    .pa-quote-widget .widget-container {
        margin: 40px 0 !important;
    }
}
@media screen and (max-width: 1023px) {
  body.widget-custom,
  .pa-quote-widget .widget-custom {
    margin: 0 auto;
    width: 90%;
  }
	.pa-quote-widget .widget-container{
		width:auto
	}
}
@media screen and (max-width: 767px) {
.pa-quote-widget .widget-container{
    margin:0 !important;
  }
	.widget-body{
		width: auto;
	}
}
@media screen and (max-width: 550px) {
  .widget-title {
    padding: 20px 10px;
  }
  .widget-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .widget-body {
    width: 100%;
  }
  .widget-form-group {
    display: flex;
    flex-wrap: wrap;
  }
  .widget-column-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .widget-column-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .widget-container {
    height: auto;
  }
  .widget-input {
    height: 46px;
  }
  .h-80 {
    height: auto;
  }
  .widget-footer .getQuotes {
    max-width: 100%;
  }
  .widget-main-title {
    font-size: 24px;
    line-height: 30px;
  }
  /* new media Queries for blog widget */
  body.widget-custom.widget-type-blog-hero-section,
  .pa-quote-widget .widget-custom.widget-type-blog-hero-section {
    width: 100%;
    height: auto;
    max-width: fit-content;
    max-height: fit-content;
  }
  body.widget-custom.widget-type-blog-hero-section .widget-container,
  .pa-quote-widget .widget-custom.widget-type-blog-hero-section .widget-container {
    padding-bottom: 10px;
    max-width: 328px;
    max-height: none;
    min-height: auto;
    margin: 0;
    padding-bottom: 98px;
  }
}

.pa-quote-widget .widget-container {
  display: flex;
  flex-direction: column;
  min-height: auto;
  margin: 40px;
  height: auto;
  border-top: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e6eaf0;
}

.pa-quote-widget .widget-title {
  padding: 18px 20px 10px;
}

.pa-quote-widget .widget-main-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #273133;
  padding: 0;
}

.pa-quote-widget .widget-sub-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #7a8794;
  padding: 0;
  margin-top: 4px;
}

.pa-quote-widget .widget-label {
  line-height: 16px;
  padding: 8px 0px 6px;
  color: #273133;
}

.pa-quote-widget .widget-form-control {
  border: 1px solid #d5d4d6;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  height: 46px;
  min-height: 46px;
}

.pa-quote-widget .widget-form-control::placeholder {
  color: #a0a9b5;
  opacity: 1;
}

.pa-quote-widget .widget-footer {
  position: relative;
  height: auto;
  max-height: none;
  background-color: transparent;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 16px 15px 22px;
  display: block;
  width: 100%;
  margin-top: 6px;
}

.pa-quote-widget .widget-footer .getQuotes {
  max-width: none;
  width: 100%;
  border-radius: 4px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}

.pa-quote-widget .widget-body .category .option-select__box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 0;
  box-shadow: none;
  border-left: 1px solid #d5d4d6;
  min-height: 100%;
  height: 100%;
  text-align: center;
}

.pa-quote-widget .select-selected {
  border: 1px solid #d5d4d6;
  box-shadow: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  height: 46px;
}

.pa-quote-widget .select-selected:after {
  right: 14px;
  border-color: #aeb7c3;
}

/* Merge the two radio options into a single split-button UI */
.pa-quote-widget .widget-body .category:first-of-type .option-select__box {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-right: 1px solid #d5d4d6;
}

.pa-quote-widget .widget-body .category:last-of-type .option-select__box {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-left: none;
}

/* Keep both radio options same height and remove extra selected thickness */
.pa-quote-widget .widget-input {
  align-items: stretch;
}

.pa-quote-widget .widget-input > .category {
  display: flex;
  align-items: stretch;
}

.pa-quote-widget .widget-body .category .option-select__default:checked ~ .option-select__box {
  box-shadow: none;
  border-color: #17b3e4;
}

.pa-quote-widget p
{margin-bottom:0px !important;}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    div#custom-widget {
        display: flex;
        justify-content: center;
    }
}

@media (min-width:768px){
.pa-quote-widget .widget-column-7 {
  position: relative;
  display: inline-block;
  text-align: left;
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
  padding: 0px 15px 0px 0px;
}
}
/* --- Widget Rating Section (Horizontal Line & Spacing) --- */
.widget-rating-section {
  border-top: 1px solid #e6eaf0; /* Horizontal line matching your widget border */
  padding: 18px 20px;
  background-color: #ffffff;
}

.rating_wrapper {
  display: flex;
  justify-content: center; 
  align-items: center;     
}

.star_image {
  display: inline-block;
  width: 100px; /* Width for 5 stars (20px each) */
  height: 20px;
  background-image: url('https://blog.policyadvisor.com/wp-content/themes/PolicyAdvisor/images/review_star_magenta.webp');
  background-repeat: repeat-x;
  background-size: 20px 20px;
  margin: 0 10px 0 0; 
}

.rating_text {
  font-size: 15px;
  color: #273133;
  font-weight: 400;
  line-height: 20px;
}