/* ----------------------------------------------------------------------------
   FORMS BUILDER - Form-Specific Styles
   Note: Common block editor styles are in shared.css
   ---------------------------------------------------------------------------- */

/* Form Preview Container */
.form-preview-wrapper {
  min-width: 600px;
  max-width: 600px;
  min-height: 400px;
  margin: 0 auto;
  background: white;
  border: var(--border-width-thick) solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-8);
}

/* Form Settings Section */
.form-settings {
  background: var(--color-wash);
  border: var(--border-width-default) solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-4);
  margin-top: var(--spacing-6);
}

/* Form-specific responsive styles */
@media (max-width: 1024px) {
  .form-preview-wrapper {
    min-width: auto;
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------------------
   FORMS INDEX - Grid and Card Styles
   ---------------------------------------------------------------------------- */

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.form-card {
  background: #FFFFFF;
  border: 3px solid #111111;
  border-radius: 12px;
  padding: 24px;
  transition: all 120ms ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 4px 4px 0 #111111;
}

.form-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #111111;
}

.form-card-header {
  margin-bottom: 16px;
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-card-description {
  color: #5A5A5A;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-card-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 2px solid #111111;
  border-bottom: 2px solid #111111;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5A5A5A;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.embed-code-section {
  margin-top: 16px;
}

.embed-code-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #111111;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  background: #F2F2F2;
  resize: none;
}

.embed-code-textarea:focus {
  outline: 4px solid #111111;
  outline-offset: 2px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-text {
  color: #5A5A5A;
  margin-bottom: 16px;
}