body {
  padding: 0;
  margin: 0;
}

.symptom-checker-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  max-width: 100%;
  position: relative;
}

#drawerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 370px;
  height: 100%;
  background: #f9fafc;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.18);
  z-index: 1001;
  padding: 0;
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s, opacity 0.35s;
}

.drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#drawerHeader {
  background: #0078d4;
  color: white;
  padding: 16px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#drawerClose {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2em;
  color: red;
  cursor: pointer;
}

#drawerContent {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

#drawerContent h3 {
  margin-bottom: 10px;
  border-left: 4px solid #8b296a;
  padding-left: 10px;
  color: #2d2e32;
  direction: ltr;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  text-shadow: rgba(0, 0, 0, 0.4) 0 0 27.3px;
}

#drawerContent h4 {
  margin-bottom: 10px;
  margin-top: 20px;
  padding-bottom: 5px;
  color: #2d2e32;
  direction: ltr;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
}

#drawerContent ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#drawerContent li {
  margin-bottom: 10px;
}

#drawerContent a {
  display: block;
  color: #fff;
  text-decoration: none;
  background-color: #8b296a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#drawerContent a:hover {
  color: #2d2e32;
  background-color: #b189a4;
  transform: translateX(5px);
}

/* Detail page css */

.when-to-call .call-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.when-to-call .call-box {
  flex: 1 1 33.3333%;
  min-width: 220px;
  box-sizing: border-box;
  padding: 22px 24px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.when-to-call .call-box:last-child {
  border-right: none;
}

.when-to-call .call-box:nth-child(1) {
  background: #e3f2fd; /* light blue */
}
.when-to-call .call-box:nth-child(2) {
  background: #e8f5e9; /* light green */
}
.when-to-call .call-box:nth-child(3) {
  background: #fffde7; /* light yellow */
}

@media (max-width: 900px) {
  .when-to-call .call-box {
    min-width: 0;
    padding: 18px 10px;
    font-size: 0.97rem;
  }
}

@media (max-width: 700px) {
  .when-to-call .call-grid {
    flex-direction: column;
    gap: 12px;
  }
  .when-to-call .call-box {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    min-width: 0;
    padding: 16px 8px;
    font-size: 0.97rem;
  }
  .when-to-call .call-box:last-child {
    border-bottom: none;
  }
}

.disclaimer {
  font-size: small;
}
/* --- Responsive disclaimers and strong paragraphs --- */
@media (max-width: 600px) {
  .disclaimer {
    font-size: 7px;
    margin-top: 12px;
  }
  .strong-p {
    font-size: 0.97rem;
    margin-bottom: 6px;
  }
}

.go-back-btn {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #2563eb;
  background: #e3f2fd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
  outline: none;
}
.go-back-btn:hover,
.go-back-btn:focus-visible {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 2px #2563eb33;
}

.remedy-aaplogos {
  margin-bottom: 1em;
  text-align: left;
  display: block;
}
.remedy-aap {
  margin: 1em;
  display: inline-block;
}
.remedy-aap img {
  height: 35px;
  width: auto;
  max-width: 100%;
}
.remedy-pdflinks {
  font-size: 0.8em;
}

.navlink {
  cursor: pointer;
}

/* loader css */

/* Fullscreen overlay for loader */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* optional background dim */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* above all content */
}

/* Loader spinner */
.loader-overlay {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Hide the loader */
.loader-container.hide {
  display: none;
}

/* Show the loader */
.loader-container.show {
  display: flex;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}