/* ==========================================================================
   MITALI MEHTA — WEBSITE GUIDE & ASSISTANT STYLES
   Tailored to brand palette: Forest Green (#3A5D53), Antique Gold (#B88B4A),
   Warm Ivory (#FAF7F2), Pure White (#FFFFFF).
   ========================================================================== */

/* Launcher Floating Button */
.mwg-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background-color: #3A5D53;
  color: #FFFFFF;
  border: 1.5px solid #DEC8A2;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(58, 93, 83, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  animation: mwg-float-bob 3.2s ease-in-out infinite, mwg-glow-pulse 3.2s infinite;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

@keyframes mwg-float-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes mwg-glow-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(58, 93, 83, 0.28), 0 0 0 0 rgba(222, 200, 162, 0.5);
  }
  50% {
    box-shadow: 0 14px 32px rgba(58, 93, 83, 0.35), 0 0 0 8px rgba(222, 200, 162, 0);
  }
}

.mwg-launcher:hover {
  animation-play-state: paused;
  transform: translateY(-9px) scale(1.03);
  background-color: #3A5D53;
  box-shadow: 0 16px 36px rgba(58, 93, 83, 0.38), 0 0 16px rgba(222, 200, 162, 0.35);
  border-color: #EBD6B3;
}

.mwg-launcher:active {
  transform: translateY(-2px) scale(0.98);
}

.mwg-launcher-icon {
  width: 22px;
  height: 22px;
  color: #DFC085;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mwg-launcher-text {
  color: #FFFFFF;
  white-space: nowrap;
}

.mwg-launcher-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #DFC085;
  border-radius: 50%;
  animation: mwg-pulse 2s infinite ease-in-out;
}

@keyframes mwg-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Chat Container Panel */
.mwg-panel {
  position: fixed;
  bottom: 86px;
  right: 24px;
  z-index: 10000;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 110px);
  background-color: #FAF7F2;
  border: 1px solid #E6DBCB;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(58, 93, 83, 0.2), 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.mwg-panel.mwg-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.mwg-header {
  background-color: #3A5D53;
  color: #FFFFFF;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 192, 133, 0.25);
  flex-shrink: 0;
}

.mwg-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mwg-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3A5D53;
  border: 1.5px solid #DEC8A2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DEC8A2;
  flex-shrink: 0;
}

.mwg-header-info {
  display: flex;
  flex-direction: column;
}

.mwg-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}

.mwg-header-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  color: #DFC085;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.mwg-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mwg-header-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.mwg-header-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Conversation Body */
.mwg-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #FAF7F2;
  scroll-behavior: smooth;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

/* Universal scrollbar hiding for all elements inside chatbot */
#mwg-container,
#mwg-container *,
.mwg-panel,
.mwg-panel *,
.mwg-body,
.mwg-body *,
.mwg-starter-wrap,
.mwg-actions {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#mwg-container ::-webkit-scrollbar,
.mwg-panel ::-webkit-scrollbar,
.mwg-panel::-webkit-scrollbar,
.mwg-body::-webkit-scrollbar,
.mwg-body *::-webkit-scrollbar,
.mwg-actions::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Message Rows */
.mwg-msg-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 90%;
  animation: mwg-fade-in 0.2s ease-out forwards;
}

@keyframes mwg-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mwg-msg-row.mwg-user {
  align-self: flex-end;
}

.mwg-msg-row.mwg-bot {
  align-self: flex-start;
  max-width: 94%;
}

/* Message Bubbles */
.mwg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.90rem;
  line-height: 1.55;
  box-sizing: border-box;
}

.mwg-user .mwg-bubble {
  background-color: #3A5D53;
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
  box-shadow: 0 2px 8px rgba(58, 93, 83, 0.15);
}

.mwg-bot .mwg-bubble {
  background-color: #FFFFFF;
  color: #2A2A2A;
  border: 1px solid #E6DBCB;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 8px rgba(58, 93, 83, 0.04);
}

.mwg-bot .mwg-bubble p {
  margin: 0 0 8px 0;
  color: #2A2A2A;
}

.mwg-bot .mwg-bubble p:last-child {
  margin-bottom: 0;
}

.mwg-bot .mwg-bubble ul {
  margin: 6px 0 8px 16px;
  padding: 0;
  list-style: disc;
}

.mwg-bot .mwg-bubble li {
  margin-bottom: 4px;
  color: #3A5D53;
  font-size: 0.88rem;
}

.mwg-bot .mwg-bubble strong {
  color: #3A5D53;
  font-weight: 700;
}

/* Action / Navigation Buttons */
.mwg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.mwg-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background-color: #FAF7F2;
  color: #3A5D53;
  border: 1px solid #D6C4A6;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(58, 93, 83, 0.04);
}

.mwg-btn-nav:hover {
  background-color: #3A5D53;
  color: #FFFFFF;
  border-color: #3A5D53;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(58, 93, 83, 0.15);
}

.mwg-btn-nav.mwg-btn-primary {
  background-color: #3A5D53;
  color: #FFFFFF;
  border-color: #3A5D53;
}

.mwg-btn-nav.mwg-btn-primary:hover {
  background-color: #3A5D53;
  border-color: #3A5D53;
}

.mwg-btn-prompt {
  background-color: #FFFFFF;
  color: #3A5D53;
  border: 1px solid #E0D5C5;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.80rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.mwg-btn-prompt:hover {
  background-color: #F4ECE0;
  color: #3A5D53;
  border-color: #C8A25A;
}

/* Quick Starter Chips Container */
.mwg-starter-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.mwg-starter-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B88B4A;
  margin-bottom: 2px;
}

/* Footer / Input Area */
.mwg-footer {
  padding: 12px 14px;
  background-color: #FFFFFF;
  border-top: 1px solid #E6DBCB;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mwg-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.mwg-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D9CDBC;
  border-radius: 22px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  color: #2A2A2A;
  background-color: #FAF7F2;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.mwg-input:focus {
  border-color: #C8A25A;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(200, 162, 90, 0.15);
}

.mwg-input::placeholder {
  color: #3A5D53;
}

.mwg-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #3A5D53;
  color: #DFC085;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.15s;
}

.mwg-send-btn:hover {
  background-color: #3A5D53;
  color: #FFFFFF;
  transform: scale(1.05);
}

.mwg-send-btn:active {
  transform: scale(0.96);
}

.mwg-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .mwg-launcher {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px 10px 14px;
    font-size: 0.86rem;
  }

  .mwg-panel {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    height: calc(100vh - 84px);
    max-height: none;
    border-radius: 14px;
  }
}

/* Compact Details Card for Personal Information */
.mwg-details-card {
  background: #FAF9F6;
  border: 1px solid #E6DBCB;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(58, 93, 83, 0.04);
}

.mwg-details-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.mwg-details-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #3A5D53;
}

.mwg-details-line {
  flex: 1;
  height: 1.5px;
  background-color: #D17A20;
  border-radius: 1px;
}

.mwg-details-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mwg-details-label {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3A5D53;
}

.mwg-req {
  color: #D9534F;
  font-weight: 700;
}

.mwg-opt {
  color: #3A5D53;
  font-size: 0.74rem;
  font-weight: normal;
}

.mwg-details-input {
  width: 100%;
  padding: 7px 10px;
  background: #FFFFFF;
  border: 1px solid #D9CDBC;
  border-radius: 6px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.84rem;
  color: #2A2A2A;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.mwg-details-input::placeholder {
  color: #9C9588;
  font-size: 0.82rem;
}

.mwg-details-input:focus {
  border-color: #D17A20;
  box-shadow: 0 0 0 2px rgba(209, 122, 32, 0.15);
}

.mwg-details-error {
  color: #C0392B;
  font-family: 'Lato', sans-serif;
  font-size: 0.74rem;
  margin-top: 1px;
}

.mwg-details-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.mwg-details-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 18px;
  background-color: #3A5D53;
  color: #FFFFFF;
  border: 1px solid #3A5D53;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(58, 93, 83, 0.12);
}

.mwg-details-submit-btn:hover:not(:disabled) {
  background-color: #3A5D53;
  border-color: #3A5D53;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(58, 93, 83, 0.18);
}

.mwg-details-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.mwg-details-card.mwg-details-completed {
  opacity: 0.85;
  pointer-events: none;
}


