/* Rise Assistant: website chat + voice widget (built by assets/js/rise-chat.js) */

/* ---------- launcher: dark pill with a spinning gold ring, gold glow and a hop now and then ---------- */
.rc-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px 0 7px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, #0c0b0b 0%, #625651 100%);
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: left;
  box-shadow: 0 10px 28px rgba(12, 11, 11, .38), 0 0 22px rgba(212, 168, 83, .35);
  cursor: pointer;
  animation: rc-hop 7s ease-in-out infinite;
}
.rc-launcher:hover { animation-play-state: paused; transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 32px rgba(12, 11, 11, .45), 0 0 30px rgba(212, 168, 83, .55); }
.rc-launcher.rc-hidden, .rc-launcher.rc-away { display: none; }
/* gentle float, then a little double hop to catch the eye */
@keyframes rc-hop {
  0%, 40%, 78%, 88%, 96%, 100% { transform: translateY(0); }
  20%, 60% { transform: translateY(-4px); }
  83% { transform: translateY(-15px); }
  92% { transform: translateY(-6px); }
}

/* gold glow spreading out from the button */
.rc-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: rc-ring 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes rc-ring { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, .7); } 75%, 100% { box-shadow: 0 0 0 18px rgba(212, 168, 83, 0); } }

/* light sweeping across the button now and then */
.rc-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.rc-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  animation: rc-shine 4s ease-in-out infinite;
}
@keyframes rc-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

/* round icon with a spinning gold ring */
.rc-icon {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.rc-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #d4a853, #fff1c1, #d4a853 35%, rgba(212, 168, 83, .1) 55%, #d4a853 85%, #fff1c1);
  animation: rc-spin 2.4s linear infinite;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }
.rc-face {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1c1918;
  display: grid;
  place-items: center;
}
.rc-face i { font-size: 22px; color: #fff; transform-origin: 50% 80%; animation: rc-wiggle 4s ease-in-out infinite; }
@keyframes rc-wiggle {
  0%, 68%, 100% { transform: rotate(0) scale(1); }
  72% { transform: rotate(-16deg) scale(1.15); }
  76% { transform: rotate(14deg) scale(1.15); }
  80% { transform: rotate(-8deg) scale(1.05); }
  84% { transform: rotate(0) scale(1); }
}
/* "online" dot */
.rc-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #1c1918;
  animation: rc-blink 1.6s ease-in-out infinite;
}
@keyframes rc-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .7); } 60% { box-shadow: 0 0 0 5px rgba(46, 204, 113, 0); } }
/* small gold "AI" badge */
.rc-ai {
  position: absolute;
  left: -3px;
  bottom: -2px;
  padding: 1px 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5d98b, #d4a853);
  color: #1c1918;
  font: 700 9.5px/14px 'Roboto', Arial, sans-serif;
  letter-spacing: .3px;
}

.rc-label { position: relative; display: flex; flex-direction: column; gap: 3px; }
.rc-label strong { font-size: 16px; font-weight: 500; line-height: 1.1; letter-spacing: .2px; }
.rc-sub { font-size: 12.5px; line-height: 1.1; color: #f1d793; transition: opacity .3s ease, transform .3s ease; }
.rc-sub.rc-out { opacity: 0; transform: translateY(4px); }

/* "Hi! Ask me..." bubble above the button, shown once per visit */
.rc-teaser {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 10000;
  max-width: 240px;
  padding: 10px 30px 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: #1d1b1a;
  font: 400 14px/1.4 'Roboto', Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(12, 11, 11, .18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.rc-teaser.rc-show { opacity: 1; transform: none; pointer-events: auto; }
.rc-teaser strong { font-weight: 500; }
.rc-teaser button {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: none;
  color: #8a7d77;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .rc-launcher, .rc-ring, .rc-shine::after, .rc-icon::before, .rc-face i, .rc-dot { animation: none; }
}

.rc-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10001;
  display: none;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100vh - 44px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(12, 11, 11, .3);
  font: 400 14.5px/1.5 'Roboto', Arial, sans-serif;
  color: #1d1b1a;
}
.rc-panel.rc-open { display: flex; animation: rc-pop .22s ease; }
.rc-panel.rc-open.rc-away { display: none; }   /* the site's enquiry form is open: step aside until it closes */
@keyframes rc-pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, #0c0b0b 0%, #625651 100%);
  color: #fff;
}
.rc-avatar {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.rc-title { flex: 1; min-width: 0; }
.rc-title strong { display: block; font-size: 15.5px; font-weight: 500; }
.rc-title span { font-size: 12px; opacity: .8; }
.rc-head button {
  flex: 0 0 auto;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.rc-head button:hover { background: rgba(255, 255, 255, .24); }
.rc-head button i { font-size: 16px; }

.rc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background: #faf9f8;
  overscroll-behavior: contain;
}
.rc-msg {
  max-width: 86%;
  margin: 0 0 10px;
  padding: 9px 13px;
  border-radius: 16px;
  word-wrap: break-word;
}
.rc-msg p { margin: 0 0 6px; }
.rc-msg p:last-child, .rc-msg ul:last-child { margin-bottom: 0; }
.rc-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.rc-msg li { margin-bottom: 3px; }
.rc-bot {
  background: #fff;
  border: 1px solid #ebe7e4;
  border-bottom-left-radius: 4px;
}
.rc-bot a { color: #625651; font-weight: 500; text-decoration: underline; }
.rc-user {
  margin-left: auto;
  background: #2b2725;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.rc-error { border-color: #e8c9c4; background: #fff7f6; }

/* Thumbs up / down under an answer */
.rc-rate { display: flex; align-items: center; gap: 2px; margin: -4px 0 10px 4px; }
.rc-rate button {
  border: 0;
  background: transparent;
  color: #a39893;
  width: 28px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.rc-rate button:hover { background: #efe9e5; color: #4a423e; }
.rc-rate button.rc-on { color: #625651; }
.rc-rate-thanks { margin-left: 6px; font-size: 12px; color: #8a7d77; }

/* "Fill the form" button under a reply: opens the website's enquiry popup */
.rc-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #0c0b0b 0%, #625651 100%);
  color: #fff;
  font: 500 14px/1.2 'Roboto', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 11, 11, .2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rc-form-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(12, 11, 11, .28); }
.rc-form-btn:focus-visible { outline: 2px solid #625651; outline-offset: 2px; }

.rc-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.rc-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a7d77;
  animation: rc-dot 1.1s infinite ease-in-out;
}
.rc-typing span:nth-child(2) { animation-delay: .15s; }
.rc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.rc-chips button {
  border: 1px solid #d9d2ce;
  border-radius: 16px;
  background: #fff;
  color: #3a3431;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.rc-chips button:hover { border-color: #625651; color: #0c0b0b; }

/* Small heading above a group of buttons: "You can ask", "Our services" */
.rc-chips-label {
  margin: 4px 0 6px 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a7d77;
}
/* हिंदी / English: the first choice, so it stands out */
.rc-langs button {
  padding: 7px 18px;
  border-color: #625651;
  font-weight: 500;
  color: #0c0b0b;
}
.rc-langs button:hover { background: linear-gradient(135deg, #0c0b0b 0%, #625651 100%); color: #fff; }
/* Services: warm tint so they read as a group of their own */
.rc-services button { background: #f6f2ef; border-color: #e3dad4; }
.rc-services button:hover { background: #fff; }

.rc-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #ebe7e4;
  background: #fff;
}
.rc-foot textarea {
  flex: 1;
  box-sizing: border-box;
  height: 42px;
  max-height: 110px;
  padding: 10px 14px;
  border: 1px solid #d9d2ce;
  border-radius: 21px;
  resize: none;
  font: inherit;
  line-height: 20px;
  overflow-y: hidden;   /* scrollbar only once the text is taller than the box can grow */
  outline: none;
}
.rc-foot textarea:focus { border-color: #625651; }
.rc-foot button {
  flex: 0 0 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}
.rc-mic { background: #f1eeec; color: #3a3431; }
.rc-mic.rc-listening { background: #c0392b; color: #fff; animation: rc-pulse 1.2s infinite; }
@keyframes rc-pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .5); } 100% { box-shadow: 0 0 0 12px rgba(192, 57, 43, 0); } }
.rc-send { background: linear-gradient(135deg, #0c0b0b 0%, #625651 100%); color: #fff; }
.rc-foot button:disabled { opacity: .45; cursor: default; }
.rc-note { padding: 0 14px 8px; background: #fff; font-size: 11px; color: #8a7d77; text-align: center; }

/* Phones: above the Enquire / WhatsApp bar; panel fills the screen */
@media (max-width: 767px) {
  .rc-launcher { right: 14px; bottom: 60px; width: 62px; height: 62px; padding: 0; justify-content: center; border-radius: 50%; }
  .rc-icon { flex-basis: 52px; width: 52px; height: 52px; }
  .rc-label { display: none; }
  .rc-teaser { right: 14px; bottom: 134px; }
  .rc-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
}
