/* ============================================================
   Kotak Saran — Floating Bubble (modul terisolasi)
   Posisi: DI ATAS bubble WhatsApp (.wa-chat-bubble)
   ============================================================ */
.suggestion-box {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 9500;
  font-family: inherit;
}
.suggestion-box-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(233, 177, 43, 0.65);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.suggestion-box-toggle:hover,
.suggestion-box-toggle:focus {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.suggestion-box-emoji { font-size: 16px; line-height: 1; }

.suggestion-box-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 177, 43, 0.65);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  color: #fff;
  transform-origin: bottom right;
  animation: suggestionBoxIn 0.22s ease;
}
.suggestion-box-panel[hidden] { display: none !important; }
@keyframes suggestionBoxIn {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.suggestion-box-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #E9B12B;
  font-size: 14px;
}
.suggestion-box-close {
  border: none;
  background: transparent;
  color: #B8B8B8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.suggestion-box-close:hover { color: #fff; }

.suggestion-box-field { margin-bottom: 12px; }
.suggestion-box-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #B8B8B8;
  margin-bottom: 5px;
}
.suggestion-box-field input,
.suggestion-box-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.suggestion-box-field input::placeholder,
.suggestion-box-field textarea::placeholder { color: #777; }
.suggestion-box-field input:focus,
.suggestion-box-field textarea:focus {
  outline: none;
  border-color: #E9B12B;
}

.suggestion-box-error {
  font-size: 12px;
  color: #ff7a87;
  margin-bottom: 10px;
}
.suggestion-box-error[hidden] { display: none !important; }

.suggestion-box-submit {
  width: 100%;
  border: 1px solid #E9B12B;
  background: #E9B12B;
  color: #141414;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.suggestion-box-submit:hover { filter: brightness(1.05); }
.suggestion-box-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.suggestion-box-success {
  text-align: center;
  padding: 8px 0 2px;
}
.suggestion-box-success[hidden] { display: none !important; }
.suggestion-box-success-icon {
  font-size: 30px;
  color: #00C26E;
  margin-bottom: 8px;
}
.suggestion-box-success-text {
  font-size: 13px;
  color: #E8E8E8;
  line-height: 1.5;
  margin-bottom: 14px;
}
.suggestion-box-close-btn {
  width: 100%;
  border: 1px solid rgba(233, 177, 43, 0.65);
  background: transparent;
  color: #E9B12B;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}
.suggestion-box-close-btn:hover { background: rgba(233, 177, 43, 0.1); }

@media (max-width: 480px) {
  .suggestion-box { right: 14px; bottom: 68px; }
  .suggestion-box-panel { width: min(260px, calc(100vw - 28px)); }
}
