#wa-chatbot,
#wa-chatbot * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* WhatsApp floating button */
#wa-chat-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#wa-chat-button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

#wa-chat-button svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* Questionnaire popup */
#wa-chat-box {
  position: fixed;
  right: 22px;
  bottom: 100px;
  width: 410px;
  max-width: calc(100vw - 30px);
  max-height: 78vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 999998;
  display: none;
  border: 1px solid #e8e8e8;
}

#wa-chat-box.open {
  display: block;
  animation: waPopup 0.2s ease-out;
}

@keyframes waPopup {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.wa-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-header-icon {
  width: 42px;
  height: 42px;
  background: #25D366;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.wa-header-title {
  font-size: 17px;
  font-weight: 700;
}

.wa-header-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 3px;
}

#wa-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

/* Body */
.wa-body {
  padding: 20px;
  background: #f8faf9;
}

.wa-intro {
  background: #ffffff;
  border: 1px solid #e7ecea;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #54615e;
  font-size: 13px;
  line-height: 1.5;
}

/* Individual question */
.wa-question {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5ebe8;
  border-radius: 15px;
  padding: 17px 16px 16px 58px;
  margin-bottom: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.wa-question-number {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #075e54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.wa-question-text {
  color: #173b35;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 13px;
}

/* Bullet-point options */
.wa-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wa-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.wa-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wa-option span {
  position: relative;
  display: block;
  background: #ffffff;
  color: #3e4b48;
  border: 1px solid #d8e1de;
  border-radius: 10px;
  padding: 11px 12px 11px 40px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
}

/* Empty bullet */
.wa-option span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #9aa8a4;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffffff;
}

/* Selected option */
.wa-option input:checked + span {
  background: #ecfbf2;
  border-color: #25D366;
  color: #075e54;
  font-weight: 650;
}

.wa-option input:checked + span::before {
  border-color: #25D366;
  background: #25D366;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.wa-option span:hover {
  border-color: #25D366;
  background: #f5fff8;
}

/* Submit */
#wa-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  background: #25D366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.25);
  transition: all 0.18s ease;
}

#wa-submit:hover:not(:disabled) {
  background: #20bd5a;
  transform: translateY(-1px);
}

#wa-submit:disabled {
  background: #c9cfcd;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
}

.wa-footer-note {
  text-align: center;
  font-size: 11px;
  color: #87918f;
  margin-top: 9px;
}

/* Mobile */
@media (max-width: 600px) {
  #wa-chat-button {
    width: 58px;
    height: 58px;
    right: 14px;
    bottom: 14px;
  }

  #wa-chat-button svg {
    width: 32px;
    height: 32px;
  }

  #wa-chat-box {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
    max-height: 76vh;
  }

  .wa-body {
    padding: 15px;
  }

  .wa-question {
    padding-left: 52px;
  }
}

/* Message shown when visitor selects No */
.wa-thank-you {
  display: none;
  background: #ecfbf2;
  border: 1px solid #25D366;
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 16px;
  text-align: center;
  color: #075e54;
  animation: waThankYou 0.25s ease;
}

.wa-thank-you-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.wa-thank-you strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.wa-thank-you div:last-child {
  font-size: 13px;
  color: #52645f;
  line-height: 1.4;
}

@keyframes waThankYou {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Serene Exotica questionnaire logo */
.wa-header-icon {
  width: 90px;
  height: 54px;
  min-width: 90px;
  padding: 5px;
  border-radius: 10px;
  background: #000000;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wa-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Circular Serene Exotica logo in questionnaire header */
.wa-header-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 4px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wa-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
