/* ==============================
   Virtual Tour Buttons
============================== */
.tour-btn {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  gap: 10px !important;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tour-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.tour-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* Reusable lift effect for buttons */
.btn-lift {
  transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease, filter .12s ease;
}
.btn-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.btn-lift:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.exit-btn { 
  background:#7A0C0C; 
  color:#fff; 
}
.exit-btn:hover { 
  filter:brightness(0.92); 
  /* lift comes from .tour-btn:hover so both effects combine */
}

.quiz-btn {
  background: #F4B400;
  color: #ffffff;
}
.quiz-btn:hover { 
  filter:brightness(0.95); 
  /* lift comes from .tour-btn:hover so both effects combine */
}

/* ==============================
   Base Modal Styling
============================== */
.gs-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
}
.gs-modal[aria-hidden="false"] { display: flex; }

.gs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Dialog */
.gs-modal__dialog {
  position: fixed;
  width: 700px; /* smaller modal */
  height: 400px; /* fixed height */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  /* allow positioned popovers (prayer bubble) to extend outside dialog */
  overflow: visible;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


/* Close X */
.gs-modal__close {
  position: absolute;
  top: -16px;        /* move it slightly above the modal */
  right: -16px;      /* move it slightly outside to the right */
  width: 38px;
  height: 38px;
  background: #7A0C0C;   /* maroon background */
  color: #fff;           /* white “X” */
  border: none;
  border-radius: 50%;    /* circular button */
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: background 0.25s ease, transform 0.2s ease;
}

/* Make modal close buttons lift like other buttons (applies even if btn-lift class missing) */
.gs-modal__close {
  transition: background 0.25s ease, transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease;
}
.gs-modal__close:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.gs-modal__close:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Modal Content Layout */
.gs-modal__content {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0; /* remove padding to let image touch edges */
}

.gs-modal__image {
  flex: 1;
  border: none;
  overflow: hidden;
}

.gs-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills column perfectly */
  display: block;
}

.gs-modal__text {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.gs-modal__text h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  color: #222;
  font-weight: 800;
}

.gs-modal__body {
  color: #333;
  line-height: 1.6;
  max-height: 48vh;
  overflow: auto;
  padding-right: 6px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  text-align: justify;
  text-justify: inter-word;
}

.gs-modal__actions {
  position: absolute;
  bottom: 15px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}



.gs-btn {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter .2s ease, transform .02s ease;
}
.gs-btn:active { transform: translateY(1px); }
.gs-btn--maroon { background:#7A0C0C; color:#fff; }
.gs-btn--maroon:hover { filter:brightness(0.92); }
.gs-btn--gold { background:#D4AF37; color:#ffffff; }
.gs-btn--gold:hover { filter:brightness(0.95); }

@media (max-width: 840px) {
  .gs-modal__content { grid-template-columns: 1fr; }
  .gs-modal__body { max-height: 40vh; }
}

/* ==============================
   🎯 QUIZ MODAL BASE STYLES
============================== */
.quiz-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  max-width: 500px;
  margin: auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


/* Header section: question mark + title */
.quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-mark {
  font-size: 42px;
  color: #7A0C0C;
  background: #fff;
  border: 3px solid #7A0C0C;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quiz-mark.large-mark {
  width: 90px;
  height: 90px;
  font-size: 50px;
  margin: 0 auto 10px;
}

.quiz-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

/* Intro text */
.quiz-sub {
  color: #555;
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.5;
}

/* ==============================
   🧠 QUESTION + ANSWERS
============================== */
.quiz-question-text {
  font-weight: 400;      /* or: font-weight: normal; */
  font-size: 17px;
  margin: 10px 0 14px;
  color: #333333;        /* darker gray */
}


.quiz-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border: 2px solid #7A0C0C;
  border-radius: 28px;
  font-size: 16px;
  outline: none;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.quiz-input:focus {
  box-shadow: 0 0 0 3px rgba(122, 12, 12, 0.15);
}

/* Choices for multiple/truefalse */
.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 18px;
  text-align: left;
}

.quiz-choice {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #222;
}

.quiz-choice input {
  margin-right: 8px;
}

/* ==============================
   🏆 RESULT PANEL – MAROON THEME
============================== */
/* 🏆 Quiz Result Overlay */
.quiz-result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(122, 12, 12, 0.97); /* maroon overlay */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  z-index: 100;
  padding: 24px 22px;
  box-sizing: border-box;
}

/* === SweetAlert-style icon animation for quiz result === */
.quiz-mark.large-mark {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}

/* ✅ success: pop / bounce in */
.quiz-mark.large-mark.icon-success {
  animation: quizIconPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ❌ error: pop + shake */
.quiz-mark.large-mark.icon-error {
  animation:
    quizIconPop 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    quizIconErrorShake 0.45s 0.45s ease-out;
}

/* pop-in (similar feel to SweetAlert circle) */
@keyframes quizIconPop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* little horizontal shake for the X */
@keyframes quizIconErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}


/* Show result when visible */
.quiz-result[aria-hidden="false"] {
  display: flex;
}

/* ==============================
   Certificate Panel (inside result overlay)
   Matches modal card styling but fits the maroon overlay
============================== */
.quiz-certificate-panel {
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 16px;
  background: #ffffff; /* white card to contrast the maroon overlay */
  color: #222;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  text-align: center;
}
.quiz-certificate-panel h4 {
  margin: 0 0 8px;
  color: #DAA520;
  font-size: 18px;
  font-weight: 800;
}
.quiz-certificate-panel p { margin: 0 0 10px; color: #444; font-size: 0.95rem; }
.quiz-certificate-panel .quiz-input { margin-bottom: 10px; text-align: center; }
.quiz-certificate-panel .gs-btn { width: 100%; }

/* ==============================
   Integrate certificate area into quiz-result overlay
   Make the certificate controls visually connected to the maroon result
============================== */
.quiz-result .quiz-certificate-panel {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: 100%;
}
.quiz-result .quiz-certificate-panel h4 {
  color: #FFD86A; /* gold accent on maroon */
  margin: 6px 0 6px;
  font-size: 18px;
}
.quiz-result .quiz-certificate-panel p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 10px;
}
.quiz-result .quiz-certificate-panel .quiz-input {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  color: #fff;
  max-width: 320px;
  margin: 0 auto 10px;
}
.quiz-result .quiz-certificate-panel .quiz-input::placeholder { color: rgba(255,255,255,0.7); }
.quiz-result .quiz-certificate-panel .gs-btn {
  width: 100%;
  display: block;
  margin: 6px auto 0;
}

/* Ensure the success area inside the result overlay is also visually connected */
.quiz-result #cert-success-area .quiz-certificate-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}



/* ✅ Icon circle */
.quiz-result .quiz-mark.large-mark {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  margin: 0 auto 14px;
  /* color is set from JS (green/red) */
}

/* Result text */
.quiz-result #quizResultMsg {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* 🔘 Buttons row: Close (left), Next/Take Another (right) */
.quiz-result .gs-modal__actions {
  width: 100%;
  display: flex;
  flex-direction: row;   /* left-to-right: Close button will be placed before primary in DOM */
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Mobile: stack buttons */
@media (max-width: 480px) {
  .quiz-result .gs-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .quiz-result .gs-modal__actions .gs-btn {
    width: 100%;
  }
}



/* ==============================
   🎨 BUTTONS
============================== */
.gs-btn {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.05s ease;
}
.gs-btn:active {
  transform: translateY(1px);
}

/* Extra-close variant: used for secondary close-like actions */
.gs-btn.extra-close {
  background: transparent;
  color: #ffffff; /* white text to contrast on maroon backgrounds */
  border: 2px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease, transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease;
}
.gs-btn.extra-close:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.gs-btn.extra-close:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.gs-btn.extra-close:focus {
  outline: 3px solid rgba(255,255,255,0.14);
  outline-offset: 2px;
}

.gs-btn--gold {
  background: #F4B400;                       /* normal yellow */
  color: #ffffff;
}

.gs-btn--gold:hover {
  background: #a57c0c;                       /* darker yellow on hover */
  transform: translateY(-1px);               /* float up a bit */
}


.gs-btn--maroon {
  background: #7A0C0C;
  color: #fff;
}
.gs-btn--maroon:hover {
  filter: brightness(0.9);
}

/* ==============================
   📱 RESPONSIVE ADJUSTMENTS
============================== */
@media (max-width: 480px) {
  .quiz-dialog {
    padding: 16px 20px;
  }

  .quiz-header h2 {
    font-size: 22px;
  }

  .quiz-mark {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .quiz-input {
    max-width: 100%;
  }
}


/* ==============================
   🧭 Persistent Assistant (bottom-left)
============================== */
/* =========================================================
   🧭 UNIFIED GABAYSANTIAGO ASSISTANT STYLE (Mirror + Normal)
   ========================================================= */
.tour-assistant,
#tour-assistant-mirror {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 10060; /* above quiz modal (10050) and backdrop (10049) */
  pointer-events: none;
}

/* ✅ Unified bubble design */
.tour-assistant .assistant-dialog,
#tour-assistant-mirror .assistant-dialog {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 3px solid #7A0C0C;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  gap: 10px;
  width: min(360px, 90vw);
  pointer-events: auto;
}

/* ✅ Avatar */
.tour-assistant .assistant-avatar,
#tour-assistant-mirror .assistant-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #7A0C0C;
  overflow: hidden;
  flex-shrink: 0;
}
.tour-assistant .assistant-avatar img,
#tour-assistant-mirror .assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ Text content */
.tour-assistant .assistant-text,
#tour-assistant-mirror .assistant-text {
  flex: 1;
  color: #111;
}
.tour-assistant .assistant-name,
#tour-assistant-mirror .assistant-name {
  font-weight: 700;
  font-size: 15px;
  color: #7A0C0C;
  margin: 0 0 4px 0;
}
#assistant-message,
#assistant-message-mirror {
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  white-space: pre-wrap; /* preserves spaces during typing */
}

#assistant-message.fade,
#assistant-message-mirror.fade {
  opacity: 0;
  transition: opacity 0.25s ease;
}



/* === MODAL FRAME === */
#info-modal .gs-modal__dialog {
  width: min(750px, 90vw);   /* smaller width */
  background: #fff;
  border: none;
  border-radius: 0;          /* sharp corners */
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

/* === CLOSE BUTTON === */
#info-modal .gs-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}
#info-modal .gs-modal__close:hover {
  background: #7a0c0c;
  transform: scale(1.05);
}

/* === TWO-COLUMN LAYOUT === */
#info-modal .info-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr; /* balanced width for both sides */
  align-items: stretch;
  gap: 0;
}

/* === LEFT SIDE – Image === */
#info-modal .info-image {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #000;
}

#info-modal .info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* === RIGHT SIDE – Text === */
#info-modal .info-text {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

#info-modal .info-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#info-modal .info-body {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

/* === BUTTONS === */
#info-modal .info-actions {
  margin-top: 20px;
}
#info-modal .gs-btn.gs-btn--maroon {
  background: #7a0c0c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#info-modal .gs-btn.gs-btn--maroon:hover {
  background: #5c0909;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  #info-modal .info-two-column {
    grid-template-columns: 1fr;
  }
  #info-modal .info-image img {
    height: 220px;
  }
  #info-modal .info-text {
    padding: 20px;
  }
}

/* ===============================
   ✨ INFO MODAL ANIMATIONS
================================= */
#info-modal .gs-modal__backdrop {
  opacity: 0;
  transition: opacity 0.4s ease;
}
#info-modal .gs-modal__backdrop.state-show {
  opacity: 1;
}

#info-modal .gs-modal__dialog {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  animation-fill-mode: forwards;
}

#info-modal .gs-modal__dialog.state-appear {
  animation: infoModalEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#info-modal .gs-modal__dialog.state-leave {
  animation: infoModalLeave 0.35s ease-in forwards;
}

@keyframes infoModalEnter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes infoModalLeave {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
  }
}


/* =========================================================
   🖼️ PORTRAIT MODAL (applied only for IDs 15–20)
   ========================================================= */
#info-modal .gs-modal__dialog.portrait-modal .gs-modal__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

/* TOP: image */
#info-modal .gs-modal__dialog.portrait-modal .info-image {
  flex: 1.2;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#info-modal .gs-modal__dialog.portrait-modal .info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.95); /* “zoom-out” feel */
  transition: transform 0.4s ease;
}
#info-modal .gs-modal__dialog.portrait-modal .info-image:hover img {
  transform: scale(1);
}

/* BOTTOM: text */
#info-modal .gs-modal__dialog.portrait-modal .info-text {
  flex: 0.9;
  padding: 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
#info-modal .gs-modal__dialog.portrait-modal .info-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#info-modal .gs-modal__dialog.portrait-modal .info-body {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  max-height: 30vh;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 720px) {
  #info-modal .gs-modal__dialog.portrait-modal .info-image img {
    height: 240px;
  }
  #info-modal .gs-modal__dialog.portrait-modal .info-text {
    padding: 18px 20px 24px;
  }
}




/* ==============================
   Feedback Modal
============================== */
.feedback-modal-section {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 11000;
}
.feedback-modal-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow-y: auto;
}
#feedback_subject[disabled] {
  background-color: #f8f9fa;
  text-align: center;
  color: #000;
}


/* =========================================================
   🧩 Compact Info Modal – smaller, tighter text column
   ========================================================= */
#info-modal .gs-modal__dialog {
  width: min(650px, 85vw);   /* smaller total modal width */
  max-height: 90vh;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

/* Compact right text section */
#info-modal .info-text {
  padding: 30px 36px;        /* reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  height: 100%;
  box-sizing: border-box;
}

/* Tighter text formatting */
#info-modal .info-text h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#info-modal .info-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
  padding: 0;
}

/* Keep image untouched and full */
#info-modal .info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* consistent framing */
}

/* Responsive adjustment */
@media (max-width: 720px) {
  #info-modal .gs-modal__dialog {
    width: 90vw;
  }
  #info-modal .info-two-column {
    grid-template-columns: 1fr;
  }
  #info-modal .info-text {
    padding: 20px;
  }
}

/* =========================================================
   🧠 QUIZ MODAL WITH BACKDROP
   ========================================================= */
#quiz-modal {
  z-index: 10050;
}

#quiz-modal .gs-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10049;
}

#quiz-modal[aria-hidden="false"] .gs-modal__backdrop {
  opacity: 1;
}

/* FIX QUIZ MODAL SIZE OVERRIDE (ignore global 400px height) */
#quiz-modal .gs-modal__dialog.quiz-dialog {
  position: relative;     /* override fixed from base */
  height: auto !important; /* allow natural content height */
  max-height: 85vh;       /* prevent overflows on smaller screens */
  max-width: 480px;       /* compact, not full-wide */
  padding: 20px 26px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10050;
}

/* Header and body spacing tweaks */
/* Header: centered title, not positioned so the back button can position against the dialog */
#quiz-modal .quiz-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding-top: 6px;
}

/* Back button styling */
.quiz-back-btn {
  /* position relative to the dialog container (top-left corner) */
  position: absolute;
  left: 14px;
  top: 16px;
  transform: none;
  z-index: 10060;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A0C0C;
  font-size: 24px;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.quiz-back-btn:hover {
  background-color: rgba(122, 12, 12, 0.08);
  transform: translateX(-2px);
}

.quiz-back-btn:active {
  transform: translateX(1px);
}

.quiz-back-btn svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#quiz-modal .quiz-sub {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* Buttons */
/* Center buttons ONLY inside the Quiz Modal */
#quiz-modal .gs-modal__actions {
  position: static;          /* remove absolute positioning */
  bottom: auto;
  right: auto;
  width: 100%;
  display: flex;
  justify-content: center;   /* center horizontally */
  gap: 10px;
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 600px) {
  #quiz-modal .gs-modal__dialog.quiz-dialog {
    max-width: 90vw;
    padding: 16px 20px;
  }
}


/* =========================================================
   📱 FULL MOBILE RESPONSIVENESS – Explore Page (Final)
   ========================================================= */

/* 🌐 Fluid root scaling */
html {
  font-size: clamp(14px, 1.5vw, 16px);
}

/* 🧭 1. Assistant Modal (Guide Bubble)
   --------------------------------------------------------- */
.tour-assistant,
#tour-assistant-mirror {
  position: fixed;
  bottom: clamp(10px, 4vw, 24px);
  left: clamp(10px, 4vw, 24px);
  z-index: 10060; /* ensure it stays above quiz/backdrop */
}

.tour-assistant .assistant-dialog,
#tour-assistant-mirror .assistant-dialog {
  width: min(90vw, 360px);
  padding: clamp(8px, 3vw, 14px);
  gap: clamp(8px, 2vw, 12px);
  border: 3px solid #7a0c0c;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-start;
}

.tour-assistant .assistant-avatar,
#tour-assistant-mirror .assistant-avatar {
  width: clamp(40px, 10vw, 54px);
  height: clamp(40px, 10vw, 54px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #7a0c0c;
}

.tour-assistant .assistant-name,
#tour-assistant-mirror .assistant-name {
  font-size: clamp(13px, 1.8vw, 15px);
}

#assistant-message,
#assistant-message-mirror {
  font-size: clamp(12.5px, 1.7vw, 14px);
  line-height: 1.5;
  text-align: justify;
}

#info-modal .gs-modal__dialog {
  width: min(90vw, 700px);
  max-height: 90vh;
  overflow: visible;      /* ⬅️ IMPORTANT */
  position: relative;     /* bubble can align relative to the dialog */
  flex-direction: column;
}

#info-modal .info-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#info-modal .info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#info-modal .info-text {
  padding: clamp(18px, 3vw, 32px);
}

#info-modal .info-text h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 10px;
}

#info-modal .info-body {
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.6;
  text-align: justify;
}

/* 📱 Stack vertically on small screens */
@media (max-width: 720px) {
  #info-modal .info-two-column {
    grid-template-columns: 1fr;
  }

  #info-modal .info-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
  }

  #info-modal .info-text {
    text-align: center;
    padding: 18px 20px 22px;
  }

  #info-modal .info-text h2 {
    font-size: 18px;
  }

  #info-modal .info-body {
    font-size: 13px;
  }
}

/* 🧩 3. Portrait Info-Modal (IDs 15–20)
   --------------------------------------------------------- */
#info-modal .gs-modal__dialog.portrait-modal {
  width: min(92vw, 600px);
}

#info-modal .gs-modal__dialog.portrait-modal .info-image {
  flex: 1;
}
#info-modal .gs-modal__dialog.portrait-modal .info-image img {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: cover;
}
#info-modal .gs-modal__dialog.portrait-modal .info-text {
  padding: clamp(16px, 3vw, 28px);
  text-align: center;
}
#info-modal .gs-modal__dialog.portrait-modal .info-text h2 {
  font-size: clamp(17px, 2vw, 21px);
}
#info-modal .gs-modal__dialog.portrait-modal .info-body {
  font-size: clamp(13px, 1.7vw, 15px);
  max-height: 30vh;
  overflow-y: auto;
}

/* 📱 Stacked mobile view for portrait modals */
@media (max-width: 720px) {
  #info-modal .gs-modal__dialog.portrait-modal .info-image img {
    height: auto;
    max-height: 230px;
  }
}

/* 🧠 4. Virtual Quiz Modal
   --------------------------------------------------------- */
#quiz-modal .gs-modal__dialog.quiz-dialog {
  max-width: 90vw;
  padding: clamp(16px, 3vw, 26px);
  border-radius: 10px;
}

#quiz-modal .quiz-header h2 {
  font-size: clamp(18px, 2.5vw, 24px);
}

#quiz-modal .quiz-mark {
  width: clamp(50px, 9vw, 70px);
  height: clamp(50px, 9vw, 70px);
  font-size: clamp(26px, 4vw, 40px);
}

#quiz-modal .quiz-sub {
  font-size: clamp(13px, 2vw, 15px);
}

#quiz-modal .quiz-question-text {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.4;
}

#quiz-modal .quiz-input {
  font-size: clamp(13px, 1.8vw, 15px);
  padding: clamp(8px, 2vw, 12px);
}

#quiz-modal .quiz-choice {
  font-size: clamp(13px, 1.8vw, 15px);
}

#quiz-modal .gs-btn {
  font-size: clamp(13px, 1.7vw, 15px);
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
  border-radius: 6px;
}

#quiz-modal .quiz-result {
  padding: clamp(18px, 3vw, 28px);
}

/* 🪶 Small-screen tweaks */
@media (max-width: 600px) {
  #quiz-modal .quiz-header h2 {
    font-size: 18px;
  }
  #quiz-modal .quiz-sub {
    font-size: 13px;
  }
  #quiz-modal .quiz-input {
    width: 100%;
  }
}

/* 💬 5. Feedback Modal */
.feedback-modal-wrapper {
  width: 92%;
  max-height: 88vh;
  padding: clamp(14px, 3vw, 22px);
  border-radius: 10px;
}

/* 🧭 6. Buttons for mobile comfort */
.tour-btn {
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
  font-size: clamp(12px, 1.6vw, 14px);
  border-radius: 6px;
}
@media (max-width: 768px) {
  .tour-btn {
    margin: 0 4px;
  }
  .tour-controls {
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* 📱 Safe-area padding (iPhones, Android notch) */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tour-assistant,
  #tour-assistant-mirror {
    margin-bottom: env(safe-area-inset-bottom);
  }
}

/* 🌀 Landscape phones: prevent cut-offs */
@media (max-height: 480px) and (orientation: landscape) {
  .gs-modal__dialog {
    max-height: 88vh;
    overflow-y: auto;
  }
  #quiz-modal .quiz-mark {
    display: none;
  }
  #quiz-modal .quiz-header h2 {
    font-size: 16px;
  }
}



.lang-btn {
  background: #4A4A4A;
  color: #fff;
}
.lang-btn:hover {
  filter: brightness(0.9);
}



/* MULTIPLE CHOICE CONTAINER */
.quiz-mc-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 10px auto 20px;
  max-width: 700px;
  width: 100%;
}

/* 4 equal columns only when wide enough */
@media (min-width: 900px) {
  .quiz-mc-container {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==============================
   MULTIPLE CHOICE CONTAINER
   (no more grid)
============================== */
.quiz-mc-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* center in the modal */
  gap: 12px;
  margin: 10px auto 20px;
  max-width: 460px;          /* controls how “wide” the 2x2 block is */
}

/* Optional: make each choice take about half the row */
.quiz-mc-container .quiz-choice-box {
  flex: 0 0 calc(50% - 12px);  /* 2 per row */
}


/* ==============================
   CHOICE BUTTONS – SIZE & LAYOUT
============================== */
.quiz-mc-container .quiz-choice-box {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 26px 14px;   /* chunkier */
  min-height: 80px;     /* taller */

  line-height: 1.4;
  box-sizing: border-box;
}

/* ==============================
   CHOICE BUTTONS – COLORS & STATES
============================== */
.quiz-choice-box {
  border-radius: 6px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
  word-wrap: break-word;

  /* subtle outline so it doesn’t blend with white bg */
  border: 2px solid rgba(0, 0, 0, 0.06);
}

/* 🌈 DEFAULT COLORS (slightly darker pastels) */
.quiz-choice-box:nth-child(1) {
  background-color: #FFE082;  /* light yellow */
  color: #4A3B00;
}

.quiz-choice-box:nth-child(2) {
  background-color: #EF9A9A;  /* light red */
  color: #5A0505;
}

.quiz-choice-box:nth-child(3) {
  background-color: #90CAF9;  /* light blue */
  color: #0D47A1;
}

.quiz-choice-box:nth-child(4) {
  background-color: #A5D6A7;  /* light green */
  color: #1B5E20;
}

/* Hover (only if NOT selected) */
.quiz-choice-box:hover:not(.selected) {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* ✅ SELECTED STATE – solid strong colors */
.quiz-choice-box:nth-child(1).selected {
  background-color: #F4B400;  /* strong yellow */
  color: #ffffff;
  border-color: #F4B400;
}

.quiz-choice-box:nth-child(2).selected {
  background-color: #C62828;  /* strong red */
  color: #ffffff;
  border-color: #C62828;
}

.quiz-choice-box:nth-child(3).selected {
  background-color: #1976D2;  /* strong blue */
  color: #ffffff;
  border-color: #1976D2;
}

.quiz-choice-box:nth-child(4).selected {
  background-color: #2E7D32;  /* strong green */
  color: #ffffff;
  border-color: #2E7D32;
}

/* Extra emphasis when selected */
.quiz-choice-box.selected {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

/* ==============================
   MODULE CHOICE BUTTONS – Match Multiple Choice Design
============================== */
.quiz-module-choice {
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
  word-wrap: break-word;
  border: 2px solid rgba(0, 0, 0, 0.06);
  padding: 18px 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 6px);
  max-width: 180px;
}

/* Module list: force horizontal layout with wrapping */
.quiz-module-panel {
  display: block;
  width: 100%;
  text-align: center;
}
.quiz-module-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin: 8px 0 0;
}

 /*🌈 MODULE BUTTON COLORS (match multiple choice)*/
.quiz-module-choice[data-module-index="1"] {
  color: #4A3B00;
}

.quiz-module-choice[data-module-index= "0"] {
  color: #5A0505;
}

.quiz-module-choice[data-module-index="2"] {
  color: #0D47A1;
}

/* Hover (only if NOT selected) */
.quiz-module-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.quiz-module-choice:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gs-btn--gray {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;        /* white text */
}

.gs-btn--gray:hover {
    background-color: #e0e0e0;
}

.gs-btn--green{
  background-color: #28a745; /* Bootstrap-style green */
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;         /* dark text */
}

.gs-btn--green:hover {
    background-color: #218838;
}

/* Alternative primary button for 'Take another quiz' */
.gs-btn--alt {
  background: #1E90FF; /* dodger blue */
  color: #fff;
}
.gs-btn--alt:hover {
  background: #1577d6;
}

/* Lift effect for modal buttons (shared with .tour-btn) */
.btn-lift {
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.btn-lift:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}


#btn-claim-cert {
    width: 50% !important;            /* Matches the width of the parent container/input */
    display: block;         /* Ensures it behaves as a block element */
    box-sizing: border-box; /* Ensures padding doesn't make it wider than 100% */
    margin-top: 10px;       /* Adds a little space between the input and button */
}

/* ==============================
   🏆 QUIZ RESULT ICON (centered & smaller)
   ============================== */

/* Base circle for the result icon (only inside the quiz result layer) */
.quiz-result .quiz-mark.large-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
  font-size: 0;           /* hide any text, just in case */
  color: transparent;
  overflow: hidden;
}

/* Reset any old icon content */
.quiz-result .quiz-mark.large-mark::before,
.quiz-result .quiz-mark.large-mark::after {
  content: "";
  position: absolute;
  background: transparent;
}



#cert-name-input {
    border-radius: 2px;          /* Square corners */
    background-color: white;   /* White background */
    color: black;              /* Black text for user input */
    border: 1px solid #ccc;    /* Optional: A subtle border helps it look like an input */
}

#cert-name-input::placeholder {
    color: gray;               /* Grey placeholder text */
    opacity: 1;
}
/* ✅ Animated CHECK (success) */
.quiz-result .quiz-mark.large-mark.icon-success::before {
  /* the "✓" drawn with borders */
  width: 14px;
  height: 26px;
  border-right: 4px solid #2ecc71;
  border-bottom: 4px solid #2ecc71;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  animation: quizCheckStroke 0.45s ease-out forwards;
}

/* 🟥 Animated X (error) */
.quiz-result .quiz-mark.large-mark.icon-error::before,
.quiz-result .quiz-mark.large-mark.icon-error::after {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #ff7675;  /* light red for the stroke */
  top: 50%;
  left: 50%;
  transform-origin: center;
  opacity: 0;
}

/* first diagonal ( / ) */
.quiz-result .quiz-mark.large-mark.icon-error::before {
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
  animation: quizXStrokeLeft 0.35s ease-out forwards;
}

/* second diagonal ( \ ) */
.quiz-result .quiz-mark.large-mark.icon-error::after {
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
  animation: quizXStrokeRight 0.35s ease-out 0.12s forwards;
}

/* ✖ X animation – LEFT bar */
@keyframes quizXStrokeLeft {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
    opacity: 1;
  }
}

/* ✖ X animation – RIGHT bar */
@keyframes quizXStrokeRight {
  0% {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
    opacity: 1;
  }
}

/* ✅ Animated CHECK (success) */
.quiz-result .quiz-mark.large-mark.icon-success::before {
  width: 14px;
  height: 26px;
  border-right: 4px solid #2ecc71;
  border-bottom: 4px solid #2ecc71;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  /* small delay so circle pops first, then check draws */
  animation: quizCheckStroke 0.45s 0.15s ease-out forwards;
}

@keyframes quizCheckStroke {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 1;
  }
}

/* Global font + base sizing for Virtual Tour UI */
#virtual-tour-wrapper,
#info-modal,
#quiz-modal,
.tour-assistant,
.gs-modal,
.gs-modal * {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Slightly bigger body text in info modal */
#info-modal .info-body {
  font-size: 0.95rem;      /* was probably around 0.85–0.9 */
  line-height: 1.6;
}

/* Slightly bigger quiz texts */
#quiz-modal .quiz-question-text {
  font-size: 1rem;
}

#quiz-modal .quiz-sub,
#quiz-modal .quiz-input,
#quiz-modal .quiz-mc-container {
  font-size: 0.95rem;
}

#quiz-modal .quiz-progress {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #555;
}


#quiz-modal .quiz-progress {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #555;
}
/* ==============================
   Quiz Module Selection — Wide "Pill" Layout
   ============================== */

/* 1. The Container */
.quiz-module-list {
  display: flex;
  flex-direction: column !important; /* Stack items vertically */
  gap: 15px;
  width: 100%;
  align-items: center; /* Center the cards */
}

/* 2. The Card Itself */
.quiz-module-choice {
  /* LAYOUT: Force Row */
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  justify-content: flex-start;

  /* WIDTH FIX: Override old constraints */
  width: 100% !important;      /* Force full width */
  max-width: 600px !important; /* Allow it to get wide (previously was 280px) */
  min-height: 80px;            /* Ensure tall enough */
  flex: 0 0 auto !important;   /* Stop it from shrinking */

  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid transparent; /* Placeholder for colored border */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* Hover Effect */
.quiz-module-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 3. Left Side: Title (Colored Box) */
.quiz-module-choice .qm-title {
  /* WIDTH: Fixed width for the label */
  flex: 0 0 120px !important; /* Fixed at 120px */
  width: 120px !important;    /* Reinforce width */
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 10px;
  
  /* Reset old styles */
  margin: 0;
  border-radius: 0; 
}

/* 4. Right Side: Description */
.quiz-module-choice .qm-desc {
  /* WIDTH: Fills the remaining space */
  flex: 1 !important; 
  display: flex;
  align-items: center; /* Vertically center text */
  text-align: left;
  background: #fff;
  color: #333;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 10px 20px;
  
  /* Reset old styles */
  margin: 0;
  border-left: none;
  max-height: none !important; /* Allow text to grow */
  white-space: normal; /* Ensure text wraps normally */
}

/* ==============================
   Colors (Matching your image)
   ============================== */

/* Locational (Red) */
/* .quiz-module-choice[data-module-index="0"] { border-color: #FF3D3D; } */
.quiz-module-choice[data-module-index="0"] .qm-title { background-color: #FF3D3D; }

/* History (Orange) */
/* .quiz-module-choice[data-module-index="1"] { border-color: #FFB74D; } */
.quiz-module-choice[data-module-index="1"] .qm-title { background-color: #FFB74D; }

/* Trivia (Blue) */
/* .quiz-module-choice[data-module-index="2"] { border-color: #29B6F6; } */
.quiz-module-choice[data-module-index="2"] .qm-title { background-color: #29B6F6; }

/* ==============================
   Mobile Adjustment
   ============================== */
@media (max-width: 480px) {
  /* On very small screens, make the title box smaller so text has room */
  .quiz-module-choice .qm-title {
    flex: 0 0 100px !important;
    width: 100px !important;
    font-size: 0.85rem;
    padding: 5px;
  }
  .quiz-module-choice .qm-desc {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
.assistant-header{
  display:flex;
  align-items:center;
  gap:0.35rem;
}

.assistant-prayer-btn{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.assistant-prayer-btn img{
  width:22px;
  height:22px;
  display:block;
}

.assistant-prayer-btn:focus-visible{
  outline:2px solid #f7d27c;
  outline-offset:2px;
}

/* Prayer icon styles */
.assistant-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.assistant-prayer-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.prayer-icon-svg {
  width: 22px;
  height: 22px;
}

/* Bible shape + cross colors */
.prayer-icon-svg rect {
  fill: #fdf7e9;
  stroke: #7a0c0c;
  stroke-width: 1.2;
}

.prayer-icon-svg path {
  fill: #7a0c0c;
}

.assistant-prayer-btn:focus-visible {
  outline: 2px solid #f7d27c;
  outline-offset: 2px;
}

     /* Make modal content a positioning context */
      .gs-modal__content.info-two-column {
        position: relative;
      }

      /* Header row: title + bible button */F
      .info-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      /* Small rounded bible button beside the title */
      .info-prayer-btn {
        border: none;
        background: #ffffff;
        padding: 4px 8px;
        border-radius: 999px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
      }
      .info-prayer-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
      }
      .info-prayer-btn.is-disabled {
        opacity: 0.3;
        cursor: default;
        box-shadow: none;
      }

      /* Small bible icon */
      .info-prayer-btn .info-prayer-icon {
        width: 18px;
        height: 18px;
        fill: #7a0c0c;
      }


/* Theme helpers (optional) */
:root{
  --maroon:#7A0C0C;
  --bubble-bg:#ffffff;
  --bubble-border: rgba(0,0,0,0.10);
  --bubble-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

/* Button: cleaner, themed, better focus */
.info-prayer-btn{
  border: 1px solid rgba(122,12,12,0.25);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.info-prayer-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
  border-color: rgba(122,12,12,0.38);
}
.info-prayer-btn:focus-visible{
  outline: 3px solid rgba(122,12,12,0.25);
  outline-offset: 2px;
}

/* keep your “dim” behavior */
.info-prayer-btn.is-disabled{
  opacity: 0.35;
  cursor: pointer; /* still clickable (you use Swal fallback) */
}

/* Subtle “available” hint (optional) */
.info-prayer-btn.has-prayer{
  border-color: rgba(122,12,12,0.55);
}

/* Popover bubble (improved) */
.info-prayer-bubble{
  position: absolute;
  top: 22px;
  left: calc(100% + 16px);
  width: min(320px, 42vw);
  background: var(--bubble-bg);
  border: 1px solid var(--bubble-border);
  border-top: 4px solid var(--maroon);
  border-radius: 16px;
  box-shadow: var(--bubble-shadow);
  z-index: 30;

  /* animation state */
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;

  /* spacing */
  padding: 12px 12px 10px;
}

/* open state controlled by class */
.info-prayer-bubble.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Tail (points back to card) */
.info-prayer-bubble::before{
  content:"";
  position:absolute;
  top: 28px;
  left: -10px;
  width: 18px;
  height: 18px;
  background: var(--bubble-bg);
  border-left: 1px solid var(--bubble-border);
  border-bottom: 1px solid var(--bubble-border);
  transform: rotate(45deg);
}

/* Header */
.prayer-bubble__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}
.prayer-bubble__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.92rem;
}
.prayer-bubble__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--maroon);
  box-shadow: 0 0 0 4px rgba(122,12,12,0.12);
}

/* Close button */
.prayer-bubble__close{
  border: none;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: rgba(0,0,0,0.55);
  transition: background 120ms ease, color 120ms ease;
}
.prayer-bubble__close:hover{
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.75);
}
.prayer-bubble__close:focus-visible{
  outline: 3px solid rgba(122,12,12,0.20);
  outline-offset: 2px;
}

/* Body */
.prayer-bubble__body{
  font-size: 0.92rem;
  line-height: 1.6;
  color: #222;
  white-space: pre-line; /* preserves your multiline prayer */
  max-height: 42vh;
  overflow: auto;
  padding-right: 6px; /* space for scrollbar */
}

/* Mobile: keep bubble INSIDE modal (no overflow off-screen) */
@media (max-width: 768px){
  .info-prayer-bubble{
    left: 12px;
    right: 12px;
    top: 66px;
    width: auto;
  }
  .info-prayer-bubble::before{
    display:none; /* tail can look weird on tight layouts */
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .info-prayer-bubble,
  .info-prayer-bubble.is-open{
    transition:none !important;
    transform:none !important;
  }
}

/* Make the “book” look like a book, not a pause icon */
.prayer-icon-svg rect,
.info-prayer-icon rect{
  fill: none;
  stroke: #7A0C0C;
  stroke-width: 1.8;
}

.prayer-icon-svg path,
.info-prayer-icon path{
  fill: #7A0C0C; /* keeps the cross visible */
}










