
.booking_popup {
  /* Root variables */
  --teal: #0ea5a4;
  --teal-dark: #0b8381;
  --muted: #8b8b8b;
  --card-bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --radius: 12px;
  --max-width: 720px;
  --shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.booking_popup * {
  box-sizing: border-box;
}

.booking_popup .booking-container {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      #e6fbfb 0%,
      transparent 60%
    ),
    radial-gradient(1000px 500px at 90% 20%, #f2f8ff 0%, transparent 60%),
    linear-gradient(180deg, #eef6f6 0%, #f7fafc 60%);
  padding: 32px;
  position: relative;
}

.booking_popup .modal1 {
  width: 100% !important;
  height: 100% !important;
  max-width: var(--max-width) !important;
  background: var(--glass) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(14, 165, 164, 0.15), var(--shadow) !important;
  border: 1px solid rgba(10, 10, 10, 0.04) !important;
  backdrop-filter: blur(8px) !important;
  animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.booking_popup .header {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark)) !important;
  color: white !important;
  padding: 18px 22px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.booking_popup .brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.booking_popup .address {
  font-size: 13px;
  opacity: 0.95;
}

.booking_popup .content {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: transparent;
}

/* Tests list as compact cards */
.booking_popup .tests {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.booking_popup .test-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fbfeff);
  border-radius: 10px;
  border: 1px solid rgba(12, 12, 12, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.booking_popup .test-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.06);
}

.booking_popup .test-left {
  display: flex;
  flex-direction: column;
}

.booking_popup .test-name {
  font-weight: 600;
}

.booking_popup .test-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.booking_popup .price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.booking_popup .market {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.booking_popup .payable {
  font-weight: 700;
  color: var(--teal);
  font-size: 18px;
}

/* Form */
.booking_popup form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.booking_popup .row {
  display: flex;
  gap: 12px;
}

.booking_popup .col {
  flex: 1;
}

.booking_popup .input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.booking_popup .input:focus {
  box-shadow: 0 6px 18px rgba(14, 165, 164, 0.12);
  border-color: var(--teal);
}

.booking_popup .select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.booking_popup .form-card {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fcffff);
  border: 1px solid rgba(12, 12, 12, 0.04);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
  position: relative;
  isolation: isolate;
}

/* Animated gradient border */
.booking_popup .form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(14, 165, 164, 0.5),
    rgba(14, 165, 164, 0) 30%,
    rgba(14, 131, 129, 0.45) 70%,
    rgba(14, 165, 164, 0)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  filter: blur(0.5px);
  animation: borderFlow 6s linear infinite;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.booking_popup .cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking_popup .btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.booking_popup .btn:active {
  transform: translateY(1px) scale(0.98);
}

.booking_popup .btn-primary {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: white;
  position: relative;
  overflow: hidden;
}

.booking_popup .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(-120%);
}

.booking_popup .btn-primary:hover::after {
  transition: transform 0.7s ease;
  transform: translateX(120%);
}

.booking_popup .btn-ghost {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #333;
}

.booking_popup .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid rgba(10, 10, 10, 0.03);
  background: transparent;
}

/* Input labels */
.booking_popup .input-label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

/* Radio groups */
.booking_popup .radio-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking_popup .radio-option {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.booking_popup .radio-single {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Progress bar */
.booking_popup .progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e5f6f6;
  overflow: hidden;
}

.booking_popup .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 0.5s ease;
}

.booking_popup .step-label {
  font-size: 12px;
  color: var(--muted);
}

/* Review box */
.booking_popup .review-box {
  border: 1px dashed rgba(14, 165, 164, 0.35);
  border-radius: 10px;
  padding: 10px;
}

/* Total bar pill */
.booking_popup .total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(14, 165, 164, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fffe, #ffffff);
}

/* Toast */
.booking_popup #toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.booking_popup .toast {
  background: #0ea5a4;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeSlideUp 0.5s ease forwards;
}

/* Input icons */
.booking_popup input[name="patient_name"] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>');
  background-position: 12px center;
  background-repeat: no-repeat;
  padding-left: 38px;
}

.booking_popup input[name="email_id"] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v16H4z"/><path d="m22 6-10 7L2 6"/></svg>');
  background-position: 12px center;
  background-repeat: no-repeat;
  padding-left: 38px;
}

.booking_popup input[name="phone_no"] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2A19.86 19.86 0 0 1 3.09 5.18 2 2 0 0 1 5.11 3h3a2 2 0 0 1 2 1.72 12.66 12.66 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11l-1.27 1.27a16 16 0 0 0 6.86 6.86l1.27-1.27a2 2 0 0 1 2.11-.45 12.66 12.66 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>');
  background-position: 12px center;
  background-repeat: no-repeat;
  padding-left: 38px;
}

.booking_popup input[name="age"] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>');
  background-position: 12px center;
  background-repeat: no-repeat;
  padding-left: 38px;
}

/* Animations */
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Stagger reveal */
.booking_popup .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.booking_popup .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Step transitions */
.booking_popup .step {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease,
    max-height 0.45s ease;
}

.booking_popup .step.in {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  max-height: 800px;
}

/* Responsive */
@media (min-width: 760px) {
  .booking_popup .content {
    grid-template-columns: 1fr;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .booking_popup .tests {
    grid-auto-rows: minmax(60px, auto);
  }
  
  .booking_popup form {
    gap: 16px;
  }
  
  .booking_popup .row {
    gap: 14px;
  }
  
  .booking_popup .header {
    padding: 22px 26px;
  }
}

@media (max-width: 576px) {
  .booking_popup .header {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .booking_popup .header > div > div {
    text-align: left !important;
  }
  
  .booking_popup .footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .booking_popup .test-name {
    font-weight: 400;
    font-size: 14px;
  }
  
  .booking_popup .content {
    padding: 16px;
  }
  
  .booking_popup .row {
    flex-direction: column;
    gap: 10px;
  }
  
  .booking_popup .cta {
    flex-direction: column;
    gap: 8px;
  }
  
  .booking_popup .btn {
    width: 100%;
  }
}

/* Additional responsive styles for modal */
@media (max-width: 768px) {
  .booking_popup .modal1 {
    margin: 0px;
    width: calc(100% - 40px);
  }
  
  .booking_popup .content {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .booking_popup .step.in{
    flex-direction: column;
    gap: 15px;
  }
  .booking_popup .row {
    gap: 20px;
    margin-bottom: 0px !important;
}
}
@media (min-width: 991px) {
    .booking_popup .content {
        grid-template-columns: 1fr 360px;
    }
}
.modal.show .modal-dialog {
    transform: none;
    padding: 20px;
}

/* Focus states for accessibility */
.booking_popup .input:focus-visible,
.booking_popup .btn:focus-visible,
.booking_popup .radio-option:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Loading states */
.booking_popup .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking_popup .btn-loading {
  position: relative;
  color: transparent;
}

.booking_popup .btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-right-color: transparent;
  animation: button-loading 1s linear infinite;
}

@keyframes button-loading {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Reduce motion for those who prefer it */
@media (prefers-reduced-motion: reduce) {
  .booking_popup * {
    animation: none !important;
    transition: none !important;
  }
}