:root {
  --vc-primary: #2f80ed;
  --vc-primary-dark: #1d4ed8;
  --vc-primary-light: #eaf4ff;
  --vc-success: #10b981;
  --vc-text: #1e293b;
  --vc-muted: #64748b;
  --vc-border: #dce7f5;
  --vc-bg: #f5faff;
  --vc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.vc-modal-open {
  overflow: hidden;
}

.video-consult-page {
  color: var(--vc-text);
  background: var(--vc-bg);
}

.video-consult-section {
  min-height: 70vh;
  padding: 70px 0;
  background: var(--vc-bg);
}

.video-consult-page .container {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.video-consult-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 35px;
}

.video-consult-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #edf4ff;
  color: #2563eb;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.video-consult-page .page-header h1 {
  line-height: 1.2;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.video-consult-page .page-header p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--vc-muted);
  margin: 0;
}

.search-filter-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 35px;
}

.search-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fbff;
  border: 1px solid #dceeff;
  border-radius: 14px;
  padding: 14px 18px;
  transition: 0.25s ease;
}

.search-box:hover,
.search-box:focus-within {
  border-color: var(--vc-primary);
  background: #fff;
}

.search-box i {
  color: var(--vc-primary);
  font-size: 16px;
}

.search-box select {
  cursor: pointer;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #475569;
  outline: none;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 10px;
}

.filter-container select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #dceeff;
  background: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: 0.25s ease;
}

.filter-container select:hover,
.filter-container select:focus {
  border-color: var(--vc-primary);
}

.filter-container select:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
}

.filter-actions {
  margin-top: 12px;
  padding-left: 6px;
}

.reset-filters-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--vc-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 0 25px;
}

.result-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--vc-text);
  margin: 0;
}

.sort-note {
  font-size: 14px;
  color: var(--vc-muted);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.video-consult-page .doctor-card {
  background: #fff;
  border: 1px solid #e5eef9;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--vc-shadow);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  width: 100%;
  justify-self: center;
}

.video-consult-page .doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(47, 128, 237, 0.15);
}

.doctor-image {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #dceeff;
  background: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vc-primary);
  font-size: 34px;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-content {
  width: 100%;
}

.doctor-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--vc-text);
  margin: 0 0 6px;
}

.specialization {
  color: var(--vc-primary);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.hospital {
  color: var(--vc-muted);
  font-size: 14px;
  margin: 0 0 18px;
  min-height: 20px;
}

.consultation-fee {
  background: #f8fbff;
  border: 1px solid #dceeff;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  margin: 18px 0;
}

.consultation-fee h3 {
  color: var(--vc-primary);
  font-size: 14px;
  text-align: center;
  margin: 0;
}

.availability {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  padding: 8px 14px;
  border-radius: 30px;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.book-btn,
.location-btn,
.primary-btn {
  min-height: 42px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.book-btn,
.primary-btn {
  border: none;
  background: var(--vc-primary);
  color: #fff;
}

.book-btn:hover,
.primary-btn:hover {
  background: var(--vc-primary-dark);
}

.location-btn {
  border: 1px solid #dceeff;
  background: #fff;
  color: var(--vc-primary);
}

.location-btn:hover {
  background: #f5faff;
  border-color: var(--vc-primary);
}

.book-btn i,
.location-btn i,
.primary-btn i {
  margin-right: 8px;
}

.empty-state {
  width: 100%;
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed #d6e6fa;
}

.empty-state i {
  font-size: 64px;
  color: var(--vc-primary);
  margin-bottom: 20px;
}

.empty-state h2 {
  margin: 0 0 10px;
  color: var(--vc-text);
}

.empty-state p,
.vc-loading-msg {
  color: var(--vc-muted);
}

.vc-loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.booking-modal {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: vcPopup 0.25s ease;
  position: relative;
}

@keyframes vcPopup {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid #edf2f7;
  background: #f8fbff;
}

.modal-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--vc-text);
  margin: 0 0 10px;
}

.doctor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 18px;
  color: var(--vc-muted);
}

.meta-separator {
  color: #cbd5e1;
}

#modalFee {
  color: var(--vc-primary);
  font-weight: 800;
}

.close-btn {
  position: sticky;
  top: 20px;
  float: right;
  margin: 20px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #f1f5f9;
  transition: 0.25s ease;
}

.close-btn:hover {
  background: var(--vc-primary);
  color: #fff;
}

.booking-note {
  margin: 0 32px 28px;
  padding: 18px 22px;
  border: 1px solid #d9f2df;
  background: #f4fff7;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.booking-note-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.booking-note-left i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.booking-note-left h4 {
  color: #166534;
  font-size: 19px;
  margin: 0 0 6px;
}

.booking-note-left p {
  color: #475569;
  font-size: 15px;
  margin: 0;
}

.selected-count {
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #cdedd4;
  font-weight: 800;
  color: #166534;
  min-width: 140px;
  text-align: center;
}

.date-section,
.slot-section,
.notes-section {
  padding: 0 32px 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title i {
  color: var(--vc-primary);
  font-size: 22px;
}

.section-title h3 {
  font-size: 24px;
  color: var(--vc-text);
  margin: 0;
}

.date-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.date-list {
  display: flex;
  flex: 1;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.date-list::-webkit-scrollbar {
  display: none;
}

.date-item {
  min-width: 90px;
  padding: 14px;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid #dceeff;
  transition: 0.25s ease;
  background: #fff;
}

.date-item.has-slots:not(.active) {
  border-color: #86efac;
  background: #f0fdf4;
}

.date-item:hover {
  border-color: var(--vc-primary);
}

.date-item.active {
  background: var(--vc-primary);
  color: #fff;
  border-color: var(--vc-primary);
}

.date-nav-btn {
  min-width: 90px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--vc-primary);
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.date-nav-btn:hover {
  background: var(--vc-primary);
  color: #fff;
}

.slot-group {
  margin-bottom: 25px;
}

.slot-group h4 {
  color: #475569;
  margin: 0 0 14px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.slot-btn {
  position: relative;
  border: 1px solid #dceeff;
  background: #fff;
  border-radius: 14px;
  padding: 14px 28px 14px 14px;
  cursor: pointer;
  transition: 0.25s ease;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.slot-btn:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.slot-btn.active {
  background: var(--vc-primary);
  color: #fff;
  border-color: var(--vc-primary);
}

.slot-order {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--vc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.slot-helper {
  margin-top: 18px;
  color: var(--vc-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-helper i {
  color: #f59e0b;
}

.notes-section textarea {
  width: 100%;
  min-height: 130px;
  resize: none;
  border: 1px solid #dceeff;
  border-radius: 16px;
  padding: 18px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.25s ease;
  box-sizing: border-box;
}

.notes-section textarea:focus {
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-top: 1px solid #edf2f7;
}

.cancel-btn,
.confirm-btn {
  min-height: 56px;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.cancel-btn {
  width: 180px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}

.confirm-btn {
  flex: 1;
  border: none;
  background: var(--vc-primary);
  color: #fff;
  transition: 0.25s ease;
}

.confirm-btn:hover {
  background: var(--vc-primary-dark);
}

.confirm-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.75;
}

.no-slots-message {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #d32f2f;
  padding: 25px 15px;
}

.no-slots-message.is-muted {
  color: var(--vc-muted);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
  padding: 20px;
}

.popup-overlay.show {
  display: flex;
}

.popup-box {
  width: 400px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: vcPopup 0.2s ease;
}

.popup-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}

.popup-icon.success {
  background: #22c55e;
}

.popup-icon.error {
  background: #ef4444;
}

.popup-icon.warning {
  background: #f59e0b;
}

.popup-icon.info {
  background: #0e82fd;
}

#popupTitle {
  font-size: 24px;
  color: #222;
  margin: 0 0 12px;
}

#popupMessage {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 25px;
}

.popup-btn {
  background: #0e82fd;
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.portal-msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.portal-msg-error {
  background: #fee2e2;
  color: #991b1b;
}

.portal-msg-ok {
  background: #ecfdf5;
  color: #065f46;
}

.vc-my-requests-wrap {
  margin-top: 38px;
}

.vc-section-title {
  font-size: 1.35rem;
  color: #0f172a;
  margin: 0 0 1rem;
}

.vc-requests-list,
.vc-request-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.vc-request-card {
  max-width: 330px;
}

.video-consult-portal .vc-request-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-consult-portal .vc-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}

.video-consult-portal .vc-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.video-consult-portal .vc-status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.video-consult-portal .vc-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.video-consult-portal .vc-slot-option {
  display: block;
  margin: 0.35rem 0;
}

.video-consult-portal .vc-schedule-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

body.landing-mode2 .video-consult-page .doctor-card {
  max-width: 360px;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: var(--vc-shadow);
}

body.landing-mode2 .video-consult-page .doctor-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--vc-text);
  margin: 0 0 6px;
}

body.landing-mode2 .video-consult-page .doctor-card .specialization {
  color: var(--vc-primary);
  font-size: 15px;
  font-weight: 700;
}

body.landing-mode2 .video-consult-page .doctor-card .availability {
  color: #16a34a;
  margin-bottom: 18px;
}

body.landing-mode2 .video-consult-page .doctor-card .location-btn {
  background: #fff;
  color: var(--vc-primary);
  font-size: 14px;
  font-weight: 700;
  margin-top: 0;
}

@media (max-width: 992px) {
  .search-container {
    grid-template-columns: 1fr;
  }

  .filter-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .video-consult-section {
    padding: 50px 0;
  }

  .video-consult-page .page-header {
    flex-direction: column;
  }

  .filter-container {
    grid-template-columns: 1fr;
  }

  .result-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-modal {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header,
  .date-section,
  .slot-section,
  .notes-section,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .booking-note {
    margin-left: 20px;
    margin-right: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .selected-count {
    width: 100%;
  }

  .date-navigation {
    gap: 10px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }

  .booking-modal {
    border-radius: 18px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .doctor-meta {
    font-size: 14px;
  }

  .booking-note-left {
    align-items: flex-start;
  }

  .booking-note-left h4 {
    font-size: 15px;
  }

  .section-title h3 {
    font-size: 18px;
  }

  .date-navigation {
    flex-direction: column;
    align-items: stretch;
  }

  .date-nav-btn {
    width: 100%;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
    padding: 16px;
  }

  .cancel-btn,
  .confirm-btn {
    width: 100%;
  }
}
