.target-client-form-container {
  max-width: 800px;
  margin: 0 auto;
  direction: rtl;
  padding: 20px;
}

.form-title {
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
  justify-content: center;
}

.form-title i {
  color: var(--primary-color);
  font-size: 28px;
}

.target-client-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.form-group label i {
  color: var(--primary-color);
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.form-group:focus-within label {
  color: var(--primary-color);
}

.form-group:focus-within label i {
  transform: scale(1.1);
}

.required {
  color: #e74c3c;
  margin-right: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #bbb;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
  outline: none;
  background-color: #fff;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

.form-actions button {
  padding: 12px 25px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  min-width: 120px;
}

.form-actions .submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.form-actions .submit-btn:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-actions .cancel-btn {
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.form-actions .cancel-btn:hover {
  background-color: #e0e0e0;
  
}

.form-actions button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.form-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* تحسينات إضافية */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 40px;
}

.input-with-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  transition: color 0.3s ease;
}

.input-with-icon input:focus + i {
  color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .target-client-form-container {
    padding: 10px;
  }
  
  .target-client-form {
    padding: 15px;
  }
}