html {
  font-size: 12px;
}

/*styles for small screens*/
@media (max-width: 768px) {
  .top-logo {
    display: none;
  }

  .welcome-logo {
    display: block;
  }

  html {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .welcome-logo {
    display: none;
  }

  .extra-padding-results {
    margin-top: 25px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.btn-primary-med {
  background-color: #24356f;
  color: #fff;
}

.btn-primary-med:hover {
  background-color: #8dc9e7;
  transition: background 300ms ease-in-out;
}

.btn-outline-primary-med {
  color: #247ca8;
  border-color: #247ca8;
}

.btn-outline-primary-med:hover {
  background-color: #247ca8;
  color: #fff;
}

.btn-err-med {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-err-med:hover {
  background-color: #dc3545;
  color: #fff;
}

.appt-btn {
  vertical-align: baseline;
  width: 100px;
}

.form-control-file {
  padding: 5px;
}

#rescheduleMessage {
  font-weight: bold;
  font-size: larger;
  color: #dc3545;
  text-align: center;
}

.email {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 15px;
}

.extra-padding {
  padding: 5px;
  width: 300px;
}

.extra-padding-results {
  width: 100%;
  padding: 5px;
}

.bottom-margins {
  margin-bottom: 5px;
}

label {
  font-weight: bold;
  font-size: 1rem;
}

.welcome-logo {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  min-width: 125px;
  margin-bottom: 10px;
}

.provider-logo {
  max-height: 100px;
  margin-top: 10px;
  max-width: 80%;
}

.field-validation-error {
  font-size: 14px;
  padding-bottom: 10px;
  color: red;
}

.nav-primary a,
.nav-primary a:hover {
  color: #24356f;
}

.image-cropper {
  height: 100px;
  width: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.prov-headshot {
  display: inline;
  margin: 0 auto;
  margin-left: -25%;
  width: auto;
  height: 100px;
}

.form-control-padded {
  margin-bottom: 10px;
}

.help-div {
  margin-top: 10px;
}

.icon-align {
  vertical-align: middle;
}

.appt-slot {
  width: 100px;
  margin: 5px 2px;
}

h5.mv-primary {
  color: #fff !important;
}

/*MedVanta colors*/
.mv-primary {
  color: #247ca8;
}

.mv-primary:hover {
  color: #247ca8;
}

.mv-secondary {
  color: #52adda;
}

.mv-tab-color {
  color: #21739c;
}

.mv-black {
  color: #111921;
}

.mv-light-back {
  background-color: #e5eff5;
}

.mv-dark-back {
  background-color: #152237;
  color: #fff;
}

.mv-blue-back {
  background-color: #247ca8;
  color: #fff;
}

.mv-back {
  background-color: #24356f;
  color: #fff;
}

.mv-secondary-back {
  background-color: #52adda;
}

/*CAO Graphic color classes*/
.cao-primary {
  color: #298fc2;
}

.cao-primary-background {
  background-color: #298fc2;
}

.cao-complementary {
  color: #c16c18;
}

.cao-complementary-background {
  background-color: #c16c18;
  color: #fff;
  padding-left: 10px;
}

.cao-main-black {
  color: #27251f;
}

.cao-main-grey {
  color: #333f48;
}

.cao-cool-grey-5 {
  color: #b1b3b3;
}

.cao-cool-grey-2 {
  color: #d0d0ce;
}

.cao-cool-grey-2-back {
  background-color: #d0d0ce;
}

.cao-complementary-1 {
  color: #fdd086;
}

.cao-complementary-2 {
  color: #efdbb2;
}

.cao-light-blue {
  color: #c6dae7;
}

.cao-red {
  color: #cb2c30;
}

.tooltip-custom {
  display: inline;
  position: relative;
}

.tooltip-custom:hover:after {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  background: #444;
  border-radius: 8px;
  color: #fff;
  content: attr(title);
  margin: 5px auto 0;
  font-size: 12px;
  padding: 13px;
  width: 220px;
}

#overlay {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}

.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px #ddd solid;
  border-top: 4px #2e93e6 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}

.is-hide {
  display: none;
}

#suggestion-list {
  position: absolute;
  border: 1px solid #ccc;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  padding: 5px 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.header-bold {
  font-weight: 400;
}

.login-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

.suggestion-links a {
  display: block;
}

.main-background {
  background-image: url("/mv_background.png");
  background-size: cover;
  background-attachment: fixed !important;
  background-repeat: no-repeat;
  min-height: calc(100vh - 100px);
}

.bg-added {
  position: absolute;
  right: 0px;
}

.main-search {
  padding-top: 20% !important;
}

.find-title {
  font-weight: bold;
  font-size: 48px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
}

.results-title {
  font-weight: bold;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  color: #fff;
}

.results-title-primary {
  font-weight: bold;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
}

.search-card {
  border-radius: 0px !important;
  background-color: #eff4f7;
  margin-top: 10px;
}

.search-border {
  border-color: #8dc9e7;
  margin-top: 5px;
  border-radius: 0px;
}

.or-circ {
  background-color: #8dc9e7;
  color: #24356f;
  padding: 11px;
  border-radius: 40px;
  font-weight: 500;
  width: 50px;
  text-align: center;
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
}

.or-width {
  width: -webkit-fill-available;
}

.search-btn {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #247ca8;
  border-radius: 0px;
  letter-spacing: 1px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding: 0.375rem 0.75rem;
  border: none;
}

.clear-btn,
.clear-btn-nopadding {
  color: #247ca8 !important;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #fff;
  border-radius: 0px;
  letter-spacing: 1px;
  padding: 0.375rem 0.75rem;
  border-color: #247ca8;
  margin-right: 20px;
}

.no-margin {
  margin-right: 0px !important;
}

.clear-btn {
  padding-right: 20px !important;
}

.upload-btn {
  color: #247ca8 !important;
  background-color: #fff;
  border-radius: 0px;
  letter-spacing: 1px;
  padding: 0.375rem 0.75rem;
  border-color: #247ca8;
  margin-bottom: 10px;
}

.block-label {
  display: block;
}

.indented {
  margin-left: 15px;
  margin-right: -15px;
}

.filter-form {
  display: inline-block;
  max-width: 250px;
}

.filter-form-block {
  max-width: 250px;
}

.filter-form-date {
  width: 120px;
}

.block-label {
  display: block;
}

.filter-form-long {
  display: inline-block;
  max-width: 670px;
}

.inline {
  display: inline-block;
}

.sub-label {
  margin-left: 5px;
  font-weight: normal;
  display: block;
}

.user-label {
  width: 80px;
}

#user-table tbody tr:hover {
  cursor: pointer;
}

#referral-table tbody tr:hover {
  cursor: pointer;
}

.warning-outline-btn {
  color: #dc3545 !important;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #fff;
  border-radius: 0px;
  letter-spacing: 1px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding: 0.375rem 0.75rem;
  border-color: #dc3545;
  margin-right: 20px;
}

.warning-btn {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #dc3545;
  border-radius: 0px;
  letter-spacing: 1px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding: 0.375rem 0.75rem;
  margin-right: 20px;
}

.mv-nav {
  height: 100px;
}

.small-logo {
  min-width: 250px;
  max-width: 300px;
  margin-left: 50px;
  display: block !important;
}

.nav-font {
  font-weight: bold;
  text-transform: uppercase;
  color: #247ca8 !important;
  letter-spacing: 1px;
  padding-right: 2rem !important;
}

.navbar-nav li {
  padding-top: 10px;
}

.or-mob {
  display: none;
}

.secondary-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.secondary-nav-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.secondary-nav .nav-font {
  font-weight: 500;
  padding-right: 1rem;
}

.mobile-result {
  display: none;
}

.logo-col {
  text-align: right;
}

.btn-resize {
  width: 45%;
}

.referral {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.referral-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200; 
}

.referral-site {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; 
    text-align: center;
}

.referral-strapline {
    display: block;
    font-family: 'Auxilia Oblique', sans-serif;
    font-style: oblique;
    font-size: 0.85em;
    margin-top: 2px;
    opacity: 0.85;
}

.edit,
.warning-outline-btn {
  margin-top: 5px;
}

.date-time {
  max-width: 50%;
  float: right;
  width: 300px;
}

.title-button-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.padded-card {
  padding: 15px;
}

@media (max-width: 850px) {
  .secondary-nav-list .nav-font {
    font-size: small;
    padding: 0px;
    padding-right: 10px !important;
    margin: 0px;
  }
}

@media (max-width: 600px) {
  .secondary-nav-list .nav-font {
    font-size: x-small;
  }
}

@media (max-width: 994px) {
  .logo-col {
    text-align: center;
  }
}

@media (max-height: 900px) {
  .main-search {
    padding-top: 10% !important;
  }

  .main-background {
    min-height: 100vh;
  }
}

@media (max-width: 767px) {
  .search-btn,
  .clear-btn {
    width: 100%;
    margin-top: 5px;
  }

  .warning-outline-btn {
    width: 100%;
  }

  .clear-btn {
    margin-bottom: 10px;
  }

  .or-web {
    display: none;
  }

  .or-mob {
    display: block;
    text-align: center;
  }

  .or-circ-mobile {
    display: inline-block;
    background-color: #8dc9e7;
    color: #24356f;
    text-align: center;
    padding: 5px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: 15px;
    vertical-align: middle;
    font-weight: 500;
  }

  .or-line {
    display: inline-block;
    width: 40%;
    border-width: 2px;
  }

  .mobile-result {
    display: block;
  }

  .web-result {
    display: none;
  }

  .small-logo {
    max-width: 50%;
  }

  .btn-resize {
    width: 100%;
  }

  .date-time {
    max-width: 100%;
    width: 100%;
    float: none;
    margin-bottom: 10px;
  }
}

@media (max-width: 1150px) {
  .nav-item {
    text-align: right;
  }

  .navbar {
    align-content: center;
  }

  .navbar-brand {
    position: absolute;
  }

  .navbar-toggler {
    position: absolute;
    right: 10px;
  }

  .navbar-nav {
    margin-right: 0px;
    position: relative;
    z-index: 1000;
  }

  .navbar-collapse {
    margin-left: 10px;
  }
}

/* Row-level validation message containers - only show space when validation messages are present */
.form-field-container {
  margin-bottom: 15px;
}

.row-validation-container {
  width: 100%;
  margin-bottom: 5px;
}

.row-validation-container:empty {
  margin-bottom: 0;
}

.row-validation-container .field-validation-error {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.row-validation-container .field-validation-valid {
  display: none;
}

.row-validation-container .text-danger {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
  margin-bottom: 2px;
  line-height: 1.2;
}

/* Individual field validation containers - for single-field rows */
.validation-message-container {
  margin-bottom: 5px;
}

/* Hide validation containers when empty to prevent spacing */
.validation-message-container:empty {
  margin-bottom: 0;
}

/* Only show margin when validation messages are actually present */
.validation-message-container:has(.field-validation-error),
.validation-message-container:has(.text-danger) {
  margin-bottom: 5px;
}

.validation-message-container .field-validation-error {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.validation-message-container .field-validation-valid {
  display: none;
}

.validation-message-container .text-danger {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.form-input-section {
  display: flex;
  flex-direction: column;
}

/* Ensure consistent alignment for form fields with additional controls */
.form-field-container .emailConfirm,
.form-field-container .smsConfirm {
  margin-top: 5px;
}

/* Override Bootstrap's default margin-bottom on input groups within forms */
.form-field-container .input-group {
  margin-bottom: 0;
}
