/**
 * Membership Card Styles
 * 
 * Styles for membership category page and single product page
 * 
 * @package Hygge_Child
 */

/* Membership category */
.hygge-membership-header {
  margin-bottom: 48px;
  background: var(--White, #fff);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #f0f0f0;
}

.hygge-membership-title {
  font-size: 32px;
  font-weight: 600;
  color: #395546;
  margin-bottom: 12px;
}

.tax-product_cat .membership-single__title {
  margin-bottom: 40px;
}

.hygge-membership-description {
  color: #5b6a62;
  line-height: 170%;
  margin-bottom: 16px;
}

.hygge-membership-highlight {
  background: #f5f4ec;
  border-radius: 12px;
  padding: 20px;
  font-weight: 500;
  color: #30483c;
}

.hygge-membership-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.membership-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-card {
  border-radius: 24px;
  border: 1px solid var(--Newest, #e1dcd4);
  background: var(--White, #fff);
  overflow: hidden;
}

.hygge-membership-cards-grid .membership-card__description {
  background-color: #ebe6e0;
  padding: 24px 24px 32px;
  height: 100%;
}

.hygge-membership-cards-grid .membership-card__description h3 {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

.hygge-membership-cards-grid .membership-card__description ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 300;
  line-height: 150%; /* 24px */
}

.hygge-membership-cards-grid .membership-card__description ul li {
  padding-left: 28px;
  position: relative;
  margin: 8px 0;
}

.hygge-membership-cards-grid .membership-card__description ul li strong {
  font-weight: 500;
}

.hygge-membership-cards-grid .membership-card__description ul li::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(../images/ic-dacquyen.png);
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 2px;
  left: 0;
}

.membership-card__title {
  color: var(--Black, #111);
  font-size: 24px;
  font-weight: 300;
  line-height: 150%; /* 36px */
  text-transform: uppercase;
  margin-bottom: 8px;
}

.membership-card__benefits {
  color: #4f5c54;
  line-height: 165%;
  margin-bottom: 20px;
}

.tax-product_cat .membership-card__benefits {
  margin-bottom: 8px;
}

.membership-card__benefits p {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 300;
  line-height: 150%; /* 24px */
  margin: 0;
}

.membership-card__benefits ul {
  padding-left: 18px;
}

.membership-card__price {
  font-size: 22px;
  font-weight: 700;
  color: #2d4a3d;
  margin-bottom: 20px;
}

.membership-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.membership-card__actions .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2d4a3d;
  font-weight: 600;
  text-decoration: none;
}

.membership-card__visual {
  padding: 24px;
}

.membership-card__content {
  padding: 24px 24px 32px;
}

.membership-card__image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
}

.membership-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.membership-card__image--placeholder {
  background: linear-gradient(135deg, #e9f0e2, #f2f6ee);
  min-height: 180px;
}

/* Modal */
.membership-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 11, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.membership-modal[aria-hidden="false"] {
  display: flex;
}

.membership-modal__dialog {
  background: #fff;
  border-radius: 16px;
  width: min(800px, 100%);
  position: relative;
  padding: 32px;
  max-height: 90vh;
  overflow: visible; /* keep border radius visible, scroll inside form */
  z-index: 10001; /* Ensure modal is above background but below dropdown */
}

.membership-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent !important;
  cursor: pointer;
  padding: 0 !important;
  color: #37584c;
  box-shadow: none;
}

.membership-modal__content {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.membership-modal__card-title {
  color: var(--Newest, #37584c);
  font-family: "Plus Jakarta Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%; /* 36px */
}

.membership-modal__card-subtitle {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-weight: 300;
  line-height: 150%; /* 24px */
  margin: 0 0 28px;
}

.membership-modal__card-price {
  font-size: 20px;
  color: #1c3e33;
  font-weight: 600;
}

.membership-modal__form {
  flex: 1;
  min-width: 280px;
  width: 100%;
  max-height: calc(90vh - 40px); /* leave space for header & buttons */
  overflow-y: auto;
  overflow-x: visible; /* Allow dropdown to overflow horizontally if needed */
  position: relative; /* Create stacking context */
}

.membership-modal__form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #36483d;
  font-size: 14px;
  line-height: 1.4;
}

.membership-modal__form label .required {
  color: #d32f2f;
  margin-left: 2px;
}

.membership-modal__form input,
.membership-modal__form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d9ded8;
  padding: 12px 16px;
  font-size: 16px;
  background: #fff;
  font-family: inherit;
  color: #111;
  transition: all 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

.membership-modal__form input:hover,
.membership-modal__form textarea:hover {
  border-color: #c0c7c0;
}

.membership-modal__form input:focus,
.membership-modal__form textarea:focus {
  outline: none;
  border-color: #37584c;
  box-shadow: 0 0 0 3px rgba(55, 88, 76, 0.1);
}

.membership-modal__form input::placeholder,
.membership-modal__form textarea::placeholder {
  color: #999;
  opacity: 1;
}

.membership-modal__form textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.5;
}

.membership-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.membership-form .membership-modal__actions {
  margin-top: 32px;
}

.membership-modal__actions .btn {
  color: var(--White, #fff);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 600;
  line-height: 150%; /* 24px */
  padding: 15px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  border-radius: 32px;
  min-width: 160px;
  justify-content: center;
}

.membership-modal__actions .btn-outline {
  background: #fff;
  color: #37584c;
  border: 1px solid #37584c;
}

.membership-modal__actions .btn-outline:hover {
  background: #37584c;
  color: #fff;
}

.membership-modal__actions .btn-primary {
  background: #37584c;
  color: #fff;
}

.membership-modal__actions .btn-primary:hover {
  background: #2d463a;
}

.membership-modal__actions .btn-primary:disabled {
  background: #9ca5a0;
  cursor: not-allowed;
}

/* Membership single */
.hygge-membership-single {
  margin-bottom: 60px;
}

.membership-single__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.membership-single__title {
  font-size: 32px;
  color: #37584c;
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 150%;
  text-transform: uppercase;
}

.membership-single__validity {
  color: var(--Black, #111);
  line-height: 180%;
  margin-bottom: 16px;
}

.membership-single__benefits {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-weight: 300;
  line-height: 180%; /* 28.8px */
  position: relative;
  height: 200px;
  overflow: hidden;
}

.membership-single__benefits.denomination {
  height: auto;
  overflow: visible;
}

.membership-single__benefits.expanded {
  height: auto;
  overflow: visible;
}

.membership-single__benefits.expanded .membership-single__benefits_bg {
  display: none;
}

.membership-single__benefits_bg {
  background: linear-gradient(0deg, #f7f5f3 0%, rgba(247, 245, 243, 0) 100%);
  height: 64px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.membership-single__benefits_btn {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--Newest, #37584c);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 600;
  line-height: 150%; /* 24px */
  cursor: pointer;
}

.membership-single__benefits_btn:hover {
  color: #607458;
}

.membership-single__benefits ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: inside;
}

.membership-single__price {
  color: var(--Newest, #37584c);
  font-family: "Source Serif 4";
  font-size: 32px;
  line-height: 150%; /* 48px */
  border-top: 1px solid #e1dcd4;
  margin-top: 32px;
  padding-top: 24px;
}

.membership-single__cta .btn {
  margin-top: 32px;
  padding: 0 32px;
  border-radius: 32px;
  background: var(--Newest, #37584c);
  color: var(--White, #fff);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 600;
  line-height: 150%; /* 24px */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
}

.membership-single__cta .btn:hover {
  background: #607458;
}

.membership-single__cta .btn.no-services {
  background: #cbcbcb;
}

.membership-single__cta .btn-icon {
  margin-right: 8px;
  font-size: 20px;
  font-weight: 300;
}

.membership-single__visual {
  display: flex;
  justify-content: center;
}

.membership-single__card {
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.membership-single__card.the-qua-tang-theo-dich-vu-nhom-dich-vu,
.membership-single__card.the-qua-tang-theo-menh-gia {
  background: #37584c;
}

.membership-card__visual.the-thanh-vien-bac,
.membership-single__card.the-thanh-vien-bac {
  background: linear-gradient(
    114deg,
    #d9d9d9 1.1%,
    #cfcfcf 25.82%,
    #e4e4e4 38.19%,
    #c7c7c7 47.7%,
    #737373 100%
  );
}

.membership-card__visual.the-thanh-vien-vang,
.membership-single__card.the-thanh-vien-vang {
  background: linear-gradient(
    114deg,
    #f6d59e 1.1%,
    #f7dea7 25.82%,
    #fdf2db 38.19%,
    #f6d899 47.7%,
    #efb64d 100%
  );
}

.membership-card__visual.the-thanh-vien-kim-cuong,
.membership-single__card.the-thanh-vien-kim-cuong {
  background: linear-gradient(
    114deg,
    #b1d7cf 1.1%,
    #ded3c1 25.82%,
    #ecf4f5 38.19%,
    #d8cbb7 47.7%,
    #8dcade 100%
  );
}

.membership-single__card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: none;
}

.membership-single__card-placeholder {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8efe2, #ebf7ff);
}

.membership-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.membership-form .form-group {
  margin-bottom: 16px;
}

.membership-form label {
  display: block;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-weight: 300;
  line-height: 150%; /* 24px */
  margin-bottom: 8px;
}

.membership-form label .required {
  color: #d32f2f;
  margin-left: 2px;
}

.membership-form input,
.membership-form textarea {
  width: 100%;
  border-radius: 8px !important;
  border: 1px solid var(--Border, #e1dcd4);
  background: var(--White, #fff);
  padding: 11px 16px;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
  transition: all 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
  height: auto;
}

.membership-form input:hover,
.membership-form textarea:hover {
  border-color: #c0c7c0;
}

.membership-form input:focus,
.membership-form textarea:focus {
  outline: none !important;
  border-color: #c0c7c0;
  box-shadow: none !important;
}

.membership-form input::placeholder,
.membership-form textarea::placeholder {
  color: #999;
  opacity: 1;
}

.membership-form textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.5;
}

.membership-form__terms-title {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
}

.membership-form__terms-content {
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--Border, #e1dcd4);
  background: var(--White, #fff);
  padding: 12px;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-weight: 300;
  line-height: 180%; /* 28.8px */
  height: 240px;
  overflow-y: scroll;
}

.membership-form__terms-content ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.membership-form__terms-content li {
  margin-bottom: 8px;
}

.membership-form__checkbox {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  line-height: 150%; /* 24px */
}

.membership-form__checkbox input {
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  border-radius: 4px !important;
}

.membership-form__checkbox input[type="checkbox"]:checked {
  background-color: #37584c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.membership-form .required {
  color: #d32f2f;
}

/* Responsive - For screens with small height */
@media (max-height: 900px) {
  .membership-modal {
    padding: 30px 16px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .membership-modal__dialog {
    max-height: calc(100vh - 60px);
    margin: 0 auto !important;
  }

  .membership-modal__form {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .membership-modal {
    padding: 30px 16px;
    align-items: flex-start;
  }

  .membership-modal__dialog {
    padding: 24px;
    max-height: calc(100vh - 60px);
    margin: auto 0;
  }

  .membership-modal__form {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .membership-modal__content {
    flex-direction: column;
  }

  .hygge-membership-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .membership-single__layout {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .membership-single__visual {
    order: -1;
  }

  .membership-form__grid {
    grid-template-columns: 1fr;
  }

  .membership-single__title {
    font-size: 24px;
  }
}

/* Gift Voucher Denomination Styles */
.gift-voucher-denomination__selection {
  margin: 32px 0;
}

.gift-voucher-denomination__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-voucher-denomination__btn {
  border-radius: 4px;
  border: 1px solid var(--White, #fff);
  background: var(--White, #fff);
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 24px;
}

.gift-voucher-denomination__btn:hover,
.gift-voucher-denomination__btn.active {
  border: 1px solid var(--Newest, #37584c);
  background: var(--White, #fff);
  color: var(--Black, #111);
}

.gift-voucher-denomination__radio span {
  font-size: 16px;
  color: #36483d;
}

/* Gift Voucher Preview */
.gift-voucher-preview {
  margin-top: 24px;
}

.gift-voucher-preview__title {
  color: var(--Black, #111);
  font-size: 20px;
  font-weight: 300;
  line-height: 150%; /* 30px */
  margin-bottom: 16px;
}

.gift-voucher-preview__card {
  color: var(--Black, #111);
  font-size: 14px;
  font-weight: 800;
  line-height: 150%; /* 21px */
  position: relative;
}

.gift-voucher-preview__card div {
  position: absolute;
}

.gift-voucher-preview__denomination {
  font-size: 24px;
  font-weight: 700;
  color: #2d4a3d;
  margin-bottom: 16px;
}

.gift-voucher-preview__price {
  top: 38.5%;
  left: 34.24%;
}

.gift-voucher-preview__sender {
  top: 30.5%;
  left: 13.58%;
}

.gift-voucher-preview__recipient {
  top: 30.5%;
  left: 48.1%;
}

.gift-voucher-preview__message {
  top: 53.5%;
  left: 17.4%;
  max-width: 70%;
  max-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 26px;
  max-height: inherit;
}

.gift-voucher-preview__message-denomination {
  line-height: 24px;
}

.gift-voucher-code,
.gift-voucher-preview__code {
  top: 46%;
  left: 24.45%;
}

.gift-voucher-preview__date {
  top: 46%;
  left: 60.87%;
}

.js-service-preview .gift-voucher-preview__recipient,
.js-service-preview .gift-voucher-preview__sender {
  top: 23%;
}

.js-service-preview .gift-voucher-preview__code {
  top: 30.5%;
  left: 17%;
  max-width: 70%;
  max-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 25px;
}

/* Character counter */
.form-char-count {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-weight: 300;
  line-height: 150%; /* 24px */
  opacity: 0.5;
  margin-left: 4px;
}

/* Gift Voucher Service Styles */
.gift-voucher-service__selection {
  margin-bottom: 32px;
}

.add-service-modal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--Newest, #37584c);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 600;
  line-height: 150%; /* 24px */
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  height: 40px;
}

.add-service-modal:hover,
.add-service-modal:focus {
  color: var(--Newest, #37584c);
  background: none;
  box-shadow: none;
  border: none;
  text-decoration: underline;
}

.gift-voucher-denomination__label,
.gift-voucher-service__label {
  display: block;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 300;
  line-height: 40px;
  min-width: 80px;
}

.gift-voucher-denomination__variation,
.gift-voucher-denomination__card-type,
.gift-voucher-service__card-type {
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.gift-voucher-denomination__radio-group,
.gift-voucher-service__radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.gift-voucher-denomination__radio,
.gift-voucher-service__radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--White, #fff);
  background: var(--White, #fff);
  height: 40px;
  padding: 0 24px;
}

.gift-voucher-denomination__radio.active,
.gift-voucher-service__radio.active {
  border: 1px solid var(--Newest, #37584c);
}

.gift-voucher-denomination__radio input[type="radio"],
.gift-voucher-service__radio input[type="radio"] {
  display: none;
}

.gift-voucher-service__radio span {
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
}

.gift-voucher-service__services {
  display: flex;
  gap: 16px;
}

.gift-voucher-service__services > div {
  width: calc(100% - 96px);
}

.gift-voucher-service__empty {
  color: var(--Accents-Orange, #ff8d28);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
  margin: 0;
}

.gift-voucher-service__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: white;
  border: 1px solid #37584c;
  border-radius: 4px;
  margin-bottom: 8px;
  gap: 8px;
}

.gift-voucher-service__item:last-child {
  margin-bottom: 16px;
}

.gift-voucher-service__item-content {
  flex: 1;
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
}

.gift-voucher-service__item-remove {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  box-shadow: none;
}

.gift-voucher-service__item-remove:hover {
  color: #37584c;
  background: none;
}

.gift-voucher-service__item-remove .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Preview services */
.gift-voucher-preview__services {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gift-voucher-preview__service-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  line-height: 1.4;
}

.gift-voucher-preview__service-item:last-child {
  margin-bottom: 0;
}

.js-service-select,
.js-time-select,
.js-service-input {
  border-radius: 8px !important;
  border: 1px solid var(--Border, #e1dcd4);
  background: var(--White, #fff);
  color: var(--Black, #111);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
  width: 100%;
  padding: 12px 16px;
}

/* Service Autocomplete */
.service-autocomplete-wrapper {
  position: relative;
  z-index: 10001; /* High z-index to appear above modal content */
}

.membership-modal__form .form-group {
  position: relative;
  overflow: visible; /* Allow dropdown to overflow form-group */
}

.service-input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease;
  z-index: 10;
  box-shadow: none;
  outline: none;
  background: none !important;
}

.service-input-clear:hover {
  color: #37584c;
}

.service-input-clear svg {
  width: 16px;
  height: 16px;
  display: block;
}

.js-service-input {
  padding-right: 40px !important;
}

.service-autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--White, #fff);
  border: 1px solid var(--Border, #e1dcd4);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--Border, #e1dcd4);
  font-family: "Source Serif 4";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--Black, #111);
  transition: background-color 0.2s ease;
}

.service-autocomplete-item:last-child {
  border-bottom: none;
}

.service-autocomplete-item:hover {
  background-color: #f5f5f5;
}

.service-autocomplete-item.service-autocomplete-no-results {
  color: #999;
  cursor: default;
}

.service-autocomplete-item.service-autocomplete-no-results:hover {
  background-color: transparent;
}

/* Responsive for gift voucher */
@media (max-width: 768px) {
  .gift-voucher-denomination__buttons {
    flex-direction: column;
  }

  .gift-voucher-denomination__btn {
    width: 100%;
  }

  .gift-voucher-denomination__radio-group {
    gap: 8px;
  }

  .gift-voucher-service__radio-group {
    gap: 8px;
  }

  .gift-voucher-service__item {
    gap: 8px;
  }

  .gift-voucher-service__item-remove {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .membership-modal {
    padding: 16px 12px;
  }

  .membership-modal__dialog {
    padding: 20px;
    max-height: calc(100vh - 32px);
  }
}

/* Calendar Picker for Birthday Field */
.membership-form .input-with-icon {
  position: relative;
}

.membership-form .input-with-icon .dashicons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 20px;
  pointer-events: none;
}

.membership-form .input-with-icon input {
  padding-right: 40px;
}

.membership-form .calendar-picker {
  margin-top: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  border: 1px solid #e1dcd4;
  border-radius: 8px;
  padding: 0;
  border-radius: 8px;
  background: var(--White, #fff);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.16);
  max-width: 336px;
  z-index: 10000;
  width: 100%;
}

.membership-form .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e1dcd4;
}

.membership-form .calendar-month {
  color: var(--Black, #222);
  text-align: center;
  font-family: "Plus Jakarta Sans";
  font-size: 16px;
  font-weight: 700;
  line-height: 150%; /* 24px */
}

.membership-form .calendar-nav {
  background-color: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 0;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
}

.membership-form .calendar-nav:first-child {
  background-image: url("../images/ArrowCircleLeft.png");
}

.membership-form .calendar-nav:last-child {
  background-image: url("../images/ArrowCircleRight.png");
}

.membership-form .calendar-nav:hover {
  background-color: transparent;
  color: #37584c;
}

.membership-form .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 16px 16px 0;
}

.membership-form .calendar-weekdays div {
  color: var(--Black, #111);
  text-align: center;
  font-family: "Plus Jakarta Sans";
  font-size: 12px;
  font-weight: 700;
  line-height: 150%; /* 18px */
  border-radius: 4px;
  background: var(--Border, #e1dcd4);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membership-form .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 16px 24px;
}

.membership-form .calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--Black, #111);
  text-align: center;
  font-family: "Plus Jakarta Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%; /* 24px */
  transition: all 0.2s;
  border-radius: 4px;
  background: #e8ece1;
  height: 40px;
  width: 40px;
}

.membership-form .calendar-day.empty {
  background: transparent !important;
  cursor: default;
}

.membership-form .calendar-day.today {
  font-weight: 600;
  border: 2px solid #37584c;
}

.membership-form .calendar-day:hover,
.membership-form .calendar-day.selected {
  background: #37584c;
  color: #fff;
  font-weight: 600;
}

.membership-form .calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  color: #999;
  background: #f5f5f5;
}
