/* Convo Forms — Chat Skin (lightweight add-on styles)
   This stylesheet layers on top of frontend.css to give the chat renderer
   (renderer: "chat") a friendly, bubble-like appearance without fighting
   the site theme.
*/

/* Chat wrapper */
.cforms-chat,
.cforms-form.cforms-chat {
  max-width: 600px;
  margin: 0 auto;
}

/* Chat bubbles – reuse normal field wrappers but style as bubbles */
.cforms-bubble {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin: 10px 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Labels inside bubbles */
.cforms-bubble label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
}

/* Inputs inside bubbles – inherit base styles */
.cforms-bubble input[type="text"],
.cforms-bubble input[type="email"],
.cforms-bubble input[type="number"],
.cforms-bubble input[type="url"],
.cforms-bubble textarea,
.cforms-bubble select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}

/* Error states inside bubbles */
.cforms-bubble .cforms-error {
  display: block;
  color: #b30000;
  margin-top: 5px;
  font-size: 0.92em;
}

/* Stepper buttons – look like chat actions */
.cforms-stepper {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

/* Progress bar spacing for chat */
.cforms-progress {
  margin-top: 12px;
}

/* Submit area */
.cforms-submit-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* RTL tweaks */
html[dir='rtl'] .cforms-bubble {
  direction: rtl;
  text-align: right;
}

/* Keep the overall layout respectful of themes */
.cforms-chat h3 {
  margin: 0 0 8px;
}
