/**
 * wa-followup.css - Shared Post-Submission WhatsApp Follow-Up Styles
 * Prefixed with 'waf-' to isolate all styling and prevent clashes.
 */

.waf-followup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.waf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 26px;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border-radius: 999px;
  border: 1px solid #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}

.waf-btn:hover {
  background-color: #20BA59;
  border-color: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #FFFFFF !important;
}

.waf-btn:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}

.waf-btn:active {
  background-color: #1CA64F;
  border-color: #1CA64F;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.waf-icon {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.waf-label {
  display: inline-block;
  color: #FFFFFF;
}

.waf-subtitle {
  display: block;
  font-size: 0.8rem;
  color: inherit;
  opacity: 0.85;
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* Light background contrast helper (e.g., inside white or beach success cards) */
.cs-alert .waf-subtitle,
.form-success-card .waf-subtitle {
  color: #2C2825;
}

/* Error state banner placement adjustments */
.cs-alert-error .waf-followup-container,
.fr-submit-error-banner .waf-followup-container {
  margin-top: 14px;
}

.cs-alert-error .waf-subtitle,
.fr-submit-error-banner .waf-subtitle {
  color: #991b1b;
}

/* Mobile responsive full width button */
@media (max-width: 640px) {
  .waf-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.92rem;
  }
}
