/* WhatsApp Flow form card (client/js/flow_client.js), scoped under .wfc-. */

.wfc-live {
  text-align: center;
  margin: 6px 0;
}

/* Layout only — color/font come from the shared ".text_bot" class
   (client/css/style.css) so this reads like every other bot message. */
.wfc-intro-text {
  display: block;
  text-align: left;
  width: 280px;
  max-width: 100%;
  margin: 0 auto 8px;
}

.wfc-phone {
  display: inline-block;
  text-align: left;
  vertical-align: top;
  width: 280px;
  max-width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
}

.wfc-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.wfc-phone-close,
.wfc-phone-menu {
  color: #888;
  font-size: 14px;
}

.wfc-phone-body {
  padding: 14px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wfc-text-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
  color: #111;
}

.wfc-text-sub {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 10px 0 8px;
}

.wfc-text-caption {
  font-size: 11px;
  color: #888;
  margin: 4px 0;
}

.wfc-text-body {
  font-size: 13px;
  line-height: 1.4;
  margin: 6px 0;
  white-space: pre-line;
  color: #333;
}

.wfc-label {
  font-size: 12px;
  color: #444;
  font-weight: 600;
  margin: 10px 0 2px;
}

.wfc-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
}
/* flex:1 keeps a long OptIn label wrapping beside the checkbox instead of pushing it below. */
.wfc-opt-text {
  flex: 1;
}
.wfc-opt-row input[type="checkbox"],
.wfc-opt-row input[type="radio"] {
  flex-shrink: 0;
}

/* Restores native radio/checkbox visibility hidden by materialize.min.css. */
.wfc-live input[type="radio"],
.wfc-live input[type="checkbox"] {
  position: static !important;
  left: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px;
  height: 18px;
  margin: 0 0 0 8px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #1877f2;
}

.wfc-input,
.wfc-select {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 2px 0;
  font-size: 13px;
  color: #333;
  background: transparent;
}
/* Beats materialize.min.css's more-specific input[type=password] rule. */
#whatsflow-client-card input[type="password"].wfc-input {
  width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #333 !important;
  background: transparent !important;
}

.wfc-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  resize: none;
  min-height: 60px;
}

.wfc-input:disabled,
.wfc-textarea:disabled,
.wfc-select:disabled {
  opacity: 0.6;
}

.wfc-footer-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: none;
  border-radius: 20px;
  background: #d9dbdd;
  color: #444;
  font-weight: 600;
  font-size: 13px;
  cursor: not-allowed;
  transition: background-color 0.15s, color 0.15s;
}

.wfc-footer-btn:not(.disabled) {
  background: #25d366;
  color: #fff;
  cursor: pointer;
}

.wfc-img-placeholder {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 12px;
  margin: 8px 0;
}

.wfc-img-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}
