/* Form Elements */
.form-section {
 background: rgba(255, 255, 255, 0.05);
 border: 1px solid var(--border-light);
 border-radius: 12px;
 padding: 1.5rem;
 margin-bottom: 1.5rem;
 transition: all 0.3s ease;
}
.form-section:hover {
 border-color: var(--border-accent);
 background: rgba(255, 255, 255, 0.08);
}
.section-title {
 font-size: 1.2rem;
 font-weight: 600;
 color: var(--text-primary);
 margin-bottom: 1rem;
 display: flex;
 align-items: center;
 gap: 0.5rem;
}
.section-title svg {
 width: 20px;
 height: 20px;
}
/* Color Input */
.color-input-group {
 display: flex;
 align-items: center;
 gap: 1rem;
}
.color-preview {
 width: 40px;
 height: 40px;
 border-radius: 8px;
 border: 2px solid var(--border-light);
 cursor: pointer;
}
.color-input-group input[type="color"] {
 width: 60px;
 height: 40px;
 padding: 0;
 border: none;
 background: transparent;
 cursor: pointer;
}
.color-input-group input[type="color"]::-webkit-color-swatch {
 border: 2px solid var(--border-light);
 border-radius: 8px;
 padding: 0;
}
.color-input-group input[type="color"]::-webkit-color-swatch-wrapper {
 padding: 0;
}
/* Fields Management */
.fields-container {
 margin-bottom: 1rem;
}
.field-group {
 display: grid;
 grid-template-columns: 1fr 1fr auto;
 gap: 1rem;
 margin-bottom: 1rem;
}
.field-group input,
.field-group textarea {
 width: 100%;
 padding: 1rem 1.2rem;
 background: rgba(255, 255, 255, 0.05);
 border: 1.5px solid var(--border-light);
 border-radius: 12px;
 color: var(--text-primary);
 font-size: 1rem;
 transition: all 0.3s ease;
 resize: vertical;
}
.field-actions {
 display: flex;
 gap: 0.5rem;
}
.btn-icon {
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid var(--border-light);
 border-radius: 6px;
 color: var(--text-primary);
 padding: 0.5rem;
 cursor: pointer;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 justify-content: center;
}
.btn-icon:hover {
 background: rgba(255, 255, 255, 0.2);
 border-color: var(--border-accent);
}
.btn-icon.delete {
 background: rgba(239, 68, 68, 0.1);
 border-color: rgba(239, 68, 68, 0.3);
}
.btn-icon.delete:hover {
 background: rgba(239, 68, 68, 0.2);
}
/* Action Buttons */
.action-buttons {
 display: flex;
 gap: 1rem;
 margin-bottom: 1.5rem;
}
.btn {
 padding: 0.8rem 1.5rem;
 border: none;
 border-radius: 8px;
 font-size: 0.9rem;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 gap: 0.5rem;
}
.btn-secondary {
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid var(--border-light);
 color: var(--text-primary);
}
.btn-secondary:hover {
 background: rgba(255, 255, 255, 0.2);
 border-color: var(--border-accent);
 transform: translateY(-2px);
}
/* Checkbox */
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
 width: 18px;
 height: 18px;
 accent-color: var(--accent-primary);
}
/* Send Button */
.send-btn {
 width: 100%;
 padding: 1.2rem 2rem;
 background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
 border: none;
 border-radius: 12px;
 color: var(--text-primary);
 font-size: 1.1rem;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
 margin-top: 1rem;
}
.send-btn::before {
 content: "";
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
 transition: left 0.6s ease;
}
.send-btn:hover::before {
 left: 100%;
}
.send-btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
 background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
}
.send-btn:active {
 transform: translateY(0);
}
.send-btn.loading {
 pointer-events: none;
 opacity: 0.8;
}
.send-btn.loading::after {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 width: 20px;
 height: 20px;
 margin: -10px 0 0 -10px;
 border: 2px solid transparent;
 border-top: 2px solid var(--text-primary);
 border-radius: 50%;
 animation: spin 1s linear infinite;
}
/* Results */
.result {
 margin-top: 2rem;
 padding: 1.5rem;
 background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
 border: 1px solid rgba(16, 185, 129, 0.3);
 border-radius: 12px;
 text-align: center;
 font-size: 1.1rem;
 color: var(--success-color);
 animation: fadeIn 0.5s ease;
}
/* Preview Section */
.preview-section {
 margin-top: 2rem;
}
.preview-container {
 background: rgba(0, 0, 0, 0.3);
 border: 1px solid var(--border-light);
 border-radius: 12px;
 padding: 1.5rem;
 margin-top: 1rem;
}
.preview-embed {
 background: #2f3136;
 border-left: 4px solid #5865f2;
 border-radius: 4px;
 padding: 1rem;
 max-width: 400px;
 margin: 0 auto;
 text-align: left;
}
.preview-title {
 font-weight: 600;
 color: #fff;
 margin-bottom: 0.5rem;
}
.preview-description {
 color: #dcddde;
 margin-bottom: 0.5rem;
}
.preview-field {
 margin-bottom: 0.5rem;
}
.preview-field-name {
 font-weight: 600;
 color: #fff;
}
.preview-field-value {
 color: #dcddde;
}
/* Responsive Design */
@media (max-width: 768px) {
 .field-group {
  grid-template-columns: 1fr;
  gap: 0.5rem;
 }
 .field-actions {
  justify-content: flex-end;
 }
 .action-buttons {
  flex-direction: column;
 }
}
@media (max-width: 480px) {
 .form-section {
  padding: 1rem;
 }
}
