.form-group { margin-bottom: 2rem; }

.description {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

textarea {
  width: 100%; 
  padding: 1rem;
  border: 1px solid var(--border); 
  border-radius: 8px; 
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  margin-bottom: 1rem;
}

textarea:focus {
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(66,153,225,0.2);
}

.char-counter {
  text-align: right;
  color: var(--text-light);
}

.buttons { 
  display: flex; 
  gap: 1rem; 
  margin: 2rem 0;
}

button {
  padding: 1rem; 
  border: none;
  border-radius: 8px; 
  background: var(--primary); 
  color: white; 
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

button:hover { background: var(--primary-dark); }

.btn-large { flex: 2; }
.btn-small { flex: 1; }
.btn-full { width: 100%; }

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover { background: #cbd5e0; }

#linkContainer {
  background: #1a202c;
  padding: 1.5rem; 
  border-radius: 1rem; 
  margin: 2rem 0 0;
  color: white;
}

.note-link {
  cursor: pointer; 
  color: #fff; 
  word-break: break-all; 
  padding: 1rem; 
  border-radius: 6px; 
  margin: 1rem 0; 
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); 
  font-family: monospace;
}

/* Share buttons container */
.share-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 1rem 0 0;
}

.whatsapp-btn,
.signal-btn,
.share-btn {
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex: 1 1 0;
  flex-basis: 0;
  min-width: 0;
  white-space: nowrap;
}

.whatsapp-btn i,
.signal-btn i,
.share-btn i {
  font-size: 1.2rem;
}

.whatsapp-btn {
  background: #25D366;
}

.whatsapp-btn:hover { 
  background: #128C7E;
  transform: translateY(-1px);
}

.signal-btn {
  background: #3a76f0;
}

.signal-btn:hover { 
  background: #2658c4;
  transform: translateY(-1px);
}

/* Mobile: Universal share button (grey/neutral) */
.share-btn {
  background: #6b7280;
}

.share-btn:hover { 
  background: #4b5563;
  transform: translateY(-1px);
}

/* Tablet/narrow desktop breakpoint for share buttons */
@media (max-width: 600px) {
  .share-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .whatsapp-btn,
  .signal-btn,
  .share-btn {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .buttons { flex-direction: column; }
  .btn-large, .btn-small { width: 100%; }
}

/* Test Cloudflare Turnstile Widget Styles - COMPACT VERSION */
.test-cf-widget {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  padding: 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  width: 220px; /* Fixed width */
  flex-shrink: 0;
}

.test-cf-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.test-cf-checkbox:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.test-cf-checkbox input[type="checkbox"] {
  display: none;
}

.test-cf-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  margin: 0;
  width: 100%;
}

.test-cf-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s ease;
  background: white;
  flex-shrink: 0;
}

.test-cf-checkbox input[type="checkbox"]:checked + label .test-cf-icon {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* UPDATED: Make footer content display on one line */
.test-cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  gap: 0.25rem;
  flex-wrap: nowrap; /* Ensure no wrapping */
  white-space: nowrap; /* Prevent text wrapping */
}

.test-cf-badge {
  background: #f59e0b;
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent badge from shrinking */
}

.test-cf-text {
  color: #6b7280;
  white-space: nowrap;
  font-size: 0.65rem;
  flex-shrink: 0; /* Prevent text from shrinking */
}

/* Real Turnstile widget styling */
.cf-turnstile {
  width: 220px;
  flex-shrink: 0;
}

/* Mobile Responsive for Turnstile */
@media (max-width: 768px) {
  .test-cf-widget {
    width: 100%;
    max-width: 280px;
  }
  
  .cf-turnstile {
    width: 100%;
    max-width: 280px;
  }
  
  /* On mobile, allow wrapping but keep items compact */
  .test-cf-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}