/* Al-Rashid website polish. Loaded after css/style.css on every page.
   To undo everything: remove the <link ... css/polish.css> line from the pages. */

/* 1. Show every section straight away (no scroll fade-in). */
.wow { visibility: visible !important; animation-name: none !important; }

/* 2. Rounded fields and buttons (round icon buttons keep their shape). */
.form-control, .form-select { border-radius: 10px; }
.btn:not(.rounded-circle):not(.btn-square):not(.btn-sm-square):not(.btn-lg-square) { border-radius: 10px; }

/* 3. Booking form as a card. */
#appointmentForm { background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 10px 30px rgba(16, 32, 30, 0.08); }

/* 4. Cards: rounded with a gentle lift on hover. */
.service-item, .team-item, .feature-item { border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-item:hover, .team-item:hover, .feature-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 32, 30, 0.10); }

/* 5. Payment notice and JazzCash card. */
.payment-alert, .mastercard-container { border-radius: 14px; }

/* 6. Phones. */
@media (max-width: 575px) {
  #appointmentForm { padding: 16px; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important; }
  .slot-btn { padding: 12px 4px !important; }
  .about-fact { width: 190px !important; height: 190px !important; }
  .about-fact h1 { font-size: 2rem; }
  .about-fact p { font-size: .85rem; }
}

/* 7. Features section background: the template photo (img/section-3.jpg) is missing, use our own. */
.container-fluid.feature { background: linear-gradient(rgba(3, 27, 78, 0.35), rgba(3, 27, 78, 0.35)), url("../img/24 Hour Emergency 1.jpg") center center / cover no-repeat !important; }

/* 8. Header: slimmer blue bar, smaller logo, Book Appointment button. */
.container-fluid.bg-primary.text-white.pt-4.pb-5 { padding-top: 12px !important; padding-bottom: 46px !important; }
.container-fluid.bg-primary.text-white .h1 > div.bg-white { width: 64px !important; }
.container-fluid.bg-primary.text-white .h1 svg { width: 64px; height: 64px; }
.container-fluid.bg-primary.text-white .h1 { font-size: 2rem; }
.nav-book-btn { border-radius: 999px !important; padding: 8px 20px !important; font-weight: 600; white-space: nowrap; }
#appointmentForm { scroll-margin-top: 110px; }

/* 9. The hidden pop-up message box (#toast) must never block clicks (it covered the Book Appointment button when scrolled). */
#toast { pointer-events: none; }

/* 10. Doctor cards: no blue hover overlay; gentle photo zoom instead, photo clickable. */
.team-item .team-social { display: none !important; }
.team-item .position-relative::before, .team-item .position-relative::after { display: none !important; }
.team-item img { transition: transform .3s ease; cursor: pointer; }
.team-item:hover img { transform: scale(1.04); }

/* 11. Inner-page title banner: shorter, smaller heading, our building photo (template image testimonial.jpg is missing). */
.page-header { padding-top: 24px !important; padding-bottom: 24px !important; margin-bottom: 32px !important; background: linear-gradient(rgba(3, 27, 78, 0.6), rgba(3, 27, 78, 0.6)), url("../img/Building.jpg") center center / cover no-repeat !important; }
.page-header .container { padding-top: 16px !important; padding-bottom: 16px !important; margin-top: 0 !important; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem) !important; margin-bottom: .5rem !important; }

/* 12. Hide the pop-up message box while it is empty (it showed as a white block on some pages). */
#toast:empty { display: none !important; }

/* 12. Hide the pop-up message box while it is empty (it showed as a white block on some pages). */
#toast:empty { display: none !important; }

/* 13. No language selector (Google Translate). */
#google_translate_element, .goog-te-gadget, .goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }

/* 14. Phones: logo next to the name in the top menu. */
a.navbar-brand.d-lg-none { display: flex; align-items: center; gap: 8px; }
.mobile-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; object-fit: contain; }

/* 14. Logo next to the name: blue bar on computers, top menu on phones. */
.container-fluid.bg-primary.text-white a.h1 { display: flex; align-items: center; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: contain; margin-right: 8px; }
a.navbar-brand.d-lg-none { display: flex; align-items: center; gap: 8px; }
.mobile-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; object-fit: contain; }

/* 15. Blog cards: show the whole header image (1200x630 shape), no decorative circle on it. */
#blog-cards-container img { height: auto !important; aspect-ratio: 1200 / 630; object-fit: cover; }
#blog-cards-container .icon-box-primary::before, #blog-cards-container .icon-box-primary::after { display: none !important; }
#blog-cards-container img { cursor: pointer; }

/* 16. Post page: the header already shows the first image, so hide it at the start of the post text. */
#blog-detail .blog-content > :first-child > img:first-child, #blog-detail .blog-content > img:first-child { display: none !important; }

/* 17. Booking form: Symptoms box before the time slots (slots, payment card and Submit move after it). */
#appointmentForm .row > div:has(#message) { order: 1; }
#appointmentForm .row > div:has(#slotGrid), #appointmentForm .row > div:has(.mastercard-container), #appointmentForm .row > div:has(button[type="submit"]) { order: 2; }

/* 18. Phones: booking form first, address and payment information after it. */
@media (max-width: 991.98px) { .row > div:has(#appointmentForm) { order: -1; } }

/* 19. Payment card: EasyPaisa green instead of black. */
.mastercard-container { background: linear-gradient(135deg, #2fb457 0%, #138a45 60%, #0b6b35 100%) !important; background-image: linear-gradient(135deg, #2fb457 0%, #138a45 60%, #0b6b35 100%) !important; box-shadow: 0 10px 24px rgba(19, 138, 69, 0.25); }

/* 20. Payment card: logo on a white badge, clearer white copy icon. */
.mastercard-logo img { background: #fff; border-radius: 12px; padding: 6px; width: 56px !important; height: 56px !important; object-fit: contain; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.mastercard-chip { filter: brightness(0) invert(1); opacity: 0.95; cursor: pointer; transition: transform .15s ease; }
.mastercard-chip:hover { transform: scale(1.1); }

/* 21. Phones: intro text + address first, then the booking form, then payment information. */
@media (max-width: 991.98px) {
  .row > div:has(+ div #appointmentForm) { display: contents; }
  .row > div:has(+ div #appointmentForm) > * { order: 1; flex: 0 0 100%; max-width: 100%; padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
  .row > div:has(+ div #appointmentForm) > hr, .row > div:has(+ div #appointmentForm) > div:last-child { order: 3; }
  .row > div:has(#appointmentForm) { order: 2 !important; }
}

/* 22. Phones turn the card number into a blue phone link: keep it white like on computers. */
.mastercard-container .mastercard-number, .mastercard-container .mastercard-number a, .mastercard-container a[href^="tel"] { color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important; }

/* 23. Find A Doctor page: no search bar or large "selected doctor" section, just the doctor cards. */
.row:has(> div > #doctor-search), #loading-skeleton, #doctor-profile-container { display: none !important; }
#doctor-cards-container { display: flex !important; }
