/* ==========================================================================
   MEDIBILIS — Modals & Interactive Components (Informational)
   Completely Cleaned: Cart Drawer and E-Shop Checkout Removed
   ========================================================================== */

/* --------------------------------------------------------------------------
   Modal Backdrop & Overlay System
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--light-grey);
  color: var(--primary);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background-color: var(--white-smoke);
  border-radius: 0 0 24px 24px;
}

/* --------------------------------------------------------------------------
   ABILIA Support / QR Code Modal
   -------------------------------------------------------------------------- */
.qr-modal-body {
  text-align: center;
}

.qr-code-wrapper {
  margin: 1.5rem auto;
  width: 220px;
  height: 220px;
  background: var(--white);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper img, .qr-code-wrapper canvas {
  width: 100%;
  height: 100%;
}

.qr-bank-details {
  background-color: var(--white-smoke);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: left;
  border: 1px solid var(--border-light);
}

.qr-bank-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
}

.qr-bank-row:last-child {
  margin-bottom: 0;
}

.qr-bank-row span:first-child {
  color: var(--text-muted);
}

.qr-bank-row span:last-child {
  font-weight: 600;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Service Detail Modal Elements
   -------------------------------------------------------------------------- */
.service-modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.service-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-spec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* --------------------------------------------------------------------------
   News Story Modal Elements
   -------------------------------------------------------------------------- */
.news-article-header {
  margin-bottom: 1.5rem;
}

.news-article-date {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.news-article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Video Modal Elements
   -------------------------------------------------------------------------- */
.video-modal-card {
  max-width: 900px;
  background: var(--black);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.video-modal-card .modal-header {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--border-dark);
}

.video-modal-card .modal-header h3 {
  color: var(--white);
}

.video-modal-card .modal-close {
  color: rgba(255, 255, 255, 0.7);
}

.video-modal-card .modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--black);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
