﻿/* ==================================================
   ROOT COLORS
================================================== */

:root {
  --brand-navy: #002b7c;
  --brand-navy-dark: #001a4d;
  --white: #ffffff;
  --brand-gold: #ffb81b;
}


/* ==================================================
   FLOATING BUTTON ANIMATION
================================================== */

@keyframes navyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 43, 124, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(0, 43, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 43, 124, 0);
  }
}


@keyframes phoneShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-15deg);
  }

  45% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(5deg);
  }

}


/* ==================================================
   FLOATING EMERGENCY BUTTON
================================================== */

.floating-doctor-btn {

  position: fixed;

  bottom: 30px;
  left: 30px;

  z-index: 9999;

  display: inline-flex;
  align-items: center;

  height: 64px;

  padding: 3px 20px 3px 3px;

  background-color: var(--white);

  border: 2px solid var(--brand-navy);

  border-radius: 50px;

  text-decoration: none;

  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;

  transform: translateY(16px);

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  font-family:
    'Poppins',
    system-ui,
    -apple-system,
    sans-serif;
}


.floating-doctor-btn.is-scroll-visible {

  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;

  animation: navyPulse 2s infinite;
}


body.mobile-nav-open .floating-doctor-btn {

  opacity: 0 !important;
  visibility: hidden !important;

  pointer-events: none !important;

  transform: translateY(16px) !important;

  animation: none !important;
}


.floating-doctor-btn .btn-circle {

  display: flex;

  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  background-color: var(--brand-navy);

  border-radius: 50%;

  transition: background-color 0.3s ease;

  flex-shrink: 0;
}


.floating-doctor-btn .btn-icon {

  color: var(--white);

  font-size: 20px;

  display: inline-block;

  animation:
    phoneShake 2s infinite ease-in-out;
}


.floating-doctor-btn .btn-content {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding-left: 12px;

  text-align: left;

  white-space: nowrap;
}


.floating-doctor-btn .btn-title {

  color: var(--brand-navy);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 0.6px;

  text-transform: uppercase;

  line-height: 1.2;
}


.floating-doctor-btn .btn-phone {

  color: var(--brand-navy);

  font-size: 18px;

  font-weight: 700;

  letter-spacing: 0.3px;

  line-height: 1.2;

  margin-top: 1px;
}


.floating-doctor-btn.is-scroll-visible:hover {

  transform: translateY(-4px);

  box-shadow:
    0 12px 25px rgba(0, 43, 124, 0.35);
}


.floating-doctor-btn:hover .btn-circle {

  background-color: var(--brand-navy-dark);
}


/* ==================================================
   FLOATING BUTTON MOBILE
================================================== */

@media (max-width: 480px) {

  .floating-doctor-btn {

    bottom: 20px;
    left: 20px;

    height: 56px;

    padding: 2px 16px 2px 2px;
  }

  .floating-doctor-btn .btn-circle {

    width: 48px;
    height: 48px;
  }

  .floating-doctor-btn .btn-icon {

    font-size: 18px;
  }

  .floating-doctor-btn .btn-title {

    font-size: 11px;
  }

  .floating-doctor-btn .btn-phone {

    font-size: 12px;
  }

}


/* ==================================================
   DESKTOP NAVBAR
================================================== */

html body
#sticky-header.mediic_nav_manu:not(.sticky),

html body
#sticky-header.mediic_nav_manu:not(.sticky)
.container-fluid,

html body
#sticky-header.mediic_nav_manu:not(.sticky)
.row,

html body
#sticky-header.mediic_nav_manu:not(.sticky)
.mediic_menu {

  background: transparent !important;

  background-color: transparent !important;

  box-shadow: none !important;
}


#sticky-header {

  transition:
    background 0.5s ease,
    box-shadow 0.5s ease !important;
}


html body #sticky-header.sticky {

  background: #ffffff !important;
}


#sticky-header.mediic_nav_manu {

  position: relative;

  z-index: 950;
}

@media (min-width: 992px) {

  #sticky-header.mediic_nav_manu {
    min-height: 112px;
  }

  body div[style*="border-top: 5px solid #ffb81b"] {
    /* min-height: 105px; */
    padding-top: 108px !important;
    padding-bottom: 38px !important;
  }
}

@media (max-width: 991px) {

  body div[style*="border-top: 5px solid #ffb81b"] {
    padding-top: 96px !important;
    padding-bottom: 42px !important;
  }
}


.mediic-right-side,
.mediic-right-side *,
#searchBoxBtn,
#mobileSearchToggle {

  position: relative;

  z-index: 999999 !important;

  pointer-events: auto !important;
}


/* ==================================================
   MOBILE SIDE NAVBAR
================================================== */

.mobile-side-navbar {

  position: fixed;

  top: 0;
  right: 0;
  left: auto;

  width: 320px;

  height: 100vh;

  background: var(--white);

  z-index: 10005;

  transform: translateX(100%);

  transition:
    transform 0.4s
    cubic-bezier(
      0.25,
      0.46,
      0.45,
      0.94
    ) !important;

  overflow-y: auto;

  box-shadow:
    -5px 0 30px
    rgba(0, 0, 0, 0.15);

  will-change: transform;
}


.mobile-side-navbar.is-open {

  transform: translateX(0);
}


.mobile-nav-overlay {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background:
    rgba(0, 0, 0, 0.5);

  z-index: 10000;

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


.mobile-nav-overlay.is-active {

  opacity: 1;

  visibility: visible;
}


.mobile-side-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom:
    1px solid #eef0f5;

  padding: 15px;
}


.mobile-side-logo img {

  height: 45px;
}


.mobile-side-close {

  background:
    var(--brand-gold);

  border: none;

  color: var(--white);

  font-size: 16px;

  border-radius: 8px;

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  cursor: pointer;

  transition:
    background 0.2s ease;
}


.mobile-side-close:hover {

  background: #e0a400;

  color: var(--white);
}


.mobile-side-content {

  padding: 20px;
}


.mobile-side-description {

  font-size: 13px;

  color: #666;

  margin-bottom: 20px;

  line-height: 1.6;
}


.mobile-side-links {

  display: flex;

  flex-direction: column;

  gap: 2px;

  margin-bottom: 25px;
}


.mobile-side-links a {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 15px;

  color: #0d1b3e;

  text-decoration: none;

  font-size: 14px;

  font-weight: 500;

  border-radius: 8px;

  transition:
    background 0.2s ease;
}


.mobile-side-links a:hover {

  background:
    rgba(255, 184, 27, 0.1);
}


.mobile-side-links a i {

  font-size: 12px;

  color:
    var(--brand-gold);
}


/* ==================================================
   MOBILE ACTIONS
================================================== */

.mobile-side-actions {

  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-bottom: 25px;
}


.mobile-action-primary,
.mobile-action-secondary {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 15px;

  border-radius: 8px;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.mobile-action-primary {

  background:
    var(--brand-gold);

  color: var(--white);

  border:
    1.5px solid
    var(--brand-gold);
}


.mobile-action-secondary {

  background:
    var(--white);

  color:
    var(--brand-gold);

  border:
    1.5px solid
    var(--brand-gold);
}


.mobile-action-primary:hover,
.mobile-action-secondary:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 4px 12px
    rgba(255, 184, 27, 0.35);
}


/* ==================================================
   SOCIAL
================================================== */

.mobile-side-social h3 {

  font-size: 13px;

  font-weight: 600;

  color: #0d1b3e;

  margin-bottom: 12px;
}


.mobile-side-social > div {

  display: flex;

  gap: 12px;
}


.mobile-side-social a {

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #1a1a1a;

  color: var(--white);

  text-decoration: none;

  font-size: 14px;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.mobile-side-social a:hover {

  background:
    var(--brand-gold);

  color:
    var(--white);
}


/* ==================================================
   MOBILE TOP BAR
================================================== */

.mobile-menu-area {

  background:
    var(--white);

  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, 0.1);

  padding: 10px 15px;
}


.mobile-menu-area.sticky {

  z-index: 10002 !important;
}


.mobile-nav-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;
}


.mobile-nav-logo img {

  height: 40px;
}


.mobile-top-actions {

  display: flex;

  align-items: center;

  gap: 10px;
}


.mobile-menu-toggle {

  background:
    var(--brand-navy);

  border: none;

  color:
    var(--white);

  font-size: 20px;

  border-radius: 8px;

  cursor: pointer;

  padding: 10px 12px;

  transition:
    background 0.2s ease;
}


.mobile-menu-toggle:hover {

  background:
    var(--brand-navy-dark);
}


/* ==================================================
   SEARCH ICON
================================================== */

#searchBoxBtn {

  display: flex !important;

  align-items: center;
  justify-content: center;

  min-width: 45px;
  min-height: 45px;

  cursor: pointer !important;

  -webkit-tap-highlight-color:
    transparent;

  user-select: none;
}


#searchBoxBtn i {

  pointer-events: none !important;

  display: inline-block;

  color:
    var(--primary-color);

  width: 45px;
  height: 45px;

  line-height: 45px;

  text-align: center;

  border-radius: 30px;

  font-size: 16px;

  cursor: pointer;

  transition: 0.5s;

  background:
    #d7e8fc;
}


#mobileSearchToggle {

  cursor: pointer !important;

  -webkit-tap-highlight-color:
    transparent;
}


#mobileSearchToggle i {

  pointer-events: none !important;
}


/* ==================================================
   SEARCH POPUP
   ORIGINAL MEDIIC DESIGN
================================================== */

.search-popup {

  position: fixed;

  left: 0;
  top: 0;

  height: 100vh;
  width: 100%;

  z-index: 999999;

  margin-top: -540px;

  transform:
    translateY(-100%);

  background-color:
    rgba(0, 0, 0, 0.75);

  -webkit-transition:
    all 500ms
    cubic-bezier(
      0.86,
      0,
      0.07,
      1
    );

  transition:
    all 1500ms
    cubic-bezier(
      0.86,
      0,
      0.07,
      1
    );

  transition-timing-function:
    cubic-bezier(
      0.86,
      0,
      0.07,
      1
    );
}


.search-popup {

  width: 100%;
}


/* OPEN STATE
   IMPORTANT:
   body.search-active
*/

.search-active .search-popup {

  transform:
    translateY(0%);

  margin-top: 0;
}


/* ==================================================
   CLOSE BUTTON
================================================== */

.search-popup .close-search {

  position: absolute;

  left: 0;
  right: 0;

  margin: 0 auto;

  margin-top: -200px;

  border-radius: 50%;

  text-align: center;

  background-color:
    var(--primary-color);

  width: 70px;

  cursor: pointer;

  box-shadow:
    0 0 10px
    rgba(0, 0, 0, 0.05);

  -webkit-transition:
    all 500ms ease;

  transition:
    all 500ms ease;

  height: 70px;

  line-height: 70px;

  border: none;

  padding: 0;

  color: #ffffff;

  /* FIX: force clickable above everything on mobile */
  z-index: 999999 !important;

  pointer-events: auto !important;

  -webkit-tap-highlight-color: transparent;
}


.search-popup .close-search:before {

  position: absolute;

  content: "";

  left: -6px;
  top: -5px;

  border-bottom:
    5px solid #ffffff;

  border-top:
    5px solid
    var(--secondary-color);

  border-right:
    5px solid #fff;

  border-left:
    5px solid
    var(--secondary-color);

  height: 74px;

  width: 76px;

  border-radius: 50%;

  animation:
    spin 10s infinite
    alternate linear,
    glow 5s infinite
    alternate linear;

  /* FIX: don't let the decorative ring block taps */
  pointer-events: none !important;
}


.search-active
.search-popup
.close-search {

  visibility: visible;

  opacity: 1;

  top: 50%;

  -webkit-transition-delay:
    1500ms;

  transition-delay:
    1500ms;
}


.search-popup .close-search i {

  color: #ffffff;

  font-size: 28px;

  line-height: 70px;

  position: relative;

  z-index: 2;

  pointer-events: none;
}


/* ==================================================
   SEARCH FORM
================================================== */

.search-popup form {

  position: absolute;

  max-width: 700px;

  top: 50%;

  left: 15px;
  right: 15px;

  margin:
    -35px auto 0;

  transform:
    scaleX(0);

  transform-origin:
    center;

  background-color:
    #111111;

  -webkit-transition:
    all 300ms ease;

  transition:
    all 300ms ease;
}


.search-active
.search-popup form {

  transform:
    scaleX(1);

  -webkit-transition-delay:
    1200ms;

  transition-delay:
    1200ms;
}


/* ==================================================
   SEARCH FORM GROUP
================================================== */

.search-popup .form-group {

  position: relative;

  margin: 0px;

  overflow: hidden;
}


/* ==================================================
   SEARCH INPUT
================================================== */

.search-popup
.form-group
input[type="text"],

.search-popup
.form-group
input[type="search"] {

  position: relative;

  display: block;

  font-size: 18px;

  line-height: 50px;

  color: #000000;

  height: 70px;

  width: 100%;

  padding: 10px 30px;

  background-color:
    #ffffff;

  transition:
    all 500ms ease;

  font-weight: 500;

  text-transform:
    capitalize;

  border: none;

  outline: none;

  box-sizing:
    border-box;
}


/* ==================================================
   SEARCH SUBMIT BUTTON
================================================== */

.search-popup
.form-group
input[type="submit"],

.search-popup
.form-group
button {

  position: absolute;

  right: 30px;

  top: 0px;

  height: 70px;

  line-height: 70px;

  background:
    transparent;

  text-align: center;

  font-size: 22px;

  color:
    var(--primary-color);

  padding: 0;

  cursor: pointer;

  -webkit-transition:
    all 500ms ease;

  transition:
    all 500ms ease;

  border: none;
}


.search-popup
.form-group
input[type="submit"]:hover,

.search-popup
.form-group
button:hover {

  color:
    #000000;
}


.search-popup input::placeholder,
.search-popup textarea::placeholder {

  color:
    #000000;
}


/* ==================================================
   ORIGINAL STYLE-TWO CLOSE BUTTON
================================================== */

.search-popup
.close-search.style-two {

  position: absolute;

  right: 25px;

  left: auto;

  color: #ffffff;

  width: auto;

  height: auto;

  top: 25px;

  margin: 0px;

  border: none;

  background:
    none !important;

  box-shadow:
    none !important;

  transition:
    all 500ms ease;
}


.search-popup
.style-two.close-search:before {

  position: inherit;

  border: 0;
}


.flaticon-multiply:before {

  content: inherit;
}


button.close-search i {

  font-size: 25px;

  color: #fff;

  display: inline-block;
}


span.flaticon-multiply i {

  display: inline-block;

  color:
    var(--secondary-color);
}


/* ==================================================
   SEARCH ANIMATIONS
================================================== */

@keyframes spin {

  0% {
    transform:
      rotate(360deg);
  }

  100% {
    transform:
      rotate(0deg);
  }

}


@keyframes glow {

  0% {
    box-shadow:
      0 0 0
      rgba(255,255,255,0);
  }

  50% {
    box-shadow:
      0 0 20px
      rgba(255,255,255,0.5);
  }

  100% {
    box-shadow:
      0 0 0
      rgba(255,255,255,0);
  }

}


/* ==================================================
   STICKY HEADER
================================================== */

.sticky {

  left: 0;

  margin: auto;

  position: fixed !important;

  top: 0;

  width: 100%;

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.14901960784313725
    );

  background:
    white !important;

  transition:
    0.5s !important;

  z-index: 922;

  -webkit-animation:
    300ms running
    fadeInDown;

  animation:
    500ms running
    fadeInUp;

  animation-name:
    slideInDown;
}


/* ==================================================
   HEADER BUTTON
================================================== */

.header-button {

  position: relative;

  z-index: 1;
}


.mediic-hover-btn {

  pointer-events: none !important;
}


/* ==================================================
   MOBILE RESPONSIVE
================================================== */

@media (max-width: 991px) {

  #sticky-header {

    display: none !important;
  }

}


@media (min-width: 992px) {

  .mobile-menu-area {

    display: none !important;
  }

}


@media (max-width: 600px) {

  .mobile-side-navbar {

    width: 290px;
  }


  .search-popup form {

    left: 20px;
    right: 20px;

    max-width:
      calc(100% - 40px);
  }


  .search-popup
  .form-group
  input[type="search"] {

    font-size: 16px;

    padding:
      10px 60px 10px 20px;
  }

}

