:root {
  --primary-color: #1a76d1;
}

html {
  scroll-behavior: smooth;
}

.contact-us #myMap {
  align-items: flex-end;
  background: linear-gradient(145deg, #eef7ff, #d7ebff);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.contact-us #myMap .contact-team-image {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  width: 100%;
}

body {
  overflow-x: hidden;
}

.preloader {
  display: none !important;
}

.slider .swiper-wrapper,
.portfolio-slider .swiper-wrapper,
.testimonial-slider .swiper-wrapper,
.clients-slider .swiper-wrapper {
  transition: transform 650ms ease;
}

.hero-slider .swiper-slide {
  flex: 0 0 100%;
}

.portfolio-slider .swiper-slide {
  flex: 0 0 calc(25% - 11.25px);
  margin-right: 15px;
}

.testimonial-slider .swiper-slide {
  flex: 0 0 33.333%;
}

.clients-slider .swiper-slide {
  flex: 0 0 20%;
}

.mobile-menu-offcanvas {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  padding: 76px 28px 32px;
  background: #fff;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
  visibility: hidden;
  opacity: 0;
  z-index: 10001;
}

.mobile-menu-offcanvas.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.mobile-menu-offcanvas .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--primary-color);
  font-size: 24px;
  line-height: 1;
}

.mobile-menu-offcanvas .nav,
.mobile-menu-offcanvas .nav li,
.mobile-menu-offcanvas .dropdown {
  display: block;
  position: static;
  width: 100%;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
}

.mobile-menu-offcanvas .nav > li {
  border-bottom: 1px solid #eee;
}

.mobile-menu-offcanvas .nav a {
  display: block;
  padding: 12px 0;
  color: #2c2d3f;
}

.mobile-menu-offcanvas .dropdown {
  display: none;
  padding: 0 0 8px 16px;
}

.mobile-menu-offcanvas li.open > .dropdown {
  display: block;
}

.mobile-menu-open::before {
  position: fixed;
  inset: 0;
  content: "";
  background: rgba(44, 45, 63, 0.45);
  z-index: 10000;
}

.department-tab .nav a,
.department-tab .nav button {
  cursor: pointer;
}

.department-tab .tab-pane {
  display: none;
}

.department-tab .tab-pane.active,
.department-tab .tab-pane.show {
  display: block;
}

.counter span:empty::after {
  content: "0";
}

.form-status {
  color: #1a76d1;
  font-size: 13px;
  margin-top: 12px;
}

.patient-tracking {
  background:
    radial-gradient(circle at 92% 12%, rgba(26, 118, 209, 0.11), transparent 28%),
    #f7fbff;
}

.tracking-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #dceaf7;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(27, 67, 103, 0.1);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  padding: 58px;
  position: relative;
}

.tracking-panel::before {
  background: var(--primary-color);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.tracking-kicker,
.patient-details-kicker {
  color: var(--primary-color);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tracking-copy h2 {
  color: #2c2d3f;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.tracking-copy > p {
  color: #667085;
  line-height: 1.8;
  margin: 0;
}

.tracking-assurances {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tracking-assurances li {
  align-items: center;
  color: #344054;
  display: flex;
  font-size: 14px;
  gap: 10px;
}

.tracking-assurances i {
  color: var(--primary-color);
  font-size: 19px;
}

.patient-tracking-form {
  background: #f1f7fd;
  border: 1px solid #d7e7f7;
  border-radius: 8px;
  padding: 30px;
}

.patient-tracking-form label {
  color: #2c2d3f;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tracking-input-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tracking-input-row input {
  background: #fff;
  border: 1px solid #c8daec;
  border-radius: 5px;
  color: #2c2d3f;
  height: 56px;
  min-width: 0;
  padding: 0 18px;
  text-transform: uppercase;
  width: 100%;
}

.tracking-input-row input::placeholder {
  color: #8a98a8;
  text-transform: none;
}

.tracking-input-row .btn {
  border: 0;
  cursor: pointer;
  height: 56px;
  white-space: nowrap;
}

.tracking-input-row .btn i {
  margin-left: 8px;
}

.tracking-help,
.tracking-error {
  font-size: 12px;
  margin: 10px 0 0;
}

.tracking-help {
  color: #667085;
}

.tracking-error {
  color: #b42318;
  font-weight: 600;
}

.form-honeypot {
  height: 1px !important;
  left: -10000px !important;
  overflow: hidden !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

.server-form-banner {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.server-form-banner.success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.server-form-banner.error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.patient-details-section {
  background: #f7fbff;
}

.patient-details-shell {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-width: 0;
}

.patient-status-card,
.patient-support-card {
  background: #fff;
  border: 1px solid #dceaf7;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(27, 67, 103, 0.08);
  min-width: 0;
}

.patient-status-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4edf5;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px 38px 28px;
}

.patient-status-header h1 {
  color: #2c2d3f;
  font-size: 30px;
  line-height: 1.25;
  margin: 0;
}

.tracking-reference {
  background: #eef7ff;
  border-radius: 6px;
  color: #155ea8;
  flex: 0 0 auto;
  padding: 12px 16px;
  text-align: right;
}

.tracking-reference span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracking-reference strong {
  display: block;
  font-size: 16px;
  margin-top: 3px;
}

.patient-progress {
  padding: 38px;
}

.patient-profile-intro {
  align-items: center;
  border-bottom: 1px solid #e4edf5;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.patient-public-photo,
.patient-photo-placeholder {
  border: 4px solid #eaf4fd;
  border-radius: 10px;
  flex: 0 0 104px;
  height: 104px;
  object-fit: cover;
  width: 104px;
}

.patient-photo-placeholder {
  align-items: center;
  background: #eef7ff;
  color: var(--primary-color);
  display: flex;
  font-size: 42px;
  justify-content: center;
}

.patient-profile-intro h2 {
  color: #2c2d3f;
  font-size: 25px;
  margin: 0 0 7px;
}

.patient-profile-intro p {
  color: #667085;
  margin: 0;
}

.patient-progress-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 34px;
}

.patient-progress-summary > div {
  min-width: 0;
}

.patient-progress-icon {
  align-items: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 52px;
  font-size: 23px;
  height: 52px;
  justify-content: center;
}

.patient-progress-summary h2 {
  color: #2c2d3f;
  font-size: 22px;
  margin: 0 0 5px;
}

.patient-progress-summary p {
  color: #667085;
  margin: 0;
}

.care-progress-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 34px 0 40px;
  position: relative;
}

.care-progress-rail::before {
  background: #d7e4ef;
  content: "";
  height: 3px;
  left: 9%;
  position: absolute;
  right: 9%;
  top: 14px;
}

.care-stage {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.care-stage::before {
  background: #fff;
  border: 3px solid #cbd9e7;
  border-radius: 50%;
  content: "";
  display: block;
  height: 29px;
  margin: 0 auto 11px;
  width: 29px;
}

.care-stage.complete::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 6px #fff;
}

.care-stage.current {
  color: #155ea8;
}

.care-stage.current::before {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(26, 118, 209, 0.12);
}

.patient-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.patient-detail-item {
  background: #f7fbff;
  border: 1px solid #e1ebf4;
  border-radius: 7px;
  padding: 18px;
}

.patient-detail-item span {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.patient-detail-item strong {
  color: #2c2d3f;
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.patient-public-note {
  background: #eef7ff;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  margin-top: 22px;
  padding: 20px 22px;
}

.patient-public-note span {
  color: #155ea8;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.patient-public-note p {
  color: #344054;
  line-height: 1.75;
  margin: 0;
}

.patient-support-card {
  align-self: start;
  padding: 30px;
}

.patient-support-card i {
  color: var(--primary-color);
  font-size: 34px;
}

.patient-support-card h2 {
  color: #2c2d3f;
  font-size: 21px;
  margin: 18px 0 10px;
}

.patient-support-card p {
  color: #667085;
  font-size: 14px;
  line-height: 1.75;
}

.patient-support-card .support-email {
  color: var(--primary-color);
  display: inline-block;
  font-weight: 700;
  margin: 8px 0 24px;
  overflow-wrap: anywhere;
}

.patient-support-card .patient-address,
.footer .footer-address {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.patient-support-card .patient-address i,
.footer .footer-address i {
  font-size: 18px;
  margin-top: 3px;
}

.footer .footer-address {
  margin-top: 16px;
}

.patient-support-card .btn {
  display: block;
  text-align: center;
}

.tracking-empty-state {
  padding: 58px 38px;
  text-align: center;
}

.tracking-empty-state i {
  color: var(--primary-color);
  font-size: 50px;
}

.tracking-empty-state h2 {
  color: #2c2d3f;
  font-size: 25px;
  margin: 20px 0 10px;
}

.tracking-empty-state p {
  color: #667085;
  margin: 0 auto 24px;
  max-width: 520px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(26, 118, 209, 0.35);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .tracking-panel,
  .patient-details-shell {
    grid-template-columns: 1fr;
  }

  .tracking-panel {
    gap: 34px;
    padding: 42px;
  }

  .portfolio-slider .swiper-slide {
    flex-basis: calc(50% - 7.5px);
  }

  .testimonial-slider .swiper-slide {
    flex-basis: 50%;
  }

  .clients-slider .swiper-slide {
    flex-basis: 33.333%;
  }
}

@media (max-width: 767px) {
  .patient-details-section .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .tracking-panel {
    padding: 32px 22px;
  }

  .tracking-copy h2 {
    font-size: 27px;
  }

  .patient-tracking-form {
    padding: 22px;
  }

  .tracking-input-row {
    grid-template-columns: 1fr;
  }

  .tracking-input-row .btn {
    width: 100%;
  }

  .patient-status-header {
    display: block;
    padding: 28px 24px 24px;
  }

  .patient-status-header h1 {
    font-size: 27px;
  }

  .tracking-reference {
    margin-top: 20px;
    text-align: left;
  }

  .patient-progress {
    padding: 28px 24px;
  }

  .patient-profile-intro {
    align-items: flex-start;
  }

  .patient-public-photo,
  .patient-photo-placeholder {
    flex-basis: 82px;
    height: 82px;
    width: 82px;
  }

  .patient-progress-summary {
    align-items: flex-start;
  }

  .patient-progress-summary p {
    overflow-wrap: anywhere;
  }

  .care-progress-rail {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .care-progress-rail::before {
    bottom: 12%;
    height: auto;
    left: 14px;
    right: auto;
    top: 12%;
    width: 3px;
  }

  .care-stage {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 0;
    text-align: left;
  }

  .care-stage::before {
    flex: 0 0 29px;
    margin: 0;
  }

  .patient-detail-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-slider .swiper-slide,
  .testimonial-slider .swiper-slide {
    flex-basis: 100%;
  }

  .clients-slider .swiper-slide {
    flex-basis: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
