/* Referral Mobile Styles */

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fix scrolling behavior across different Android devices */
@media screen and (max-width: 768px) {
  html, body {
    height: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .referral-mobile-container {
    min-height: 100dvh;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    height: -webkit-fill-available;
  }
  
  /* Prevent viewport jumping on input focus by ensuring 16px font size */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS and some Android */
  }
  
  /* Specific styling for referral form inputs */
  .referral-mobile-form input,
  .referral-mobile-form select,
  .referral-mobile-form textarea {
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Phone input specific styling */
  .referral-mobile-phone input[type="tel"] {
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Date input specific styling */
  .referral-mobile-date input {
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Country search input */
  .referral-country-search input {
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Google Places input */
  #googlePlacesAutocomplete {
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Cancel reason input */
  .referral-cancel-reason-input {
    font-size: 16px !important; /* Prevent mobile zoom */
  }

  .phone-country-code{
    font-size: 16px !important; /* Prevent mobile zoom */
  }
  
  /* Feedback input */
  .referral-feedback-input {
    font-size: 16px !important; /* Prevent mobile zoom */
  }

  
  /* Specific fix for Android keyboard behavior */
  .referral-mobile-form {
    padding-bottom: 20px;
  }
  
  /* Prevent scroll to top on input focus */
  input:focus, textarea:focus, select:focus {
    transform: translateZ(0);
    -webkit-appearance: none;
  }
}

/* Hide all browser validation messages */
.referral-mobile-container input:invalid,
.referral-mobile-container input:valid,
.referral-mobile-container input:required {
  box-shadow: none !important;
}

/* Completely suppress browser validation messages */
.referral-mobile-container input:invalid::-webkit-validation-bubble-message,
.referral-mobile-container input:invalid::-webkit-validation-bubble-arrow,
.referral-mobile-container input:invalid::-webkit-validation-bubble,
.referral-mobile-container input:invalid::-webkit-validation-bubble-arrow-clipper,
.referral-mobile-container input:invalid::-webkit-validation-bubble-arrow-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide validation messages for all form elements */
.referral-mobile-container input:invalid::before,
.referral-mobile-container input:invalid::after,
.referral-mobile-container input:valid::before,
.referral-mobile-container input:valid::after,
.referral-mobile-container select:invalid::after,
.referral-mobile-container select:invalid::after,
.referral-mobile-container textarea:invalid::before,
.referral-mobile-container textarea:invalid::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}



.referral-mobile-container input:invalid:focus,
.referral-mobile-container input:valid:focus {
  box-shadow: none !important;
}

/* Hide validation tooltips and messages */
.referral-mobile-container input::-webkit-validation-bubble-message,
.referral-mobile-container input::-webkit-validation-bubble-arrow,
.referral-mobile-container input::-webkit-validation-bubble {
  display: none !important;
}

/* Hide any validation messages that might appear */
.referral-mobile-container input:invalid::before,
.referral-mobile-container input:invalid::after,
.referral-mobile-container input:valid::before,
.referral-mobile-container input:valid::after {
  display: none !important;
  content: none !important;
}

/* Specific rules for Google Places input */
#googlePlacesAutocomplete:invalid,
#googlePlacesAutocomplete:valid,
#googlePlacesAutocomplete:required {
  box-shadow: none !important;
}

#googlePlacesAutocomplete:invalid:focus,
#googlePlacesAutocomplete:valid:focus {
  box-shadow: none !important;
}

/* Hide validation messages in modals */
.referral-modal input:invalid,
.referral-modal input:valid,
.referral-modal input:required {
  box-shadow: none !important;
}

.referral-modal input:invalid:focus,
.referral-modal input:valid:focus {
  box-shadow: none !important;
}

.referral-mobile-container {
  background: #fff;
  min-height: 100dvh;
  position: relative;
  top: 0px;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-header {
  background: linear-gradient(95.54deg, #C51978 20.25%, #572B41 95.73%);
  padding: 24px 0 16px 0;
  display: flex;
  align-items: center;
  position: fixed;
  left: 0px;
  top:0px;
  width: 100%;
}

/* Referral Navbar Background */
.mg-navbar.referral-bg {
  background: linear-gradient(95.54deg, #C51978 20.25%, #572B41 95.73%) !important;
}

/* Alternative more specific selector */
.navbar.mg-navbar.referral-bg {
  background: linear-gradient(95.54deg, #C51978 20.25%, #572B41 95.73%) !important;
}

.referral-back-arrow {
  color: #fff;
  font-size: 1.5em;
  margin-left: 16px;
  cursor: pointer;
}

.referral-mobile-logo {
  margin: 0;
  margin-left: 20px;
}

.referral-mobile-logo-circle {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-weight: bold;
  font-size: 1.3em;
  text-align: center;
  line-height: 34px;
  background: transparent;
}

.referral-mobile-title {
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 24px 24px;
  opacity: 0.8;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-title-form {
  margin: 32px 0 24px 0px;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 16px;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-btn {
  background: #fff;
  color: #444444;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 18px 16px;
  font-size: 1.1em;
  text-align: left;
  box-shadow: 0px 0px 1px 0px #00000040;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  border: 2px solid #F6F6F6;
}

.referral-mobile-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.referral-mobile-arrow {
  color: #9A0056;
  font-size: 1.5em;
  font-weight: bold;
}

.referral-mobile-form {
  padding: 24px 16px 0 16px;
  position: relative;
  top: -9px;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-form label {
  color: #222;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 4px;
  margin-top: 18px;
  display: block;
  font-family: 'Roboto', sans-serif;
}

.label-referal-form {
  color: #727272 !important;
  font-size: 1.1em !important;
  font-weight: 400 !important;
  margin-bottom: 8px !important;
  margin-top: 20px !important;
  display: block;
  letter-spacing: 0.5px;
  line-height: 1.2em;
  vertical-align: middle;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-form input,
.referral-mobile-form select,
.referral-mobile-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9c9c9;
  font-size: 1.1em;
  padding: 8px 0;
  margin-bottom: 4px;
  background: transparent;
  color: #222;
  outline: none;
  resize: none;
  line-height: 1.2em;
  vertical-align: middle;
  transition: border-bottom-color 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.referral-mobile-form input:focus,
.referral-mobile-form select:focus,
.referral-mobile-form textarea:focus {
  outline: none;
}


select {
  width: 100%;
  border: none;
  border: 1.5px solid #ccc;
  font-size: 1.1em;
  padding: 8px 0;
  margin-bottom: 4px;
  background: transparent;
  color: #222;
  outline: none;
  resize: none;
  line-height: 1.2em;
  vertical-align: middle;
  cursor: pointer;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select:focus {
  outline: none; /* Removes default blue glow */
}

select:hover{
  cursor: pointer;
  background-color: #ffffff !important;
}


.referral-mobile-phone {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  gap: 12px;
  min-height: 1.2em;
}

.phone-country-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 1.2em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* .phone-country-selector:hover {
  background-color: #f0f8ff;
} */

.phone-flag {
  font-size: 1.2em;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 1.2em;
}

.phone-dropdown {
  color: #666;
  font-size: 0.8em;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

/* .phone-dropdown:hover {
  color: #007bff;
} */

.phone-country-code {
  color: #333;
  font-weight: 500;
  font-size: 1em;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 1.2em;
}

.referral-mobile-phone input[type="tel"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  color: #333;
  padding: 0;
  min-width: 0;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: middle;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.referral-country-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* .referral-country-selector:hover {
  background-color: #f0f8ff;
  color: #007bff;
} */

.referral-country-selector i {
  color: #9A0056;
  font-size: 0.8em;
  margin-left: 4px;
}

.referral-flag {
  font-size: 1.3em;
}

.referral-country-code {
  color: #9A0056;
  font-weight: bold;
  font-size: 1.1em;
}

.country-dropdown-wrapper {
  position: relative;
  display: inline-block;
  width: 110px; /* Adjust as needed to match selector width */
  vertical-align: top;
}

.referral-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  width: max-content;
}

.referral-country-search {
  padding: 12px;
  border-bottom: none;
}

.referral-country-search input {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1em;
}

.referral-country-list {
  max-height: 250px;
  overflow-y: auto;
}

.referral-country-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  outline: none;
}

/* .referral-country-item:hover {
  background-color: #f0f8ff;
  color: #007bff;
} */

/* .referral-country-item:focus {
  outline: none;
  background-color: #f0f8ff;
  color: #007bff;
} */

.referral-country-item .referral-flag {
  font-size: 1.2em;
  min-width: 24px;
}

.referral-country-name {
  flex: 1;
  color: #222;
  font-size: 1em;
}

.referral-country-item .referral-country-code {
  color: #666;
  font-size: 0.9em;
  font-weight: normal;
}

.referral-mobile-date {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 1.2em;
}

.referral-mobile-date img {
  color: #727272;
  font-size: 1.2em;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.referral-mobile-date input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  color: #333;
  padding: 0;
  min-width: 0;
  cursor: pointer;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: middle;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.referral-mobile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-bottom: 24px;
  font-family: 'Roboto', sans-serif;
}

.referral-cancel {
  background: none;
  color: #9A0056;
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  font-family: 'Roboto', sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.referral-next {
  background: #9A0056;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 32px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.referral-next:disabled,
.referral-next.button-disabled {
  background: #ccc !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.referral-next:disabled:hover,
.referral-next.button-disabled:hover {
  background: #ccc !important;
  color: #999 !important;
  transform: none !important;
}

/* Prevent flickering in modals */
.referral-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Roboto', sans-serif;
}
.referral-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  overflow: visible;
  font-family: 'Roboto', sans-serif;
}
.referral-modal-title {
  font-weight: 500;
  color: #000000;
  margin-bottom: 16px;
  font-size: 17px;
  font-family: 'Roboto', sans-serif;
}
.referral-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 30px;
  font-family: 'Roboto', sans-serif;
}
.referral-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
}

.referral-time-grid button {
  background: #fff;
  border: 1px solid #ebebeb;
  color: #000000;
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 400;
  transition: background 0.2s ease;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
}

.referral-time-grid button.selected {
  color: #000000;
  border: 1px solid #9A0056;
  background: #FFFCF9;
}

.referral-history-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  margin: 32px 0 0 24px;
  font-size: 1.1em;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}
.referral-history-tabs > div {
  color: #888;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.referral-history-tabs > div.active {
  color: #9A0056;
  border-bottom: 2px solid #9A0056;
  /* Ensure the border only extends under the text content */
  display: inline-block;
  width: auto;
}
.referral-history-tab-underline {
  position: relative;
  height: 2px;
  background: transparent;
  margin: 0 0 24px 0;
}
.referral-history-tab-underline > div {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #9A0056;
  transition: left 0.3s, width 0.3s;
}
.referral-history-content {
  margin: 0 0 0 0;
  padding: 0 0 32px 0;
  position: relative;
}

/* Scroll Refresh Styles */
.scroll-refresh-container {
  position: fixed;
  top: 80px; /* Below the tabs - will be updated dynamically */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  min-width: 120px;
  height: 50px;
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 20px rgba(154, 0, 86, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(154, 0, 86, 0.1);
}

/* Scroll Refresh Circular Loader */
.scroll-refresh-circle-loader {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.scroll-refresh-spinner-ring {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #9A0056;
  border-radius: 50%;
  transition: transform 0.1s ease-out;
}

/* Apply spin animation only when refreshing (not when manually pulling) */
.scroll-refresh-container:not([ng-style]) .scroll-refresh-spinner-ring {
  animation: scrollRefreshSpin 1s linear infinite;
}

@keyframes scrollRefreshSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.scroll-refresh-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #9A0056;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.scroll-refresh-text {
  font-size: 14px;
  color: #9A0056;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}
.referral-history-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 24px 16px 0 16px;
  padding: 0 0 18px 0;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}
.referral-history-card-header {
  text-align: right;
  padding: 16px 24px 0 24px;
  font-family: 'Roboto', sans-serif;
}
.referral-history-share {
  color: #000000;
  font-weight: 500;
  font-style: Medium;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}
.referral-history-card-body {
  padding: 0 24px;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0px;
  color: #000000;
  font-family: 'Roboto', sans-serif;
}
.referral-history-comment-column {
  flex-direction: column;
  align-items: baseline !important;
} 
.referral-history-card-body > div {
  margin: 12px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  gap: 12px;
}
.referral-history-call {
  color: #9A0056;
  margin-left: 8px;
  margin-right: auto;
  font-size: 1.1em;
  font-family: 'Roboto', sans-serif;
}

.phone-call-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.referral-history-comment {
  color: #000000;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0px;
  margin: 8px 0 0 0 !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #C9C9C9;
  font-family: 'Roboto', sans-serif;
}

.referral-history-comment> div{
  align-items: start;
  flex-direction: column;
}

.referral-history-cancel-reason {
  border-bottom: none !important;
}

.referral-history-comment-date {
  color: #00000080;
  font-weight: 400;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0%;
  margin: 4px 0 0 0;
  margin-top: 0px !important;
  font-family: 'Roboto', sans-serif;
}
.referral-history-view-comments {
  color: #000000;
  font-weight: 600;
  font-style: Medium;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-offset: 0%;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  cursor: pointer;
  display: block;
  margin: 8px 0 0 0;
  font-family: 'Roboto', sans-serif;
}

.referral-history-comments-label {
  color: #000000;
  font-weight: 600;
  font-style: Medium;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-top:0px;
  font-family: 'Roboto', sans-serif;
}

.referral-history-cancel-reason-label {
  color: #000000;
  font-weight: 600;
  font-style: Medium;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-top: 0px;
  margin-bottom: 8px;
  font-family: 'Roboto', sans-serif;
  border: none;
  padding: 0;
}

.referral-history-cancel-btn {
  width: 134px;
  margin: 15px auto 0px auto;
  background: #9A0056;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  display: block;
  font-family: 'Roboto', sans-serif;
}
.referral-history-feedback {
  display: block;
  text-align: center;
  color: #9A0056;
  font-size: 15px;
  font-weight: 500px;
  font-weight: bold;
  margin: 24px 0 0 0;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.referral-history-feedback-section {
  padding: 16px 24px 0 0px;
  margin-top: 16px;
  display: block !important;
  border-bottom: 1px solid #C9C9C9;
  font-family: 'Roboto', sans-serif;
}

.referral-history-feedback-label {
  color: #000000;
  font-family: Roboto;
  font-weight: 600;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0%;
  text-decoration-style: solid;
  margin-bottom: 8px;
  font-family: 'Roboto', sans-serif;
}

.referral-history-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.referral-history-star {
  font-size: 1.2em;
  color: #9A0056;
} 

.referral-history-feedback-text {
  font-size: 13px;
  color: #000000;
  line-height: 1.4;
  padding: 8px 0px;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
}

/* Calendar Picker Styles */
.calendar-picker {
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  /* Prevent layout shifts */
  min-height: 350px;
  padding: 0 16px;
  contain: layout style;
  border: 1px solid #F3F3F3;
  border-radius: 4px;
  padding: 8px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2px;
  border-bottom: 2px solid #f3f3f3;
}
.calendar-month-label {
  font-weight: bold;
  font-size: 1.1em;
  color: #7b2342;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  margin-right: 12px;
}

.calendar-nav {
  background: none;
  border: none;
  color: #000000;
  font-size: 1em;
  cursor: pointer;
  padding: 0px;
  border-radius: 6px;
  transition: background 0.2s;
}
.calendar-nav:hover {
  background: #f5f5f5;
}
/* Calendar Grid - Anti-glitch CSS */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  width: 100%;
  border-collapse: collapse;
  /* Fixed height for exactly 5 weeks (7 headers + 28 days = 35 cells) */
  height: 280px;
  max-height: 280px;
  /* Ensure grid layout is applied immediately - exactly 5 rows */
  grid-template-rows: repeat(6, 1fr);
  /* Prevent layout shifts and glitches */
  contain: layout style paint;
  will-change: auto;
  transform: translateZ(0); /* Force hardware acceleration */
  backface-visibility: hidden;
  perspective: 1000px;
  /* Prevent overflow */
  overflow: hidden;
  /* Force exactly 35 cells */
  grid-auto-rows: 1fr;
  grid-auto-flow: row;
  border-bottom: 2px solid #f3f3f3;
}

.calendar-day,
.calendar-day-label {
  text-align: center;
  width: 100%;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 4px;
  font-size: 1em;
  box-sizing: border-box;
  border: none;
  background: none;
  position: relative;
  /* Prevent glitches during transitions */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
  contain: layout style;
}

.calendar-day-label {
  color: #000000;
  font-size: 10px;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  height: 30px;
  line-height: 30px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.calendar-day {
  color: #333;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: normal;
  margin: 1px;
  border: 2px solid transparent;
  min-height: 40px;
  user-select: none;
  /* Prevent rendering glitches */
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style paint;
  /* Ensure consistent sizing */
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  z-index: 1;
}

.calendar-day:hover {
  background: #f5e1ee;
  color: #9A0056;
  transform: translateZ(0) scale(1.02);
}

/* Hover states for range elements */
.calendar-day.calendar-range-start:hover,
.calendar-day.calendar-range-end:hover {
  background: #7A0044 !important;
  transform: translateZ(0) scale(1.02);
}

.calendar-day.calendar-in-range:hover {
  background: #D4A8C7 !important;
  color: #9A0056 !important;
  transform: translateZ(0) scale(1.02);
}

.calendar-selected {
  background: #9A0056 !important;
  color: #fff !important;
  font-weight: bold;
  border: 2px solid #9A0056;
  transform: translateZ(0);
}

.calendar-today {
  background: #f5e1ee;
  color: #9A0056;
  font-weight: bold;
  transform: translateZ(0);
}

.calendar-other-month {
  color: #ccc !important;
  cursor: pointer;
  pointer-events: auto;
  transform: translateZ(0);
}

.calendar-other-month:hover {
  background: #f5f5f5 !important;
  color: #999 !important;
  transform: translateZ(0) scale(1.02);
}

/* Loading state to prevent glitches */
.calendar-loading {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Smooth transitions for month changes */
.calendar-day {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateZ(0) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

/* Calendar Picker Overlay Styles */
.calendar-picker-overlay {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  z-index: 1100;
  padding: 8px 0 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 220px;
}
.calendar-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 90%;
  margin-bottom: 0;
}
.calendar-picker-cell {
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  color: #7b2342;
  background: #f5f5f5;
  transition: background 0.2s, color 0.2s;
}
.calendar-picker-cell:hover {
  background: #9A0056;
  color: #fff;
}
.calendar-year-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-top: 0;
  width: 100%;
}
.calendar-year-nav button {
  background: #f5f5f5;
  border: none;
  color: #9A0056;
  font-size: 1.1em;
  border-radius: 6px;
  padding: 4px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.calendar-year-nav button:hover {
  background: #9A0056;
  color: #fff;
}
.calendar-header {
  position: relative;
}
.calendar-month-label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.calendar-month-select, .calendar-year-select {
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.calendar-month-select:hover, .calendar-year-select:hover {
  background: #f5e1ee;
}
.calendar-modal-content, .referral-modal-content {
  position: relative;
} 

.calendar-bordered {
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: none;
  padding: 12px 8px 0 8px;
  background: #fff;
  position: relative;
}
.calendar-divider {
  height: 1px;
  background: #f2f2f2;
  margin: 8px 0 0 0;
  width: 100%;
}
.calendar-divider-bottom {
  margin-top: 4px;
} 

.calendar-year-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 8px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fixed height to prevent layout shifts */
  height: 320px;
  max-height: 320px;
  overflow: hidden;
  /* Prevent layout shifts */
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  width: 90%;
  max-width: 320px;
  margin: 0 auto;
  /* Fixed height to prevent layout shifts - exactly 3 rows */
  height: 280px;
  max-height: 280px;
  /* Ensure grid layout is applied immediately - exactly 3 rows */
  grid-template-rows: repeat(3, 1fr);
  /* Prevent layout shifts */
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Force immediate layout */
  position: relative;
  z-index: 1;
  /* Prevent scrolling and overflow */
  overflow: hidden;
  /* Force exactly 12 cells */
  grid-auto-rows: 1fr;
  grid-auto-flow: row;
}
.calendar-year-cell {
  padding: 10px 0;
  text-align: center;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.1em;
  color: #7b2342;
  background: #f5f5f5;
  transition: background 0.2s, color 0.2s;
  /* Fixed size to prevent layout shifts */
  height: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevent layout shifts */
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Force immediate layout */
  position: relative;
  z-index: 1;
}
.calendar-year-cell:hover {
  background: #9A0056;
  color: #fff;
}
.calendar-year-selected {
  background: #9A0056 !important;
  color: #fff !important;
  font-weight: bold;
}
.calendar-year-dropdown-icon {
  font-size: 0.9em;
  margin-left: 4px;
  color: #7b2342;
  vertical-align: middle;
} 

.calendar-month-disabled {
  color: #bbb !important;
  cursor: default !important;
  pointer-events: none;
}
.calendar-nav-disabled {
  color: #eee !important;
  cursor: default !important;
  pointer-events: none;
  background: none !important;
} 

/* Cancellation Reason Dropdown Styling */
.referral-reason-dropdown {
  position: relative;
  cursor: pointer;
}

.referral-reason-dropdown-options div:last-child {
  border-bottom: none;
}

/* .referral-reason-dropdown-options div:hover {
  background: #f8f9fa !important;
  color: #9A0056;
} */

/* Add Reason For Cancelation Modal */
.referral-reason-modal-content {
  min-width: 329px;
  max-width: 340px;
  padding: 28px 18px 18px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: #fff;
  margin: 0 auto;
}
.referral-reason-title {
  color: #000000;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 18px;
}
.referral-reason-input-wrapper {
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}
.referral-cancel-reason-input {
  width: 100%;
  border: none;
  border-radius: 0;
  outline: none;
  font-size: 1.05em;
  background: transparent;
  color: #222;
  resize: none;
  padding: 0 0 4px 0;
  min-height: 48px;
  box-sizing: border-box;
}
.referral-cancel-reason-input::placeholder {
  color: #b88fa3;
  font-size: 12px;
  opacity: 1;
  font-weight: 400;
}
.referral-reason-underline {
  width: 100%;
  height: 1.5px;
  background: #e0d7e0;
  position: absolute;
  left: 0;
  bottom: 0;
}
.referral-reason-actions {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 18px;
  gap: 16px;
}
.referral-reason-cancel {
  background: none;
  color: #9A0056;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 12px;
}
.referral-reason-add {
  background: #9A0056;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  width: 134px;
  height: 38px
}
.referral-reason-divider {
  width: 100%;
  height: 1.5px;
  background: #e0d7e0;
  margin: 18px 0 0 0;
}


.referral-feedback-modal-content {
  min-width: 329px;
  max-width: 340px;
  padding: 28px 18px 18px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: #fff;
  margin: 0 auto;
}
.referral-feedback-title {
  text-align: center;
  color: #7b2342;
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 18px;
}
.referral-feedback-label {
  color: #b88fa3;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
  text-align: left;
}
.referral-feedback-stars {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.referral-feedback-star {
  font-size: 2em;
  color: #9A0056;
  cursor: pointer;
  transition: color 0.2s;
}
.referral-feedback-star.selected,
.referral-feedback-star:hover,
.referral-feedback-star.selected ~ .referral-feedback-star {
  color: #9A0056;
}
.referral-feedback-input-wrapper {
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}
.referral-feedback-input {
  width: 100%;
  border: none;
  border-radius: 0;
  outline: none;
  font-size: 1.05em;
  background: transparent;
  color: #222;
  resize: none;
  padding: 0 0 4px 0;
  min-height: 36px;
  box-sizing: border-box;
}
.referral-feedback-input::placeholder {
  color: #B88FA3;
  font-size: 12px;
  font-weight: 400;
  opacity: 1;
}
.referral-feedback-underline {
  width: 100%;
  height: 1.5px;
  background: #e0d7e0;
  position: absolute;
  left: 0;
  bottom: 0;
}
.referral-feedback-divider {
  width: 100%;
  height: 1.5px;
  background: #e0d7e0;
  margin: 18px 0 0 0;
}
.referral-feedback-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 16px;
}
.referral-feedback-cancel {
  background: none;
  color: #9A0056;
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 12px;
}
.referral-feedback-add {
  background: #9A0056;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
}


/* Google Places Results Styling */
.google-places-result {
  background: #f7f3f2;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.2s;
  border-left: 4px solid #9A0056;
}

.google-places-result:hover {
  background: #e9e1df;
}

.google-places-result .google-logo {
  background: #4285f4;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  margin-right: 12px;
  border: 1.5px solid #4285f4;
}

.google-places-label {
  font-weight: bold;
  color: #7b2342;
  margin-bottom: 8px;
  font-size: 0.95em;
}

.local-stores-label {
  font-weight: bold;
  color: #7b2342;
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* Google Places Autocomplete Styling */
#googlePlacesAutocomplete {
  font-size: 1em;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}





.google-places-input {
  margin-bottom: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.google-places-input:focus {
  outline: none;
}

/* Search input container for dropdown positioning */
.search-input-container {
  position: relative;
  z-index: 1001;
}

/* Loading spinner styling */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Google Places results container */
.google-places-results-container {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #e0e0e0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 8px 0;
}

.google-places-result {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: flex-start;
  margin: 0 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.google-places-result:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.google-places-result:hover {
  background: #f8f9fa;
}

.google-places-result .fa-map-marker {
  color: #9A0056;
  font-size: 18px;
  margin-right: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  background: #f3e7ed;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #9A0056;
}

.google-places-result > div {
  flex: 1;
  min-width: 0;
}

.google-places-result > div > div:first-child {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.google-places-result > div > div:nth-child(2) {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
  margin-bottom: 2px;
}

.google-places-result > div > div:nth-child(3) {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  text-transform: capitalize;
}

/* Instructions box styling */
.google-places-instructions {
  margin-top: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9em;
  color: #666;
  border-left: 3px solid #9A0056;
}

.google-places-instructions i {
  color: #9A0056;
  margin-right: 8px;
}

/* No results message styling */
.google-places-no-results {
  margin-top: 16px;
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}

/* Google Maps API Error Message */
.google-places-error {
  margin-top: 12px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  color: #856404;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

/* API Store Results Styling */
.api-store-result {
  background: #f5f5f0;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s;
  border: 1px solid #e8e8e0;
  position: relative;
}

.api-store-result:hover {
  background: #f0f0e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.api-store-result.selected {
  background: #e8f5e8;
  border-color: #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.api-store-result.selected::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
}

/* Loading stores indicator */
.loading-stores {
  text-align: center;
  padding: 20px;
  color: #666;
}

.loading-stores .fa-spinner {
  color: #9A0056;
  font-size: 1.5em;
  margin-bottom: 8px;
}

/* Nearby stores section */
.nearby-stores-section {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.nearby-stores-label {
  font-weight: bold;
  color: #7b2342;
  margin-bottom: 12px;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.nearby-stores-label::before {
  content: "🏪";
  margin-right: 8px;
  font-size: 1.1em;
}

/* Year Picker Styling */
.year-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.year-cell {
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  border: 1px solid transparent;
  background: #f8f9fa;
}

.year-cell:hover {
  background: #e9ecef;
  border-color: #9A0056;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(180, 0, 90, 0.1);
}

.year-cell.year-selected {
  background: #9A0056;
  color: white;
  border-color: #9A0056;
}

.year-cell.year-current {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.year-cell.year-current.year-selected {
  background: #9A0056;
  color: white;
  border-color: #9A0056;
}

.calendar-nav-disabled {
  color: #ccc !important;
  cursor: not-allowed !important;
}

.calendar-nav-disabled:hover {
  color: #ccc !important;
}

/* Year range display */
.year-range-display {
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
  text-align: center;
  flex: 1;
}

/* Year picker modal specific styling */
.year-picker-modal .referral-modal-content {
  max-width: 326px;
  min-width: 326px;
  padding: 20px;
  /* Fixed height to prevent layout shifts */
  height: 480px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Prevent layout shifts */
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.year-picker-modal .year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0;
  flex: 1;
  align-content: center;
  /* Fixed height to prevent layout shifts - exactly 3 rows */
  height: 280px;
  max-height: 280px;
  /* Ensure grid layout is applied immediately - exactly 3 rows */
  grid-template-rows: repeat(4, 1fr);
  /* Prevent layout shifts */
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Prevent scrolling and overflow */
  overflow: hidden;
  /* Force exactly 12 cells */
  grid-auto-rows: 1fr;
  grid-auto-flow: row;
}

.year-cell {
  padding: 16px 8px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1em;
  font-weight: 500;
  color: #666;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.year-cell:hover {
  background: #f5e1ee;
  color: #9A0056;
  border-color: #9A0056;
  transform: translateZ(0) scale(1.02);
}

.year-cell.year-selected {
  background: #9A0056;
  color: #fff;
  border-color: #9A0056;
  font-weight: bold;
  transform: translateZ(0);
}

.year-cell.year-current {
  background: #f5e1ee;
  color: #9A0056;
  border-color: #9A0056;
  font-weight: bold;
  transform: translateZ(0);
}

.year-cell.year-current.year-selected {
  background: #9A0056;
  color: #fff;
  border-color: #9A0056;
  transform: translateZ(0);
}

.year-picker-modal {
  z-index: 10002;
}

/* Year Selector Styling */
.year-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  user-select: none;
  span{
    font-weight: 600; 
    color: #000;
    font-size: 10px;
  }
}

.year-selector:hover {
  background-color: #f5f5f5;
}

.year-selector:active {
  background-color: #e0e0e0;
}

.year-selector i {
  transition: transform 0.2s;
}

.year-selector:hover i {
  transform: translateY(1px);
} 

/* Location Suggestions Dropdown */
.location-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

/* Location Suggestions Dropdown - Above Search Button */
.location-suggestions-dropdown-above {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
  margin-top: 8px;
}

.location-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95em;
  color: #333;
  transition: background 0.2s ease;
  line-height: 1.4;
}

.location-suggestion-item:last-child {
  border-bottom: none;
}

.location-suggestion-item:hover {
  background: #f8f9fa;
}

.location-suggestion-item:active {
  background: #f5e1ee;
}

/* Search Input Container - Updated for dropdown positioning */
.search-input-container {
  position: relative;
  margin-bottom: 16px;
}

/* Google Places Input - Updated styling */
.google-places-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px !important;
  font-size: 1em;
  color: #333;
  background: #fff !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-height: 48px;
  display: block;
  margin-bottom: 16px !important;
}

/* When location is selected, make placeholder more prominent */
.google-places-input:not(:focus)::placeholder {
  color: #9A0056;
  font-weight: 500;
}

/* Ensure the input field is always visible with proper styling */
#googlePlacesAutocomplete {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px !important;
  font-size: 1em;
  color: #333;
  background: #fff !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-height: 48px;
  display: block;
  margin-bottom: 16px !important;
}

#googlePlacesAutocomplete::placeholder {
  color: #666;
  font-style: normal;
  font-weight: 400;
}

/* Override general form input styles for Google Places input */
.referral-modal .google-places-input,
.referral-modal #googlePlacesAutocomplete {
  border-radius: 0px !important;
  background: #fff !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  min-height: 48px !important;
}

/* Disabled button state */
.button-disabled {
  background: #ccc !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.button-disabled:hover {
  background: #ccc !important;
  color: #999 !important;
  transform: none !important;
} 

.referral-reason-dropdown-wrapper-margin {
  margin-bottom: 20px;
}

.referral-reason-label {
  font-size: 12px;
  color: #727272;
  margin-bottom: 8px;
  font-weight: 400;
}

.referral-reason-dropdown-relative {
  position: relative;
}

.referral-reason-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
}

.referral-reason-dropdown-text {
  color: #171717;
  font-weight: 400;
  font-size: 14px;
}

.referral-reason-dropdown-icon {
  color: #9B9B9B;
  font-size: 0.8em;
}

.referral-reason-dropdown-options-absolute {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.referral-reason-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.referral-star-container {
  display: inline-block;
  position: relative;
  margin-right: 2px;
}

.referral-star-container-large {
  display: inline-block;
  position: relative;
  margin-right: 4px;
}

.referral-star-icon {
  font-size: 1.2em;
  color: #9A0056;
}

.referral-star-icon-large {
  font-size: 2em;
  color: #9A0056;
  cursor: pointer;
}

.referral-star-half {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.2em;
  color: #9A0056;
}

.referral-star-half-large {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2em;
  color: #9A0056;
  cursor: pointer;
}

/* Share Modal Styles */
.share-modal-high-z {
  z-index: 10000;
}

.share-modal-container {
  max-width: 360px;
  margin: 40px auto;
  border-radius: 24px;
  background: linear-gradient(48.29deg, #C51978 27.96%, #572B41 69.51%);
  padding: 3.5px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  overflow: hidden;
}

.share-modal-content {
  background: #9A0056;
  border-radius: 20px;
  overflow: hidden;
  color: #000000;
  position: relative;
}

.share-modal-header-image {
  width: 100%;
  display: block;
  border-radius: 20px 20px 0 0;
}

.share-modal-card-content {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 18px 18px 8px 18px;
}

.share-modal-greeting {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 12px;
  color: #000000;
  text-transform: capitalize;
}

.share-modal-description {
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 12px;
}

.share-modal-details-title {
  margin-bottom: 10px;
  font-size: 12px;
}

.share-modal-details-list {
  margin-bottom: 14px;
  padding-left: 18px;
  font-size: 12px;
}

.share-modal-location-item {
  margin-bottom: 0;
  font-size: 12px;
}

.share-modal-bold-text {
  font-weight: bold;
}

.share-modal-directions-btn {
  margin-bottom: 16px;
  width: 110px;
  background: #fff;
  border: 1.5px solid #CCCCCC;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  justify-content: center;
  box-shadow: none;
  padding: 6px;
}

.share-modal-direction-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  color: #000000;
  margin: 0px;
}

.share-modal-direction-text {
  color: #000000;
  font-weight: 400;
  font-size: 12px;
}

.share-modal-footer-text {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 400;
}

.share-modal-team-info {
  color: #000000;
  margin-bottom: 2px;
  font-size: 12px;
}

.share-modal-website {
  color: #000000;
  font-size: 0.98em;
  margin-bottom: 2px;
  font-size: 12px;
}

.share-modal-contact {
  color: #000000;
  font-size: 0.98em;
  margin-bottom: 12px;
  font-size: 12px;
}

.share-modal-share-btn {
  width: 50%;
  margin: 8px auto 0 auto;
  background: #9A0056;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1.1em;
  border: none;
  padding: 10px 0;
  display: block;
}

.share-modal-close-btn {
  position: absolute;
  top: 10px;
  right: 0px;
  background: transparent;
  border: none;
  border-radius: 50%;
  
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s ease;
  font-size: 18px;
  font-weight: 100;
  color: #fff;
  line-height: 1;
  -webkit-tap-highlight-color: transparent; /* remove blue tap highlight on iOS */
}

/* Purpose dropdown loading state */
select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

select:disabled option {
  color: #999;
} 

/* Hide any year cells beyond the first 12 */
.year-grid .year-cell:nth-child(n+13),
.calendar-year-grid .calendar-year-cell:nth-child(n+13) {
  /* display: none !important; */
} 

/* Hide any calendar cells beyond the first 35 */
.calendar-grid .calendar-day-label:nth-child(n+8),
.calendar-grid .calendar-day:nth-child(n+36) {
  /* display: none !important; */
} 

/* Scrollable Store Results Container */
.store-results-scrollable {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #d8d8d8 #f0f0f0;
}

.store-results-scrollable::-webkit-scrollbar {
  width: 8px;
}

.store-results-scrollable::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.store-results-scrollable::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 4px;
}

.store-results-scrollable::-webkit-scrollbar-thumb:hover {
  background: #d8d8d8;
}

/* Location Suggestions Scrollable */
.location-suggestions-scrollable {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #d8d8d8 #f0f0f0;
}

.location-suggestions-scrollable::-webkit-scrollbar {
  width: 8px;
}

.location-suggestions-scrollable::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.location-suggestions-scrollable::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 4px;
}

.location-suggestions-scrollable::-webkit-scrollbar-thumb:hover {
  background: #d8d8d8;
} 

/* Empty State Styles */
.referral-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  text-align: center;
  min-height: 30vh;
  margin-top: 20px;
  border: 1px solid #F1F1F1;
  box-shadow: 0px 1px 2px 0px #00000040;
  margin-left: 24px;
  border-radius: 12px;
  margin-right: 24px;
}

.referral-empty-state-image {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.referral-empty-state-img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.referral-empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 0px 24px 40px 24px;
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
}

.referral-empty-state-title {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  color: #5E5E5E;
  margin: 0;
  margin-bottom: 8px;
  border-radius: 12px;
}

.referral-empty-state-message {
  font-weight: 400;
  font-size: 13px;
  color: #5E5E5E;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .referral-empty-state {
    min-height: 30vh;
    padding: 30px 16px;
    margin-top: 16px;
  }
  
  .referral-empty-state-img {
    max-width: 150px;
    max-height: 150px;
  }
  
  .referral-empty-state-content {
    padding: 24px 20px;
    max-width: 320px;
  }

  
  .referral-empty-state-message {
    font-size: 12px;
  }
} 

.referral-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background: #fff;
  z-index: 10000;
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0px;
  top: 0px;
}

.referral-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #9A0056;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .referral-loading-container {
    min-height: 50vh;
  }
  
  .referral-loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }
} 

.referral-nav-arrow {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	cursor: pointer;
	vertical-align: middle;
	transition: opacity 0.2s ease;
  margin: 0px;
  margin-left: 20px;;
}

.referral-nav-arrow:hover {
	opacity: 0.7;
}

.navbar-header {
	display: flex;
	align-items: center;
}

.navbar-header .image-logo {
	margin-left: 5px;
} 


.pac-container {
  z-index: 9999 !important;
  background-color: white;  
  display: none;
}

.pac-item {
  font-size: 14px;
  padding: 5px;
}

.referral-history-feedback-date, .referral-history-comment-date{
  font-weight: 400;
  font-size: 10px;
  color:#00000080;
}

.calendar-arrow{
  width: 8px;
  height: 7px;
  margin-left: 4px;
  pointer-events: none;
  object-fit: contain;
}

.month-selector{
  color: #000000;
  font-size: 10px;
  font-weight: 600;
}

/* Custom Error Popup Modal */
.custom-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Roboto', sans-serif;
}

.custom-error-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-error-modal-header {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.3;
}

.custom-error-modal-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.4;
}

.custom-error-modal-button {
  background: #9A0056;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Roboto', sans-serif;
  min-width: 100px;
}

.custom-error-modal-button:hover {
  background: #8a0047;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154, 0, 86, 0.3);
}

.custom-error-modal-button:active {
  transform: translateY(0);
}

.custom-error-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-error-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.custom-error-modal-close:active {
  background: #e0e0e0;
}

/* Error icon styling */
.custom-error-modal-icon {
  font-size: 48px;
  color: #d32f2f;
  margin-bottom: 16px;
  display: block;
}

/* Responsive design */
@media (max-width: 480px) {
  .custom-error-modal-content {
    margin: 20px;
    padding: 20px;
    max-width: calc(100% - 40px);
  }
  
  .custom-error-modal-header {
    font-size: 16px;
  }
  
  .custom-error-modal-subtext {
    font-size: 13px;
  }
  
  .custom-error-modal-button {
    padding: 10px 24px;
    font-size: 14px;
  }
}

.custom-select {
  position: relative;
  font-family: 'Roboto', sans-serif;
  width: 100%;
}

.custom-select select {
  display: none;
}

.select-selected {
  background-color: #9A0056;
  color: #ffffff;
  padding: 12px 0px;
  border: none;
  cursor: pointer;
  user-select: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1em;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 1px solid #c9c9c9 !important;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 50%;
  right: 16px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #ffffff transparent transparent transparent;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

/* Point the arrow upwards when the select box is open */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #ffffff transparent;
  top: 40%;
}

/* Style the items (options), including the selected item */
.select-items div,
.select-selected {
  color: #ffffff;
  padding: 12px 16px;
  border: 1px solid #C9C9C9;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  background-color: #9A0056;
  transition: all 0.2s ease;
}

/* Style items (options) */
.select-items {
  position: absolute;
  background-color: #9A0056;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

/* Hide the items when the select box is closed */
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

/* Selected item styling */
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  font-weight: 500;
}

/* Custom scrollbar for dropdown */
.select-items::-webkit-scrollbar {
  width: 8px !important;
}

.select-items::-webkit-scrollbar-track {
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  border: 1px solid #e0e0e0 !important;
}

.select-items::-webkit-scrollbar-thumb {
  background: #9A0056 !important;
  border-radius: 4px !important;
  border: 1px solid #d8d8d8 !important;
}

.select-items::-webkit-scrollbar-thumb:hover {
  background: #d8d8d8 !important;
}

/* Firefox scrollbar styling */
.select-items {
  scrollbar-width: thin !important;
  scrollbar-color: #d8d8d8 #f5f5f5 !important;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 50%;
  right: 16px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #ffffff transparent transparent transparent;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.select-selected.select-arrow-active:after {
  border-color: transparent transparent #ffffff transparent;
  top: 40%;
}

.select-selected:before {
  position: absolute;
  content: "\f078";
  font-family: 'FontAwesome';
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.select-selected.select-arrow-active:before {
  transform: translateY(-50%) rotate(180deg);
}

.select-selected:after {
  display: none;
}

.custom-select {
  position: relative;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  margin-bottom: 16px;
}

.custom-select select {
  display: none !important;
}

.select-selected {
  background-color: #ffffff !important;
  color: #000000 !important;
  padding: 12px 0px !important;
  border: none !important;
  cursor: pointer !important;
  user-select: none !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 1.1em !important;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.select-selected:hover {
  background-color: #fff !important;
}

.select-selected:before {
  position: absolute !important;
  content: "\f078" !important; 
  font-family: 'FontAwesome' !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  color: #9b9b9b !important;
  font-size: 14px !important;
  transition: transform 0.2s ease !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.select-selected.select-arrow-active:before {
  transform: translateY(-50%) rotate(180deg) !important;
}

.select-selected:after {
  display: none !important;
}

.select-items div,
.select-selected {
  color: #000000 !important;
  border: 1px solid #c9c9c9 !important;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent !important;
  cursor: pointer !important;
  user-select: none !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 1em !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.select-items div {
  color: #000000 !important;
  padding: 8px 10px !important;
}

.select-items {
  position: absolute !important;
  background-color: #ffffff !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  margin-top: 4px !important;
  width: 100% !important;
}

/* Hide the items when the select box is closed */
.select-hide {
  display: none !important;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1) !important;
  color: #000000 !important;
}

/* Selected item styling */
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Custom scrollbar for dropdown */
.select-items::-webkit-scrollbar {
  width: 8px !important;
}

.select-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
}

.select-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px !important;
}

.select-items::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure all form selects are hidden and custom dropdowns are shown */
.referral-mobile-form .custom-select,
.form-control .custom-select,
.custom-select {
  display: block !important;
  width: 100% !important;
}

/* Override any existing border styles */
.referral-mobile-form select
{
  background: transparent !important;
}

/* Force custom dropdown to be visible */
.select-selected {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Select placeholder styling */
.select-selected:empty::before,
.select-selected:not(.has-value) {
  color: #727272 !important;
}

.select-selected:empty::before {
  content: "Select option";
  color: #727272 !important;
}

/* Ensure placeholder styling is applied */
.select-selected[data-placeholder] {
  color: #727272 !important;
}

.select-selected[data-placeholder]:not(.has-value) {
  color: #222222 !important;
}

.select-items::-webkit-scrollbar-thumb {
  background-color: #bcbcbc;
  border-radius: 4px;
}

.select-items::-webkit-scrollbar-thumb:hover {
  background-color: #bcbcbc;
}

.share-modal-close-btn-icon{
  position: relative;
  top: -1px;
  left: -1px;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

/* Appointment Success Popup Styles */
.appointment-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.appointment-success-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.appointment-success-modal-icon {
  margin-bottom: 16px;
  display: block;
}

.appointment-success-modal-header {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  font-family: 'Roboto', sans-serif;
}

.appointment-success-modal-subtext {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: 'Roboto', sans-serif;
}

.appointment-success-modal-button {
  background: #9A0056;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Roboto', sans-serif;
}

.appointment-success-modal-button:hover {
  background: #9A0056;
}

.appointment-success-modal-button:active {
  background: #9A0056;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.referral-time-grid button.disabled {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  border-color: #dee2e6 !important;
}

.referral-time-grid button.disabled:hover {
  background-color: #e9ecef !important;
  transform: none !important;
  box-shadow: none !important;
}

.referral-time-grid button.disabled:active {
  transform: none !important;
}

.calendar-day.disabled {
  color: #adb5bd !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.calendar-day.disabled:hover {
  background-color: #f8f9fa !important;
  transform: none !important;
}

.calendar-day.disabled.calendar-today {
  background-color: #f8f9fa !important;
  color: #adb5bd !important;
}

.calendar-day.disabled.calendar-other-month {
  color: #adb5bd !important;
}

/* Enhanced scrollbar styling for dropdowns - overriding previous styles */
.select-items::-webkit-scrollbar {
  width: 8px !important;
}

.select-items::-webkit-scrollbar-track {
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  border: 1px solid #e0e0e0 !important;
}

.select-items::-webkit-scrollbar-thumb {
  background: #d8d8d8 !important;
  border-radius: 4px !important;
  border: 1px solid #d8d8d8 !important;
}

.select-items::-webkit-scrollbar-thumb:hover {
  background: #d8d8d8 !important;
}

/* Firefox scrollbar styling */
.select-items {
  scrollbar-width: thin !important;
  scrollbar-color: #d8d8d8 #f5f5f5 !important;
}
.referral-history-share-icon{
  width: 20px;
  height: 18px;
  position: relative;
  top: -2px;
}

/* Filter Button Styles */
.filter-button-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.filter-button {
  background: #ffffff;
  color: #333333;
  border: 1px solid #A1A1A1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  min-width: 80px;
  justify-content: center;
}

.filter-button:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.filter-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  height: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Red dot indicator for active filters */
.filter-red-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  border: 1px solid #ffffff;
  z-index: 1001;
}

/* Edit date range icon styles */
.edit-date-range-icon:hover {
  color: #7A0045 !important;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.filter-line {
  display: block;
  height: 2px;
  background-color: #373737;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.filter-line-1 {
  width: 16px;
}

.filter-line-2 {
  width: 12px;
}

.filter-line-3 {
  width: 8px;
}

.filter-text {
  font-size: 14px;
  color: #373737;
  font-weight: 400;
}

/* Filter Page Styles */
.filter-page {
  position: fixed;
  top: 80px; /* Below fixed header */
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  background: #f8f9fa;
  z-index: 2000;
  overflow-y: auto;
}

.filter-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 2001;
}

.filter-page-back {
  background: none;
  border: none;
  font-size: 18px;
  color: #9A0056;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-page-back:hover {
  background: rgba(154, 0, 86, 0.1);
}

.filter-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.filter-page-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-page-close:hover {
  color: #333;
}

.filter-page-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px); /* Account for header height */
}

.filter-options {
  padding: 24px;
  background: white;
  flex: 1; /* Take remaining space */
}

.filter-option {
  margin-bottom: 20px;
}

.filter-option:last-child {
  margin-bottom: 0;
}

/* Custom Checkbox Styles */
.filter-checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 12px;
  color: #000;
  font-weight: 500;
  user-select: none;
  min-height: 24px; /* Ensure minimum height for proper alignment */
}

.filter-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.filter-checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.filter-checkbox-container:hover input ~ .filter-checkmark {
  border-color: #9A0056;
}

.filter-checkbox-container input:checked ~ .filter-checkmark {
  background-color: #9A0056;
  border-color: #9A0056;
}

.filter-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.filter-checkbox-container input:checked ~ .filter-checkmark:after {
  display: block;
}

.filter-checkbox-container .filter-checkmark:after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Date Range Styles */
.custom-date-range {
  background: white;
  margin-top: 16px;
  padding: 24px 16px;
  border-top: 1px solid #e0e0e0;
}

.date-range-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Calendar Date Actions */
.calendar-date-actions {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 0;
}

.calendar-cancel-btn {
  background: none;
  border: none;
  color: #9A0056;
  text-decoration: underline;
  font-size: 16px;
  cursor: pointer;
  padding: 12px 24px;
  font-weight: 500;
  margin-left: auto;
}

.calendar-apply-btn {
  background: #9A0056;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  padding: 12px 32px;
  font-weight: 600;
  min-width: 100px;
}

.calendar-apply-btn:hover {
  background: #7a0044;
}

.calendar-cancel-btn:hover {
  color: #7a0044;
}

.month-selector-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 20px;
}

.month-nav-arrow {
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.month-nav-arrow:hover {
  background: #f0f0f0;
  color: #333;
}

.month-display {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}

.filter-calendar {
  margin-bottom: 30px;
  background: white;
}

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

.weekday {
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #666;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: white;
}

.calendar-day {
  width: 32px;
  height: 32px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  margin: 0 auto;
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day:hover:not(.other-month) {
  background: #f0f8ff;
}

.calendar-day.selected {
  background: #9A0056;
  color: white;
  font-weight: 600;
}

.calendar-day.in-range {
  background: rgba(154, 0, 86, 0.1);
  color: #9A0056;
}

.calendar-day.range-start,
.calendar-day.range-end {
  background: #9A0056;
  color: white;
  font-weight: 600;
}

/* Calendar range selection styles */
.calendar-day.calendar-range-start {
  background: #9A0056 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 20px 4px 4px 20px !important;
  position: relative;
}

.calendar-day.calendar-range-end {
  background: #9A0056 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 4px 20px 20px 4px !important;
  position: relative;
}

.calendar-day.calendar-range-start.calendar-range-end {
  /* Single day selection */
  border-radius: 20px !important;
}

.calendar-day.calendar-in-range {
  background: #E8BFD6 !important;
  color: #9A0056 !important;
  border-radius: 0 !important;
  position: relative;
  font-weight: 500;
}

.calendar-day.calendar-in-range::before {
  content: '';
  position: absolute;
  top: 2px;
  left: -1px;
  right: -1px;
  bottom: 2px;
  background: #E8BFD6;
  z-index: -1;
}

/* Create seamless connection between range dates */
.calendar-day.calendar-range-start::after {
  content: '';
  position: absolute;
  top: 2px;
  right: -1px;
  width: 2px;
  bottom: 2px;
  background: #E8BFD6;
  z-index: -1;
}

.calendar-day.calendar-range-end::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -1px;
  width: 2px;
  bottom: 2px;
  background: #E8BFD6;
  z-index: -1;
}

/* Remove connecting elements for single day selection */
.calendar-day.calendar-range-start.calendar-range-end::after {
  display: none;
}

.calendar-day.calendar-selected {
  background: #9A0056 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 20px !important;
}

.custom-date-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.custom-cancel-btn {
  background: none;
  border: 1px solid #ddd;
  color: #666;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
}

.custom-cancel-btn:hover {
  border-color: #999;
  color: #333;
}

.custom-apply-btn {
  background: #9A0056;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
}

.custom-apply-btn:hover {
  background: #7d0047;
}

/* Filter Page Actions */
.filter-page-actions {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  background: white;
  border-top: 1px solid #e0e0e0;
  gap: 12px;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 10;
}

.filter-clear-btn {
  background: none;
  text-decoration: underline;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
  max-width: 100px;
  white-space: nowrap;
  border: none;
  text-underline-offset: 4px;
  color: #333;
}

.filter-clear-btn:hover {
  border-color: #999;
  color: #666;
}

.filter-apply-btn {
  background: #9A0056;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
  max-width: 100px;
  white-space: nowrap;
}

.filter-apply-btn:hover {
  background: #7d0047;
}

/* Disabled state for filter buttons */
.filter-btn-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.filter-clear-btn.filter-btn-disabled {
  text-decoration: none !important;
}

.filter-apply-btn.filter-btn-disabled {
  background: #ccc !important;
}

.filter-clear-btn.filter-btn-disabled:hover,
.filter-apply-btn.filter-btn-disabled:hover {
  background: #ccc !important;
  color: #999 !important;
  border-color: #ccc !important;
}

/* Phone number validation styles */
.valid-phone {
  border-color: #27ae60 !important;
  background-color: #f8fff8 !important;
}

.invalid-phone {
  border-color: #e74c3c !important;
  background-color: #fdf2f2 !important;
}

/* Phone input styling for libphonenumber validation */
.referral-mobile-phone input[type="tel"] {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: text !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure original phone input styling works */
.referral-mobile-phone input[type="tel"] {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: text !important;
}

.phone-validation-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 5px;
}

.phone-validation-message i {
  margin-right: 5px;
}

.phone-validation-success {
  color: #27ae60;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 5px;
}

.phone-validation-success i {
  margin-right: 5px;
}

/* Image capture optimization styles */
.share-modal-content {
  /* Ensure consistent appearance when captured */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  box-shadow: none !important; /* Remove shadow for cleaner image */
}

/* Hide elements during image capture */
.share-modal-content .share-modal-close-btn,
.share-modal-content .share-modal-share-btn {
  /* These will be hidden via ignoreElements in html2canvas config */
}

/* Ensure images load properly for capture */
.share-modal-header-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure text is readable in image */
.share-modal-content p,
.share-modal-content li,
.share-modal-content div {
  color: #333 !important;
  line-height: 1.5;
}



/* Loading state for share button */
.share-modal-share-btn:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

.calendar-picker-container {
  margin: 0 auto;
  max-width: 400px;
}

.custom-date-range .calendar-day.calendar-selected {
  background: #F5EAF0 !important;
  color: #9A0056 !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  border: none;
}

.custom-date-range .calendar-day.calendar-in-range {
  color: #252C56 !important;
  background: #FFF7F0 !important;
  font-weight: 400 !important;
  border-radius: 0px !important;
}
.custom-date-range .calendar-day.calendar-in-range::before{
  background: #FFF7F0 !important;

}
.vertical-line {
  border-bottom: 1px solid #C9C9C9; /* horizontal line */
  width: 100%;  /* full width */
  margin: 10px 0; /* spacing above/below */                /* line length */
}

.location-display{
  display: flex;
}


.appointment-on-text{
  text-align: end;
}

.no-wrap{
  white-space: nowrap;
}