:root {
  --mdb-form-invalid-color: #b31b32;
  --mdb-form-invalid-border-color: #b31b32;
  --custom-defaultblue: #0d58d9;
  --custom-darkblue: #0644b8;
  --custom-textgray: #666666;
}

.bg-bluegray {
  background-color: #dce2ef;
}

.rounded-10 {
  border-radius: 3rem !important;
}

.text-medium {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.btn-login-text,
.btn-continue-text {
  /* uppercase */
  text-transform: unset;
  font-weight: 700;
}

.form-outline .form-control ~ .form-notch .form-notch-leading {
  border-radius: 10px 0 0 10px;
}

.form-outline .form-control ~ .form-notch .form-notch-trailing {
  border-radius: 0 10px 10px 0;
}

.show-password {
  z-index: 99;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  color: var(--custom-defaultblue);
}

.show-password:hover {
  cursor: pointer;
  color: var(--custom-darkblue);
}

.clinic-selection-info {
  display: flex;
  width: 100%;
  padding: 20px 15px;
  color: #0149b5;
  background-color: #e5f8fe;
  border: 1px solid #b2d1ed;
  border-radius: 20px;
  margin-bottom: 20px;
}

.info-icon {
  margin-right: 20px;
}

.alert-custom {
  display: flex;
  width: 100%;
  padding: 20px 15px;
  gap: 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.alert-custom-danger {
  background-color: #fef3ea;
  border: 1px solid #b31b324d;
}

.alert-custom-success {
  background-color: rgba(241, 255, 235, 1);
  border: 1px solid rgba(17, 115, 46, 0.3);
}

.alert-custom-danger .alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
}

.alert-custom-danger .alert-icon .material-icons.md-dark {
  color: var(--mdb-form-invalid-color);
}

.alert-custom-success .alert-icon .material-icons.md-dark {
  color: rgba(17, 115, 46, 1);
}

.alert-custom {
  font-weight: 400;
  font-size: 14px;
}

.alert-custom strong {
  font-weight: 700;
  font-size: 16px;
}

.alert-custom-danger {
  color: var(--mdb-form-invalid-color);
}

.alert-custom-danger strong {
  color: var(--mdb-form-invalid-color);
}

.alert-custom-success {
  color: rgba(17, 115, 46, 1);
}

.alert-custom-success strong {
  color: rgba(17, 115, 46, 1);
}

.banner {
  display: flex;
  padding: 6px 16px;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.banner--info {
  color: white;
  background-color: #0149b5;
}

.banner__icon {
  display: flex;
  padding: 7px 12px 7px 0px;
  align-items: flex-start;
}

.banner__icon-symbol {
  font-size: 22px;
  width: 22px;
}

.banner__content {
  display: flex;
  padding: 8px 0;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
}

.banner__title {
  margin: 0;
  font-family: Arial;
  font-size: 16px;
  font-style: normal;
  line-height: 24px;
  margin-bottom: 5.6px;
  margin-top: -2px;
  font-weight: 700;
}

.banner__message {
  margin: 0;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20.02px;
}

.position-relative {
  position: relative;
}

.form-field-container {
  margin-bottom: 30px;
}

.form-fields {
  margin-bottom: 30px;
}

.iti__flag {
  background-image: url('~/assets/auth-assets/img/flags.png');
}

@media (min-resolution: 2x) {
  .iti__flag {
    background-image: url('~/assets/auth-assets/img/flags@2x.png');
  }
}

.custom-select {
  position: relative;
}

.custom-select label {
  position: absolute;
  top: 10px;
  left: 12px;
}

.custom-select label.hasContent,
.phoneinputmfa-container label.hasContent {
  position: absolute;
  top: 0.7rem;
  line-height: 20px;
  padding-bottom: 0;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  left: 0.75rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: all 0.2s ease-out;
  color: var(--mdb-form-control-label-color);
  margin-bottom: 0;
  transform: translateY(-1.25rem) translateY(0.1rem) scale(0.8);

  padding-left: 5px;
  padding-right: 5px;
  background-color: #fff;
}

.custom-select label.active,
.phoneinputmfa-container label.active {
  position: absolute;
  top: 0.7rem;
  line-height: 20px;
  padding-bottom: 0;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  left: 0.75rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: all 0.2s ease-out;
  color: var(--custom-defaultblue);
  margin-bottom: 0;
  transform: translateY(-1.25rem) translateY(0.1rem) scale(0.8);
  padding-left: 5px;
  padding-right: 5px;
  background-color: #fff;
}

.custom-select select {
  border: 1px solid #4f4f4f6e;
  border-radius: 0.6rem !important;
  padding-right: 40px;
}

.select-chevron {
  z-index: 999;
  right: 15px;
  top: 45%;
  box-sizing: border-box;
  position: absolute;
  display: inline-block !important;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: '';
  border-top: 0.3em solid;
  border-right: 0.3em solid rgba(0, 0, 0, 0);
  border-bottom: 0;
  border-left: 0.3em solid rgba(0, 0, 0, 0);
}

.select-chevron.register-chevron {
  z-index: 0;
}

.select-chevron.active {
  transform: rotate(180deg);
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.form-control.invalid-feedback {
  display: flex;
  width: 100%;
  height: 30px;
  align-items: baseline;
  justify-content: flex-start;
  top: -40px;
}

.phoneinputmfa {
  border-radius: 10px 10px 10px 10px !important;
  border-color: var(--mdb-form-control-border-color);
}

.phoneinputmfa-container {
  position: relative;
}

.phoneinputmfa-container label {
  position: absolute;
  top: 5px;
  left: 90px;
}

.phoneinputmfa-container label.active.is-invalid,
.phoneinputmfa-container label.is-invalid {
  color: var(--mdb-form-invalid-color);
}

.required-field-asterisk {
  color: var(--mdb-form-invalid-color);
}

.phoneinputmfa-invalid-msg {
  position: absolute;
  display: none;
  width: auto;
  top: 40px;
  font-size: 0.875rem;
  color: var(--mdb-form-invalid-color);
}

.phoneinputmfa-suggestion-msg,
.twofactorcode-suggestion-msg {
  position: absolute;
  display: block;
  width: auto;
  font-size: 0.875rem;
  color: var(--custom-textgray);
  padding-top: 5px;
  margin-left: 10px;
}

.input-field {
  margin-bottom: 30px;
}

.invalid-feedback i,
.phoneinputmfa-invalid-msg i {
  font-size: 20px;
  margin-right: 7px;
  margin-left: 10px;
}

.btn-link-custom {
  padding: 0px;
  text-transform: lowercase;
  font-size: medium;
  color: var(--custom-defaultblue);
}

.btn-link-custom:hover {
  background-color: unset !important;
}

.cancel-box {
  display: flex;
  font-family: Arial;
  line-height: 24px;
  font-weight: 700;
}

.cancel-box-span {
  margin-left: 8px;
}

.was-validated .phoneinputmfa.form-control:invalid:focus,
.phoneinputmfa.form-control.is-invalid:focus {
  box-shadow: inset 0px 0px 0px 1px var(--mdb-form-invalid-color);
}

.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip,
.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip {
  display: flex !important;
}

/* from here css is to adapt MDB to MUI and FIGMA specs */
.btn-primary,
.btn-secondary {
  font-weight: 700 !important;
}

.btn-primary,
.btn-secondary {
  font-size: 15px;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #e0e0e0 !important;
  color: rgba(0, 0, 0, 0.54);
  box-shadow: none;
}

.form-outline .form-control:disabled,
.form-outline .form-control.disabled,
.form-outline .form-control[readonly] {
  color: rgb(170, 170, 170) !important;
  border-color: rgba(118, 118, 118, 0.3) !important;
  background: none;
}

.form-outline .form-control:disabled ~ .form-label,
.form-outline .form-control.disabled ~ .form-label {
  color: rgb(170, 170, 170) !important;
}

.btn-primary {
  --mdb-btn-bg: var(--custom-defaultblue) !important;
  --mdb-btn-hover-bg: var(--custom-defaultblue) !important;
  --mdb-btn-active-bg: var(--custom-defaultblue) !important;
  --mdb-btn-focus-bg: var(--custom-defaultblue) !important;
  --mdb-link-color-rgb: var(--custom-defaultblue) !important;
  text-transform: capitalize;
  box-shadow: none;
}

.btn-secondary {
  border: 1px solid #c5d7f6;
  color: var(--custom-defaultblue);
  background-color: white;
  text-transform: capitalize;
  box-shadow: none;
}

:not(.btn-check) + .btn:hover,
.btn:first-child:hover,
.btn:focus-visible,
.btn:hover {
  box-shadow: none;
}

:not(.btn-check) + .btn-primary:hover,
.btn-primary:first-child:hover,
.btn-primary:focus-visible,
.btn-primary:hover {
  background-color: var(--custom-darkblue);
}

:not(.btn-check) + .btn.btn-secondary:hover,
.btn.btn-secondary:first-child:hover,
.btn.btn-secondary:focus-visible,
.btn.btn-secondary:hover {
  background-color: #f5f8fd;
  border: 1px solid #c5d7f6;
  color: var(--custom-defaultblue);
}

a {
  color: var(--custom-defaultblue);
  text-decoration: none;
}

a.underlined {
  text-decoration: underline;
}

.form-check-input[type='checkbox']:checked {
  background-color: var(--custom-defaultblue);
}

.form-control:focus {
  border-color: var(--custom-defaultblue);
  box-shadow: inset 0px 0px 0px 1px var(--custom-defaultblue);
}

.form-outline .form-control:focus ~ .form-label {
  color: var(--custom-defaultblue);
}

.form-outline .form-control:focus ~ .form-notch .form-notch-leading {
  border-color: var(--custom-defaultblue);
  box-shadow: -1px 0 0 0 var(--custom-defaultblue), 0 1px 0 0 var(--custom-defaultblue),
    0 -1px 0 0 var(--custom-defaultblue);
}

.form-outline .form-control:focus ~ .form-notch .form-notch-middle {
  border-color: var(--custom-defaultblue);
  box-shadow: 0 1px 0 0 var(--custom-defaultblue);
  border-top: 1px solid rgba(0, 0, 0, 0);
}

.form-outline .form-control:focus ~ .form-notch .form-notch-trailing {
  border-color: var(--custom-defaultblue);
  box-shadow: 1px 0 0 0 var(--custom-defaultblue), 0 -1px 0 0 var(--custom-defaultblue),
    0 1px 0 0 var(--custom-defaultblue);
}

.was-validated .form-outline .form-control:invalid:focus ~ .form-notch .form-notch-leading,
.form-outline .form-control.is-invalid:focus ~ .form-notch .form-notch-leading {
  border-color: var(--mdb-form-invalid-border-color);
}

.was-validated .form-outline .form-control:invalid:focus ~ .form-notch .form-notch-trailing,
.form-outline .form-control.is-invalid:focus ~ .form-notch .form-notch-trailing {
  border-color: var(--mdb-form-invalid-border-color);
}

.was-validated .form-outline .form-control:invalid:focus ~ .form-notch .form-notch-middle,
.form-outline .form-control.is-invalid:focus ~ .form-notch .form-notch-middle {
  border-color: var(--mdb-form-invalid-border-color);
  border-top: 1px solid rgba(0, 0, 0, 0);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--mdb-form-invalid-border-color);
}

.was-validated .form-outline .form-control:invalid ~ .form-label,
.form-outline .form-control.is-invalid ~ .form-label {
  color: var(--mdb-form-invalid-color);
}

.invalid-feedback {
  margin-top: -2.15rem;
  color: var(--mdb-form-invalid-color);
}

.form-outline .form-control ~ .form-notch .form-notch-leading {
  border-radius: 10px 0 0 10px;
}

.form-outline .form-control ~ .form-notch .form-notch-trailing {
  border-radius: 0 10px 10px 0;
}

:not(.btn-check) + .btn:hover,
.btn:first-child:hover,
.btn:focus-visible,
.btn:hover {
  box-shadow: none;
  background-color: var(--custom-darkblue);
}

:not(.btn-check) + .btn-primary:hover,
.btn-primary:first-child:hover,
.btn-primary:focus-visible,
.btn-primary:hover {
  background-color: var(--custom-darkblue);
}

.valid-condition {
  color: green;
}

.condition-list-element::marker {
  color: #00000061;
  font-size: 14px;
}

.valid-condition::marker {
  position: absolute;
  font-family: 'Material Icons';
  content: 'done ';
  color: green;
}

.conditions-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.send-request-registration-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 40px; */
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
}

.send-request-registration-icon {
  font-size: 22px;
  margin-left: 10px;
}

.create-password-error-feedback {
  /* position: relative !important; */
  color: var(--mdb-form-invalid-color);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  margin-top: -30px;
}

.create-password-error-feedback i {
  font-size: 20px;
  margin-right: 7px;
  /* margin-left: 10px; */
}


.custom-clinic-select {
  font-family: 'Arial', sans-serif;
  width: 100%;
  max-width: 100%;

  position: relative;
  z-index: 10;
}

.custom-clinic-select .select-selected {
  background-color: white;
  padding: 10px;


  border: 1px solid #4f4f4f6e;
  border-radius: 0.6rem !important;
  cursor: pointer;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-clinic-select .select-selected:after,
.custom-language-select:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  box-sizing: border-box;
  display: inline-block !important;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid rgba(0, 0, 0, 0);
  border-bottom: 0;
  border-left: 0.3em solid rgba(0, 0, 0, 0);
}

.custom-clinic-select .select-selected.select-arrow-active:after,
.custom-language-select:has(.form-control:focus):after {
  transform: rotate(180deg);
}

.custom-clinic-select .select-items {
  position: absolute;
  background-color: white;
  border: 0;
  width: 100%;
  display: none;
  z-index: 1;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 7px;
  --modal-box-shadow: 0 2px 15px -3px rgba(var(--mdb-box-shadow-color-rgb), 0.3),
    0 10px 20px -2px rgba(var(--mdb-box-shadow-color-rgb), 0.2);
  border: 0;
  box-shadow: var(--mdb-modal-box-shadow);
}

.custom-clinic-select::-webkit-scrollbar {
  border-radius: 7px;
}

.custom-clinic-select::-webkit-scrollbar-track {
  border-radius: 7px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  border-radius: 5px;
}

.custom-clinic-select .select-items .bold {
  font-weight: bold;
}

.custom-clinic-select .select-items .indent {
  padding-left: 20px;
}

.custom-clinic-select .select-items .option-item:hover {
  background-color: #0000000a;
}

.custom-clinic-select .select-items .option-item {
  cursor: pointer;
  padding: 10px 20px 10px 10px;
}

.custom-clinic-select .select-hide {
  display: none;
}

.custom-clinic-select .select-show {
  display: block;
}

.select-arrow-active {
  border: 2px solid var(--custom-defaultblue) !important;
}

.custom-clinic-select #customClinicTooltip {
  display: none;
}

.select-text {
  max-width: 540px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  margin: 0;
}

.custom-clinic-select:hover #customClinicTooltip {
  display: block;
  position: absolute;
  border-top: none;
  top: 50px;
  left: 50%;
  transform: translateX(-35%);
  background: #616161;
  color: #fff;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  white-space: wrap;
  word-wrap: break-word;
  font-size: 0.75rem;
  font-style: normal;
  pointer-events: none;
  height: fit-content;
  width: fit-content;
  max-width: 250px;
  overflow-wrap: break-word;
  padding: 6px 16px;
  font-family: var(--mdb-font-roboto);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  font-size: 14px;
  min-width: 400px;
  max-width: 400px;
  background-color: rgba(97, 97, 97, 0.9);
}

.tooltip,
.tooltip-inner {
  transform: translateX(70px);
  min-width: 400px;
  max-width: 400px;
}

.tooltip-inner {
  background-color: rgba(97, 97, 97, 0.9);
  min-width: 400px;
  max-width: 400px;
  text-align: left;
}

.highlighted {
  background-color: rgba(13, 88, 217, 0.04);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /*height: 46px;*/
}

.highlighted-label {
  font-size: 16px;
  font-weight: 700;
  color:rgba(0, 0, 0, 0.6);
  height: min-content;
  margin: 0;
}

.highlighted-icon {
  height: 18px;
  width: 18px;
  color: rgb(0, 36, 120);
}

.clinic-name {
  max-width: 540px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  margin: 0;
  padding-right: 8px;
}

.indent .clinic-name {
  max-width: 100%;
}

.highlighted .clinic-name {
  max-width: 100%;
}

.clinic-name-wrapper {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.highlighted .clinic-name-wrapper {
  padding-left: 10px;
}

.last-used-clinic .clinic-name-wrapper {
  width: 100%;
}

.option-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}

.select-selected {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  right: 0;
  background-color: #f8f9fa;
  padding: 20px 24px 16px 24px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.cookie_text_body {
  font-size: 16px;
  font-weight: 400;
}

.cookie_title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  width: max-content;
  font-weight: bold;
  text-decoration: none;
  text-transform: none;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid #007bff;
  transition: 0.3s;
}

#reject-all-cookies {
  color: #007bff;
  background-color: transparent;
  text-align: center;
  cursor: pointer;
}

#reject-all-cookies:hover {
  background-color: #007bff;
  color: #fff;
}

.cookie-banner a {
  color: #007bff;
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  /* display: none; */
}

.cookie-banner-link {
  color: #007bff;
  text-decoration: none;
}

.cookie-banner-link:hover {
  text-decoration: underline;
  color: #0056b3;
  cursor: pointer;
}

.cookie-banner-form {
  display: inline-block;
}

.form-outline .form-control.password-field {
  padding-right: 2.3rem;
}

.modal-header {
  background-color: #f7f7f7;
  padding-left: 24px;
  padding-right: 24px;
}

.modal-body {
  padding-left: 24px;
  padding-right: 24px;
}

.session-error-container {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding-left: 50px;
  padding-right: 50px;
}

.session-error-img {
  width: 30%;
  margin: auto;
}

.session-error-title {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 10px;
  margin-top: 40px;
  font-size: 24px;
  font-weight: 700;
  line-height: 133%;
  color: #000;
}

.session-error-description {
  margin: auto;
  width: 50%;
  font-size: 16px;
  line-height: 150%;
  color: #000;
  text-align: center;
}

.password-field-feedback {
  bottom: 0;
  margin-top: unset;
  margin-bottom: -28px !important;
}

.update-password-title{
  margin-bottom: 40px;
}