/* components.css - Medanta Dental Clinic Modular UI Components */

/* Top bar & Sticky header */
.top-bar {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  padding: 8px 0;
  font-weight: 400;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}
.top-bar a:hover {
  color: var(--primary-color);
}

.sticky-navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  z-index: 1000;
}
.sticky-navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(45, 156, 219, 0.3);
}
.brand-text-name {
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-text-tag {
  font-size: 11px;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary) !important;
  padding: 10px 15px !important;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(45, 156, 219, 0.05);
}

/* Premium Button Styling */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: #1d80b7;
  border-color: #1d80b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 156, 219, 0.25);
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 156, 219, 0.15);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #1e8d4c;
  border-color: #1e8d4c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
}

/* Hero Carousel */
.hero-carousel-container {
  position: relative;
}
.carousel-item {
  height: 650px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 30%, rgba(15, 23, 42, 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 5;
  color: #FFFFFF;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  max-width: 600px;
}

/* Floating Appointment Form Widget */
.floating-appointment-widget {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(-80px);
  position: relative;
  z-index: 10;
}

/* Statistics Cards */
.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Service Card Design */
.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}
.service-card:hover::before {
  transform: scaleY(1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 156, 219, 0.15);
}
.service-card-icon {
  width: 65px;
  height: 65px;
  background-color: rgba(45, 156, 219, 0.08);
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 25px;
  transition: var(--transition);
}
.service-card:hover .service-card-icon {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}
.service-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}
.service-card-desc {
  font-size: 14.5px;
  margin-bottom: 20px;
}
.service-card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card-link:hover {
  color: var(--secondary-color);
  gap: 10px;
}

/* Before/After Drag Slider */
.before-after-wrapper {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.before-after-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 16px;
}
.before-after-slider .img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.before-after-slider .foreground-img {
  width: 50%;
}
.before-after-slider .slider-range {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: ew-resize;
  z-index: 10;
}
.before-after-slider .slider-button {
  pointer-events: none;
  position: absolute;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  left: calc(50% - 2px);
  top: 0;
  z-index: 9;
}
.before-after-slider .slider-button::before {
  content: '↔';
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid #FFFFFF;
  color: #FFFFFF;
  font-weight: bold;
  top: calc(50% - 21px);
  left: calc(50% - 21px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Clinic technology list */
.tech-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tech-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}
.tech-card-icon {
  font-size: 32px;
  color: var(--secondary-color);
}

/* Service Navigation Tab Pills */
.services-nav-pills .nav-link {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background-color: var(--card-bg);
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 10px 24px !important;
  margin-right: 8px;
  margin-bottom: 8px;
}
.services-nav-pills .nav-link.active {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color);
}

/* Doctors Card Profile */
.doctor-profile-card {
  background-color: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.doctor-image-wrapper {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.doctor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.doctor-profile-card:hover .doctor-image-wrapper img {
  transform: scale(1.03);
}
.doctor-specialty-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--secondary-color);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.schedule-grid-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.schedule-grid-item:last-child {
  border-bottom: none;
}

/* Testimonial Review Grid */
.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.testimonial-quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: rgba(45, 156, 219, 0.1);
}
.testimonial-rating {
  color: #FFC107;
  font-size: 16px;
  margin-bottom: 15px;
}
.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

/* Gallery layout style */
.gallery-filter-btn {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  padding: 8px 20px;
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  height: 280px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 156, 219, 0.85);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 36px;
  color: #FFFFFF;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-caption {
  color: #FFFFFF;
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* Blog Cards */
.blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.blog-image-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.05);
}
.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}
.blog-meta {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* FAQ Accordions search and components */
.faq-search-input {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 14px 24px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  background-color: var(--card-bg);
  color: var(--text-primary);
}
.faq-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(45, 156, 219, 0.15);
  outline: none;
}
.accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
}
.accordion-button {
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16.5px;
  padding: 20px;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(45, 156, 219, 0.05);
  color: var(--primary-color);
  box-shadow: none;
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231F2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
body.dark-theme .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F8FAFC'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 20px;
  line-height: 1.7;
}

/* Interactive Wizard Scheduler Form styling */
.booking-step {
  display: none;
}
.booking-step.active {
  display: block;
}
.booking-progress-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.booking-progress-container::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}
.booking-progress-bar-fill {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  width: 0%;
  height: 3px;
  background-color: var(--primary-color);
  z-index: 2;
  transition: var(--transition);
}
.booking-progress-step {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 50px;
}
.booking-step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  transition: var(--transition);
}
.booking-progress-step.active .booking-step-num {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(45, 156, 219, 0.25);
}
.booking-progress-step.completed .booking-step-num {
  border-color: var(--secondary-color);
  background-color: var(--secondary-color);
  color: #FFFFFF;
}
.booking-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.booking-progress-step.active .booking-step-label {
  color: var(--primary-color);
}
.booking-progress-step.completed .booking-step-label {
  color: var(--secondary-color);
}

.service-pill-btn {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.service-pill-btn:hover, .service-pill-btn.active {
  border-color: var(--primary-color);
  background-color: rgba(45, 156, 219, 0.03);
  transform: translateY(-3px);
}
.service-pill-btn.active {
  border-color: var(--primary-color);
  background-color: rgba(45, 156, 219, 0.08);
  box-shadow: 0 4px 15px rgba(45, 156, 219, 0.1);
}
.service-pill-icon {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Custom Interactive Calendar and slot pills */
.calendar-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}
.calendar-day-header {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}
.calendar-day-cell {
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition);
  background-color: rgba(0,0,0,0.02);
  border: 1px solid transparent;
}
.calendar-day-cell:hover:not(.disabled) {
  background-color: rgba(45, 156, 219, 0.1);
  border-color: var(--primary-color);
}
.calendar-day-cell.active {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color);
}
.calendar-day-cell.disabled {
  color: rgba(0,0,0,0.15);
  cursor: not-allowed;
  background-color: transparent;
}
body.dark-theme .calendar-day-cell.disabled {
  color: rgba(255,255,255,0.15);
}

.time-slot-pill {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--card-bg);
}
.time-slot-pill:hover:not(.booked) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.time-slot-pill.active {
  border-color: var(--secondary-color) !important;
  background-color: var(--secondary-color) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}
.time-slot-pill.booked {
  background-color: rgba(0,0,0,0.05);
  border-color: transparent;
  color: rgba(0,0,0,0.3);
  cursor: not-allowed;
}
body.dark-theme .time-slot-pill.booked {
  background-color: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
}

/* Receipt Ticket Component */
.appointment-receipt {
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 30px;
  color: #1F2937;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.receipt-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14.5px;
}
.receipt-label {
  font-weight: 600;
  color: #64748B;
}
.receipt-value {
  font-weight: 700;
  color: #1F2937;
}

/* Footer layout */
footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 25px;
}
footer a {
  color: rgba(255, 255, 255, 0.75);
}
footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0;
  font-size: 13.5px;
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
}
.custom-toast {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.3s ease;
  margin-bottom: 10px;
}

/* Emergency floating dial */
.emergency-pulse-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
  z-index: 999;
  cursor: pointer;
}
.emergency-pulse-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  top: 0;
  left: 0;
  animation: pulseAnim 2s infinite ease-out;
}

.back-to-top {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #FFFFFF;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(45, 156, 219, 0.25);
  z-index: 998;
  cursor: pointer;
  transition: var(--transition);
}
.back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--dark-color);
}
