#account-page-header {
  .t-overlay-text {
    padding: 2px;
    width: auto;
  }
  .t-overlay-content {
    text-align: center;
  }

  .t-overlay-text .t-entry-title {
    @media screen and (max-width: 991px) {
      font-size: 22px;
    }
    @media screen and (max-width: 767px) {
      font-size: 16px;
    }
  }
}

body.mepr-custom-account-page {
  .menu-secondary {
    display: none;
  }
}

body.mepr-custom-account-page #mepr-account-nav {
  position: sticky;
  top: 0;
}

body.mepr-custom-account-page .post-body .row-container .row-container > .row-parent {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
  @media screen and (min-width: 992px) {
    flex-direction: row;
  }

  .mp_wrapper.account-sidebar {
    display: flex;

    @media screen and (max-width: 991px) {
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      margin-bottom: 36px;
      padding: 0 !important;
    }

    @media screen and (min-width: 992px) {
      min-width: 170px;
    }

    @media screen and (min-width: 1280px) {
      min-width: 230px;
    }

    .account-menu-mobile {
      height: 60px;
      width: 100%;

      .mepr-nav-item {
        cursor: pointer;
      }

      a {
        pointer-events: none;
        background: #124e8c;
        color: #fff !important;
      }

      &:after {
        position: relative;
        font-family: "uncodeicon" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        color: white;
        position: absolute;
        right: 15px;
        content: "\f078";
        transition: transform 0.3s ease;
        width: 32px;
        height: 32px;
        font-size: 12px;
        top: 14px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.3);
        line-height: 28px;
        cursor: pointer;
      }

      &.open:after {
        transform: rotate(180deg);
      }

      @media screen and (min-width: 992px) {
        display: none;
      }
    }

    #mepr-account-nav {
      max-height: 0;
      overflow: hidden;
      position: absolute;
      z-index: 1;
      background: #fff;
      margin-top: 60px;
      width: 100% !important;
      transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

      @media screen and (min-width: 992px) {
        margin-top: 0;
        max-height: 100%;
        position: relative;
        box-shadow: none;
      }

      &.show-nav {
        max-height: 100%;
      }

      .mepr-nav-item {
        display: block;
        overflow: hidden;
        padding-right: 0;

        @media screen and (min-width: 992px) {
          margin-bottom: 18px;
        }

        &.mepr-active-nav-tab {
          @media screen and (max-width: 991px) {
            display: none;
          }
        }
      }
    }

    .mepr-nav-item a {
      display: flex;
      padding: 18px 14px;
      position: relative;
      text-decoration: none;
      color: rgba(0, 0, 0, 0.7);

      &:before {
        position: relative;
        font-family: "uncodeicon" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 1.3rem;
        margin-right: 10px;
        text-align: center;
        width: 1.25em;
      }

      &:hover {
        color: #0763bc;
      }

      @media screen and (min-width: 768px) {
        align-items: left;
        justify-content: left;
      }
    }

    .mepr-home a:before,
    .mepr-mytrends a:before {
      content: "\e680";
    }

    .mepr-mydetails a:before {
      content: "\f007";
    }

    .mepr-payments a:before {
      content: "\f09d";
    }

    .mepr-subscriptions a:before {
      content: "\e862";
    }

    .mepr-courses a:before {
      content: "\e821";
    }

    .mepr-saved-images a:before {
      content: "\f097";
    }

    .mepr-saved-content a:before {
      content: "\f097";
    }

    .mepr-logout a:before,
    #mepr-account-logout:before {
      content: "\e902";
    }

    .mepr-nav-item.--active a,
    .mepr-nav-item.mepr-active-nav-tab a {
      background: #134c8b;
      color: #fff;
      font-weight: normal;
    }
  }

  /* Content region */
  .mytrends-wrapper,
  .mydetails-wrapper,
  .mepr-mydetails-wrapper,
  .mepr-courses-wrapper,
  .mepr-manage_sub_accounts-wrapper,
  .mepr-my-notes-wrapper,
  .mepr-my-resources-wrapper,
  .mepr-saved-content-wrapper {
    @media screen and (min-width: 768px) {
      padding-left: 18px;
      flex-grow: 1;
    }

    @media screen and (min-width: 1280px) {
      padding-left: 36px;
    }
  }

  table {
    border: none;

    thead {
      border-bottom: 1px solid #eaeaea;
    }

    td,
    th {
      border: none;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    tr {
      border: none;
    }

    th {
      font-size: 16px;
    }

    td {
      font-weight: normal;
    }
  }
}

body.mepr-custom-account-page {
  .post-content > .row-container > .row.double-top-padding.double-bottom-padding {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  &.mepr-mytrends .post-content > .row-container > .row.double-top-padding.double-bottom-padding {
    @media screen and (max-width: 567px) {
      padding-top: 108px;
    }
  }

  &.mepr-mydetails,
  &.mepr-courses {
    .post-content > .row-container > .row.double-top-padding.double-bottom-padding {
      @media screen and (max-width: 567px) {
        padding-top: 50px;
      }
    }
  }
}

#mepr_signup_form .mepr_price {
  display: none;
}

.mepr-unauthorized-page,
.mepr-auth {
  .main-container .row-container {
    .double-top-padding,
    .double-bottom-padding {
      padding: 0 !important;
    }
  }
}

.mepr-unauthorized-page .mp_wrapper {
  margin-left: auto !important;
  margin-right: auto !important;
}

.mytrends-mydashboard {
  .icon-box {
    background: #124e8c;
    padding-top: 10px;
    padding-bottom: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;

    .icon-box-icon {
      line-height: 1 !important;
    }

    .icon-box-heading > * {
      color: #fff;
    }
  }

  div > .icon-box:first-child {
    padding-left: 1rem !important;
    padding-right: 2.8rem !important;
  }

  .btn-container {
    text-align: center;
  }

  .mytrends-mydash-col {
    .uncont {
      padding-bottom: 1rem;
      display: flex;
      flex-direction: column;

      .uncode_text_column {
        margin-bottom: 1rem;
      }

      .btn-container {
        margin-top: auto;
        margin-top: auto !important;
      }
    }
  }

  & > .row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .mytrends-mydash-explore-content .uncont {
    #explore-save-content-card {
      margin-top: auto !important;
      & > .row,
      & > .row .wpb_column {
        margin: 0 !important;
      }
      .uncont {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        padding-bottom: 0;
      }

      .btn-container a {
        width: 100px;
        padding-left: 10px !important;
        padding-right: 10px !important;
      }

      .btn-container:first-of-type {
        width: 50%;
        text-align: right;
        padding-right: 0.5rem;
      }

      .btn-container:nth-of-type(2) {
        padding-left: 0.5rem;
        width: 50%;
        text-align: left;
      }
    }

    /* .btn-container:first-of-type {
      width: 50%;
      text-align: right;
      padding-right: 0.5rem;
    }

    .btn-container:nth-of-type(2) {
      margin-left: auto;
      text-align: left;
      padding-left: 0.5rem;
      width: 50%;
      margin-top: -38px !important;
    } */
  }
}

.mepr-custom-account-page {
  .uncode-content-wrapper {
    display: grid;
    gap: 18px;
    align-items: stretch;

    &.col-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    &.col-3 {
      @media screen and (min-width: 560px) {
        grid-template-columns: repeat(2, 1fr);
      }

      @media screen and (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    &.col-4 {
      grid-template-columns: repeat(1, 1fr);

      @media screen and (min-width: 320px) {
        grid-template-columns: repeat(2, 1fr);
      }

      @media screen and (min-width: 768px) {
        grid-template-columns: repeat(4, 1fr);
      }
    }
  }
}

/* Content Grid Style in Account pages */

/* Related Content in myTrends */
.related-courses-wrapper,
.related-content-wrapper,
/* Guide page */
.mepr-courses-wrapper {
  .related-content-heading {
    margin-bottom: 27px;

    .related-content-interest-list span {
      display: inline;
      font-weight: 400;
    }
  }

  /* CONTENT GRID */
  .uncode-content-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
  }

  .uncode-post-box {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .uncode-post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .uncode-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
  }

  .uncode-post-thumbnail img:hover {
    transform: scale(1.05);
  }

  .uncode-post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 18px;
  }

  .uncode-post-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
  }

  .uncode-post-title a {
    color: #303133 !important;
    font-weight: 300;
    text-decoration: none;
  }

  .uncode-post-title a:hover {
    color: #0a64bc !important;
  }

  .uncode-post-excerpt {
    font-size: 14px;
    font-family: "Open Sans", "Open Sans";
    font-weight: 400;
    color: #000000;
    flex-grow: 1;
    margin-top: 9px;
    margin-bottom: 9px;
  }

  .uncode-read-more {
    color: #000000 !important;
    font-weight: 600 !important;
    font-family: "Open Sans", "Open Sans" !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12px;
    word-break: break-word;
  }

  .uncode-read-more:hover {
    color: #0a64bc !important;
  }

  .post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
  }

  .post-category-tag {
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    text-decoration: none;
  }

  .post-category-tag:hover {
    background: #e0e0e0;
  }

  .post-categories {
    left: 0;
    top: 0;
    position: absolute;
    z-index: 4;
    padding: 18px;

    a {
      margin: 0px 5px 9px 0px;
      margin: 0px 5px 9px 0px;
      color: #ffffff !important;
      border: 1px solid;
      border-radius: 2px;
      font-size: 11px !important;
      padding: 2px 5px 2px 5px;
      display: inline-block;
      text-transform: uppercase;
      font-weight: 600;
      line-height: 1.5;
    }
  }
}

.uncode-content-item {
  .mpcs-progress-ring {
    /* background-image: linear-gradient(144deg, transparent 50%, rgb(204, 204, 204) 50%),
      linear-gradient(90deg, rgb(204, 204, 204) 50%, transparent 50%); */
    --value: 0;
    --percentage: calc(var(--value) * 1%);
    background: conic-gradient(#188ecf var(--percentage), transparent 0);
    position: relative;
    text-align: center;
    border-radius: 100%;
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;

    .inner {
      position: relative;
      text-align: center;
      border-radius: 100%;
      background-color: #0a64bc;
      width: 45px;
      height: 45px;
      display: flex;
      justify-content: center;
      align-items: center;

      div {
        position: relative;
        color: #333;
        font-size: 9px;
        color: #fff;
        font-size: 16px;
      }
    }
  }

  .mpcs-card-footer {
    display: flex;
    justify-content: space-between;

    .mpcs-card-author {
      display: flex;
      align-items: center;

      img {
        margin-right: 9px;
      }
    }

    .course-start-link {
      border: solid 1px #0a64bc;
      color: #0a64bc;
      border-radius: 8px;
      padding: 0 8px;
      font-size: 12px;
      font-weight: 500;
      text-align: center;
      margin-left: 9px;

      &.has-started {
        background-color: #0a64bc;
        color: #fff;
      }
    }

    .course-progress {
      color: #0a64bc;
      font-weight: 600;
      font-size: 12px;
      margin-left: 9px;
      line-height: 22px;
    }
  }
}

.featured-courses-wrapper {
  .uncode-post-title {
    margin-top: 9px;
    text-align: center;
    font-weight: 300;
  }

  .uncode-post-thumbnail {
    padding-top: 133.33%;
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 2px;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      min-height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 0.3s ease-in-out;

      &:hover {
        transform: scale(1.05);
      }
    }
  }
}

.account-content-header,
.account-content-wrapper.mytrends-wrapper .vc_custom_heading_wrap {
  border-bottom: 1px solid rgb(234, 234, 234);
  padding-bottom: 12px;
  margin-bottom: 36px;
}

.account-content-header {
  .on-pageheader {
    position: relative;
    /* right: 0; */
    /* position: absolute; */
    /* top: 0; */
    &.icon-question-mark {
      &:before {
        top: 10px;
        left: 11px;
        background: rgba(255, 255, 255, 0.2);
        width: 18px;
        height: 18px;
        font-size: 12px;
      }
    }

    background: #124e8c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 18px 11px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(18, 78, 140, 0.2);
    white-space: nowrap;

    &:hover,
    &:active {
      background: #0f4177;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(18, 78, 140, 0.3);
    }
  }

  .heading-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    & > * {
      margin: 0;
    }
  }

  @media screen and (max-width: 992px) {
    .icon-question-mark.on-pageheader {
      position: absolute;
      top: 0;
      right: 60px;

      background: none !important;
      padding: 0 !important;

      &:before {
        top: 14px;
        left: auto;
        right: 3px;
        width: 32px;
        height: 32px;
        font-size: 14px;
      }

      .help-text {
        display: none;
      }

      &:before:hover {
        background: rgba(255, 255, 255, 0.3);
      }
    }
  }
}

/* Guides page */
.mepr-custom-account-page .mpcs-course-list {
  .uncode-grid-wrapper:not(:last-child) {
    margin-bottom: 45px;
  }
}

.account-content-wrapper {
  .btn-container-wrapper {
    margin-top: auto;
    text-align: center;
    padding-top: 18px;
  }
}

.mydetails-wrapper {
  form.mepr-account-form,
  .mepr-account-change-password,
  .mepr-account-home-social-connect {
    background: #f9f9f9;
    padding: 36px;
    border-radius: 8px;
    margin-bottom: 36px;
  }

  .mepr-account-change-password {
    display: block;
  }
}

body.mepr-custom-account-page .mepr-manage_sub_accounts-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  h4 {
    font-family: Poppins;
    font-size: 14px;
  }

  .mpca-fat-bottom {
    padding-bottom: 9px;
    margin-top: 0;
    font-family: Poppins;
    font-weight: normal;
  }

  .mepr-account-table {
    th {
      font-size: 12px !important;
      padding: 10px !important;
    }
  }
}

.mp-form-field-description {
  font-size: 12px;
  margin-top: 4px;
  color: #414042;
}

/* Info Button Styling */
.icon-question-mark {
  &:before {
    content: "?";
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .icon-box-icon {
    vertical-align: middle;

    .fa {
      font-size: 1.3rem;
      margin-top: 5px !important;
    }
  }

  .icon-box-content {
    padding-left: 8px;
  }
}

.icon-question-mark:hover:after {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

.popup-steps-list {
  ul {
    list-style: none !important;
    padding-left: 0 !important;

    li {
      background: #f8f9fc;
      margin-bottom: 12px;
      padding: 18px;
      border-radius: 8px;
      border-left: 4px solid #008ed3;
      font-size: 16px;
      line-height: 1.5;
    }
  }
}

.mytrends-popup-content {
  .col-lg-12 {
    padding: 0 !important;
  }

  .vc_row:first-child .uncol {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .vc_row:last-child .uncol {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

.uncode-popup {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.85;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.mfp-hide {
  display: none !important;
}

.mytrends-popup-wrapper {
  position: absolute;
  width: 0;
  height: 0;
}

#footer-mobile > .row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.mp_wrapper .mp-form-row {
  margin-bottom: 18px;
  label {
    margin-bottom: 0;
  }

  .mepr-form-input {
    margin-top: 4px;
    list-style: none !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: white;
  }
}

/* MemberPress Radio Button Styles */

/* Container for radio options */
.mp-form-row .acf-radio-list,
.mp-form-row .acf-input ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0 !important;
}

/* Individual radio option */
.mp-form-row .acf-radio-list li,
.mp-form-row .acf-input ul li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Radio button label */
.mp-form-row .acf-radio-list label,
.mp-form-row .acf-input ul li label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  background: #fff;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
  position: relative;
  user-select: none;
}

/* Radio button input */
.mp-form-row .acf-radio-list input[type="radio"],
.mp-form-row .acf-input ul li input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  background: #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Radio button checked state */
.mp-form-row .acf-radio-list input[type="radio"]:checked,
.mp-form-row .acf-input ul li input[type="radio"]:checked {
  border-color: #0073aa;
  background: #0073aa;
}

/* Radio button inner dot */
.mp-form-row .acf-radio-list input[type="radio"]:checked::after,
.mp-form-row .acf-input ul li input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Label hover state */
.mp-form-row .acf-radio-list label:hover,
.mp-form-row .acf-input ul li label:hover {
  border-color: #0073aa;
  background: #f8f9fa;
}

/* Label checked state */
.mp-form-row .acf-radio-list input[type="radio"]:checked + span,
.mp-form-row .acf-radio-list label:has(input[type="radio"]:checked),
.mp-form-row .acf-input ul li label:has(input[type="radio"]:checked) {
  border-color: #0073aa;
  background: #e7f3ff;
  color: #0073aa;
  font-weight: 500;
}

/* Focus state for accessibility */
.mp-form-row .acf-radio-list input[type="radio"]:focus,
.mp-form-row .acf-input ul li input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

/* Disabled state */
.mp-form-row .acf-radio-list input[type="radio"]:disabled,
.mp-form-row .acf-input ul li input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mp-form-row .acf-radio-list label:has(input[type="radio"]:disabled),
.mp-form-row .acf-input ul li label:has(input[type="radio"]:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Compact horizontal layout option */
.mp-form-row .acf-radio-list.acf-hl,
.mp-form-row .acf-input ul.acf-hl {
  flex-direction: row;
  flex-wrap: wrap;
}

.mp-form-row .acf-radio-list.acf-hl label,
.mp-form-row .acf-input ul.acf-hl li label {
  width: auto;
  min-width: 120px;
  max-width: none;
  text-align: center;
}

/* Alternative card-style radio buttons */
.mp-form-row .radio-cards .acf-radio-list label,
.mp-form-row .radio-cards .acf-input ul li label {
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mp-form-row .radio-cards .acf-radio-list label:hover,
.mp-form-row .radio-cards .acf-input ul li label:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.mp-form-row .radio-cards .acf-radio-list input[type="radio"],
.mp-form-row .radio-cards .acf-input ul li input[type="radio"] {
  display: none; /* Hide radio button in card style */
}

.mp-form-row .radio-cards .acf-radio-list label:has(input[type="radio"]:checked),
.mp-form-row .radio-cards .acf-input ul li label:has(input[type="radio"]:checked) {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .mp-form-row .acf-radio-list label,
  .mp-form-row .acf-input ul li label {
    max-width: 100%;
  }

  .mp-form-row .acf-radio-list.acf-hl,
  .mp-form-row .acf-input ul.acf-hl {
    flex-direction: column;
  }
}

/* Integration with existing MemberPress styles */
.mepr-account-form .mp-form-row .acf-radio-list,
.mepr-account-form .mp-form-row .acf-input ul {
  margin-top: 8px;
}

/* Error state */
.mp-form-row.mepr-field-error .acf-radio-list label,
.mp-form-row.mepr-field-error .acf-input ul li label {
  border-color: #d63638;
}

.mp-form-row.mepr-field-error .acf-radio-list input[type="radio"]:checked,
.mp-form-row.mepr-field-error .acf-input ul li input[type="radio"]:checked {
  border-color: #d63638;
  background: #d63638;
}

.mp-form-row input[type="checkbox"]:checked {
  background: #061530;
  border-color: #061530;
}

.mp_wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-left: 6px;
  position: relative;
  transition: all 0.2s;
  display: inline-block !important;
  margin-right: 4px;
}

.mp_wrapper input[type="checkbox"]:checked {
  background: #061530;
  border-color: #061530;
}

.mp_wrapper input[type="checkbox"]:checked:after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 1px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.acf-checkbox-list.mepr-checkboxes-field {
  padding-left: 5px !important;
  padding-top: 3px !important;
}

.mp-form-row.user_gender .acf-radio-list {
  border: none;
  background: none;
}
