﻿/* ==================================================
   ROOT COLORS
================================================== */

:root {

  --brand-navy: #002b7c;
  --brand-navy-dark: #001a4d;
  --white: #ffffff;
  --brand-gold: #ffb81b;

}


/* ==================================================
   LOADER
================================================== */

.loader-wrapper {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: #ffffff;

  z-index: 999999;

  display: flex;

  align-items: center;
  justify-content: center;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;

}

.loader-wrapper.loaded {

  opacity: 0;
  visibility: hidden;

}

.loader {

  width: 50px;
  height: 50px;

  border: 4px solid #eef0f5;

  border-top: 4px solid var(--brand-navy);

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

}

@keyframes spin {

  100% {
    transform: rotate(360deg);
  }

}

.loder-section {

  position: absolute;

  top: 0;

  width: 50%;
  height: 100%;

  background: var(--brand-navy);

  transition:
    transform 0.5s ease;

}

.loder-section.left-section {
  left: 0;
}

.loder-section.right-section {
  right: 0;
}

.loaded .loder-section.left-section {
  transform: translateX(-100%);
}

.loaded .loder-section.right-section {
  transform: translateX(100%);
}


/* ==================================================
   GENERAL
================================================== */

h1 {
  font-weight: 500 !important;
}


/* ==================================================
   WELCOME SECTION
================================================== */

.welcome-section {

  padding: 70px 0;

  background: #ffffff;

}

.welcome-grid {

  display: flex;

  align-items: center;

  gap: 60px;

  flex-wrap: wrap;

}

.welcome-copy {

  flex: 1 1 440px;

  min-width: 300px;

}

.welcome-copy .eyebrow-tag {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(0, 43, 124, 0.08);

  color: var(--brand-navy);

  font-size: 11px !important;

  font-weight: 700;

  letter-spacing: 0.4px;

  padding: 6px 14px;

  border-radius: 30px;

  font-family: 'Poppins', sans-serif;

  margin-bottom: 18px;

}

.welcome-copy h1 {

  font-family: 'Poppins', sans-serif;

  font-size: 34px !important;

  font-weight: 700 !important;

  color: #0d1b3e;

  line-height: 1.25;

  margin: 0 0 22px 0;

}

.welcome-copy h1 span {

  color: var(--brand-navy);

}

.welcome-copy h3.tagline {

  font-family: 'Poppins', sans-serif;

  font-size: 17px !important;

  font-weight: 600;

  color: var(--brand-navy);

  margin: 0 0 14px 0;

  padding-left: 16px;

  border-left: 3px solid var(--brand-gold);

}

.welcome-copy p {

  color: #5a6479;

  font-size: 14.5px !important;

  line-height: 1.85;

  margin: 0 0 18px 0;

}

.welcome-copy p:last-of-type {

  margin-bottom: 0;

}

.welcome-media {

  flex: 1 1 440px;

  min-width: 300px;

  position: relative;

}

.welcome-media .media-frame {

  position: relative;

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 20px 45px rgba(0, 24, 68, 0.18);

}

.welcome-media img {

  width: 100%;

  display: block;

  aspect-ratio: 4 / 3;

  object-fit: cover;

}

.welcome-media .media-badge {

  position: absolute;

  left: -18px;

  bottom: -18px;

  background: var(--brand-navy);

  color: #ffffff;

  border-radius: 14px;

  padding: 18px 22px;

  box-shadow:
    0 12px 28px rgba(0, 24, 68, 0.25);

  font-family: 'Poppins', sans-serif;

}

.welcome-media .media-badge strong {

  display: block;

  font-size: 26px;

  line-height: 1;

  margin-bottom: 4px;

  color: var(--brand-gold);

}

.welcome-media .media-badge span {

  font-size: 11px !important;

  letter-spacing: 0.3px;

  color: #dfe6f5;

}


/* ==================================================
   DOCTORS SECTION
================================================== */

.doctors-section {

  padding: 70px 0 90px;

  background: #f7f8fb;

}

.doctors-heading {

  margin-bottom: 40px;

  text-align: center;

}

.doctors-heading .eyebrow-tag {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(0, 43, 124, 0.08);

  color: var(--brand-navy);

  font-size: 11px !important;

  font-weight: 700;

  letter-spacing: 0.4px;

  padding: 6px 14px;

  border-radius: 30px;

  font-family: 'Poppins', sans-serif;

  margin-bottom: 16px;

}

.doctors-heading h2 {

  font-family: 'Poppins', sans-serif;

  font-size: 28px !important;

  font-weight: 700;

  color: #0d1b3e;

  margin: 0 0 10px 0;

}

.doctors-heading p {

  color: #5a6479;

  font-size: 14px !important;

  max-width: 560px;

  margin: 0 auto;

  line-height: 1.7;

}

.doctor-grid {

  display: flex;

  flex-wrap: wrap;

  gap: 26px;

  justify-content: center;

}

.doctor-card {

  flex: 1 1 320px;

  max-width: calc(50% - 13px);

  background: #ffffff;

  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 4px 18px rgba(0, 24, 68, 0.07);

  border: 1px solid #eef0f5;

  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;

}

.doctor-card:hover {

  box-shadow:
    0 14px 34px rgba(0, 24, 68, 0.13);

  transform: translateY(-3px);

}

.doctor-card-photo {

  position: relative;

  height: 520px;

}

.doctor-card-photo img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}

.doctor-card-body {

  padding: 22px 24px 26px;

  border-top: 3px solid var(--brand-gold);

  text-align: center;

}

.doctor-card-body h3 {

  font-family: 'Poppins', sans-serif;

  font-size: 18px !important;

  font-weight: 700;

  color: #0d1b3e;

  margin: 0 0 6px 0;

  letter-spacing: 0.2px;

}

.doctor-card-body .doctor-role {

  display: inline-block;

  font-family: 'Poppins', sans-serif;

  font-size: 12.5px !important;

  font-weight: 600;

  color: var(--brand-navy);

  background: rgba(0, 43, 124, 0.08);

  padding: 4px 14px;

  border-radius: 30px;

  margin-bottom: 12px;

}

.doctor-card-body p.doctor-desc {

  color: #5a6479;

  font-size: 13.5px !important;

  line-height: 1.75;

  margin: 0 0 14px 0;

}

.doctor-card-body .doc-btn-book {

  display: inline-block;

  background: var(--brand-navy);

  color: #ffffff;

  font-weight: 700;

  font-size: 13px !important;

  padding: 10px 28px;

  border: none;

  border-radius: 30px;

  cursor: pointer;

  font-family: 'Poppins', sans-serif;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;

}

.doctor-card-body .doc-btn-book:hover {

  background: var(--brand-navy-dark);

  transform: translateY(-1px);

}


/* ==================================================
   MORE DOCTORS BUTTON
================================================== */

.more-doctors-wrap {

  width: 100%;

  display: flex;

  justify-content: center;

  margin-top: 38px;

}

.more-doctors-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  min-width: 180px;

  padding: 13px 24px;

  background: var(--brand-navy);

  color: #ffffff !important;

  border: 2px solid var(--brand-navy);

  border-radius: 50px;

  font-family: 'Poppins', sans-serif;

  font-size: 13px;

  font-weight: 700;

  text-decoration: none !important;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;

}

.more-doctors-btn i {

  font-size: 13px;

  transition:
    transform 0.25s ease;

}

.more-doctors-btn:hover {

  background: #ffffff;

  color: var(--brand-navy) !important;

  transform: translateY(-2px);

  box-shadow:
    0 8px 22px rgba(0, 43, 124, 0.18);

}

.more-doctors-btn:hover i {

  transform: translateX(5px);

}


/* ==================================================
   BOOKING MODAL - IMPORTANT SCROLL FIX
================================================== */

/*
   When popup is open:
   background page is locked.
*/

html.booking-scroll-lock,
body.booking-scroll-lock {

  overflow: hidden !important;

  height: 100% !important;

}


/*
   Overlay
*/

.booking-modal-overlay {

  position: fixed !important;

  inset: 0 !important;

  width: 100% !important;

  height: 100vh !important;

  height: 100dvh !important;

  background:
    rgba(0, 20, 60, 0.55);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 999999 !important;

  padding: 20px;

  box-sizing: border-box;

  overflow-y: auto !important;

  overflow-x: hidden !important;

  /*
     THIS IS IMPORTANT
     Allows touch scrolling
  */

  touch-action: pan-y !important;

  overscroll-behavior: contain !important;

}


/*
   Open state
*/

.booking-modal-overlay.is-open {

  display: flex !important;

}


/*
   Actual popup
*/

.booking-modal {

  background: #ffffff;

  width: 100%;

  max-width: 440px;

  /*
     IMPORTANT:
     Popup gets its own scroll area
  */

  max-height: calc(100vh - 40px);

  max-height: calc(100dvh - 40px);

  border-radius: 16px;

  padding: 28px 26px 26px;

  box-sizing: border-box;

  position: relative;

  box-shadow:
    0 20px 50px rgba(0, 20, 60, 0.35);

  /*
     IMPORTANT
  */

  overflow-y: auto !important;

  overflow-x: hidden !important;

  /*
     Prevent parent ScrollSmoother
     from taking scroll
  */

  touch-action: pan-y !important;

  overscroll-behavior: contain !important;

  -webkit-overflow-scrolling: touch !important;

  /*
     Make sure popup can shrink
  */

  flex-shrink: 0;

}


/*
   Popup scrollbar
*/

.booking-modal::-webkit-scrollbar {

  width: 7px;

}

.booking-modal::-webkit-scrollbar-track {

  background: #f1f3f8;

  border-radius: 10px;

}

.booking-modal::-webkit-scrollbar-thumb {

  background: var(--brand-navy);

  border-radius: 10px;

}

.booking-modal {

  scrollbar-width: thin;

  scrollbar-color:
    var(--brand-navy)
    #f1f3f8;

}


/* ==================================================
   MODAL CLOSE BUTTON
================================================== */

.booking-modal-close {

  position: absolute;

  top: 14px;

  right: 14px;

  width: 32px;

  height: 32px;

  border: none;

  background: #f1f3f8;

  color: var(--brand-navy);

  border-radius: 50%;

  font-size: 16px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition:
    background-color 0.2s ease;

}

.booking-modal-close:hover {

  background: #e1e6f2;

}


/* ==================================================
   MODAL TITLE
================================================== */

.booking-modal h3 {

  margin: 0 0 4px 0;

  font-size: 20px!important;

  font-weight: 700!important;

  color: var(--brand-navy);

}

.booking-modal-doctor {

  margin: 0 0 20px 0;

  font-size: 13.5px!important;

  color: #6b7690;

}

.booking-modal-doctor span {

  font-weight: 600;

  color: var(--brand-navy);

}


/* ==================================================
   BOOKING FIELDS
================================================== */

.booking-field {

  margin-bottom: 14px;

}

.booking-field label {

  display: block;

  font-size: 12.5px!important;

  font-weight: 600;

  color: #17233b;

  margin-bottom: 6px;

}

.booking-field input,
.booking-field select,
.booking-field textarea {

  width: 100%;

  box-sizing: border-box;

  padding: 11px 13px;

  border:
    1.5px solid #e3e7f0;

  border-radius: 8px;

  font-size: 13.5px!important;

  font-family: inherit;

  color: #17233b;

  transition:
    border-color 0.2s ease;

}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {

  outline: none;

  border-color: var(--brand-navy);

}

.booking-field textarea {

  resize: vertical;

  min-height: 70px;

}

.booking-field-error {

  display: none;

  color: #d13c3c;

  font-size: 11.5px;

  margin-top: 5px;

  font-weight: 500;

}

.booking-field-error.is-visible {

  display: block;

}

.booking-field input.has-error,
.booking-field textarea.has-error {

  border-color: #d13c3c;

}


/* ==================================================
   CHECKBOX
================================================== */

.booking-checkbox-label {

  display: flex !important;

  align-items: center;

  gap: 8px;

  margin: 10px 0 0 0;

  font-size: 12.5px !important;

  font-weight: 500 !important;

  color: #17233b;

  cursor: pointer;

}

.booking-checkbox-label input[type="checkbox"] {

  width: 16px;

  height: 16px;

  accent-color: var(--brand-navy);

  cursor: pointer;

  flex-shrink: 0;

}


/* ==================================================
   SUBMIT BUTTON
================================================== */

.booking-submit-btn {

  width: 100%;

  background: var(--brand-navy);

  color: #ffffff;

  border: none;

  padding: 13px 20px;

  border-radius: 30px;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  margin-top: 6px;

  transition:
    background-color 0.25s ease;

}

.booking-submit-btn:hover {

  background: var(--brand-navy-dark);

}

.booking-success-msg {

  display: none;

  text-align: center;

  padding: 10px 0 4px;

  color: #1c7c3c;

  font-size: 13.5px;

  font-weight: 600;

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 900px) {

  .doctor-card {

    max-width: 100%;

  }

}


@media (max-width: 767px) {

  .welcome-copy h1 {

    font-size: 26px !important;

  }

  .welcome-media .media-badge {

    left: 12px;

    bottom: 12px;

  }

}


@media (max-width: 575px) {

  .booking-modal-overlay {

    padding: 10px;

    align-items: flex-start;

    /*
       Important for mobile
    */

    overflow-y: auto !important;

  }


  .booking-modal {

    width: 100%;

    max-width: 100%;

    max-height:
      calc(100vh - 20px);

    max-height:
      calc(100dvh - 20px);

    margin: 10px 0;

    padding:
      24px 18px 22px;

    border-radius: 14px;

    /*
       FORCE INTERNAL SCROLL
    */

    overflow-y: scroll !important;

    overflow-x: hidden !important;

    touch-action: pan-y !important;

    -webkit-overflow-scrolling: touch !important;

  }


  .booking-modal h3 {

    font-size: 19px;

  }


  .booking-field {

    margin-bottom: 13px;

  }


  .more-doctors-wrap {

    margin-top: 30px;

  }


  .more-doctors-btn {

    min-width: 165px;

    padding: 11px 20px;

    font-size: 12.5px;

  }

}

